Initial commit to Gerrit
[profile/ivi/ofono.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for ofono 1.4.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME='ofono'
745 PACKAGE_TARNAME='ofono'
746 PACKAGE_VERSION='1.4'
747 PACKAGE_STRING='ofono 1.4'
748 PACKAGE_BUGREPORT=''
749
750 ac_default_prefix=/usr/local
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 ac_subst_vars='am__EXEEXT_FALSE
788 am__EXEEXT_TRUE
789 LTLIBOBJS
790 LIBOBJS
791 DATAFILES_FALSE
792 DATAFILES_TRUE
793 PROVISION_FALSE
794 PROVISION_TRUE
795 BLUETOOTH_FALSE
796 BLUETOOTH_TRUE
797 BLUEZ_LIBS
798 BLUEZ_CFLAGS
799 ISIMODEM_FALSE
800 ISIMODEM_TRUE
801 PHONESIM_FALSE
802 PHONESIM_TRUE
803 CDMAMODEM_FALSE
804 CDMAMODEM_TRUE
805 ATMODEM_FALSE
806 ATMODEM_TRUE
807 TOOLS_FALSE
808 TOOLS_TRUE
809 USB_LIBS
810 USB_CFLAGS
811 UDEV_FALSE
812 UDEV_TRUE
813 UDEV_DATADIR
814 UDEV_LIBS
815 UDEV_CFLAGS
816 CAPNG_LIBS
817 CAPNG_CFLAGS
818 SYSTEMD_FALSE
819 SYSTEMD_TRUE
820 SYSTEMD_UNITDIR
821 DBUS_DATADIR
822 DBUS_CONFDIR
823 DBUS_LIBS
824 DBUS_CFLAGS
825 GTHREAD_LIBS
826 GTHREAD_CFLAGS
827 GLIB_LIBS
828 GLIB_CFLAGS
829 TEST_FALSE
830 TEST_TRUE
831 CPP
832 OTOOL64
833 OTOOL
834 LIPO
835 NMEDIT
836 DSYMUTIL
837 lt_ECHO
838 RANLIB
839 AR
840 OBJDUMP
841 LN_S
842 NM
843 ac_ct_DUMPBIN
844 DUMPBIN
845 LD
846 FGREP
847 EGREP
848 GREP
849 SED
850 host_os
851 host_vendor
852 host_cpu
853 host
854 build_os
855 build_vendor
856 build_cpu
857 build
858 LIBTOOL
859 am__fastdepCC_FALSE
860 am__fastdepCC_TRUE
861 CCDEPMODE
862 AMDEPBACKSLASH
863 AMDEP_FALSE
864 AMDEP_TRUE
865 am__quote
866 am__include
867 DEPDIR
868 OBJEXT
869 EXEEXT
870 ac_ct_CC
871 CPPFLAGS
872 LDFLAGS
873 CFLAGS
874 CC
875 PKG_CONFIG
876 MAINT
877 MAINTAINER_MODE_FALSE
878 MAINTAINER_MODE_TRUE
879 AM_BACKSLASH
880 AM_DEFAULT_VERBOSITY
881 am__untar
882 am__tar
883 AMTAR
884 am__leading_dot
885 SET_MAKE
886 AWK
887 mkdir_p
888 MKDIR_P
889 INSTALL_STRIP_PROGRAM
890 STRIP
891 install_sh
892 MAKEINFO
893 AUTOHEADER
894 AUTOMAKE
895 AUTOCONF
896 ACLOCAL
897 VERSION
898 PACKAGE
899 CYGPATH_W
900 am__isrc
901 INSTALL_DATA
902 INSTALL_SCRIPT
903 INSTALL_PROGRAM
904 target_alias
905 host_alias
906 build_alias
907 LIBS
908 ECHO_T
909 ECHO_N
910 ECHO_C
911 DEFS
912 mandir
913 localedir
914 libdir
915 psdir
916 pdfdir
917 dvidir
918 htmldir
919 infodir
920 docdir
921 oldincludedir
922 includedir
923 localstatedir
924 sharedstatedir
925 sysconfdir
926 datadir
927 datarootdir
928 libexecdir
929 sbindir
930 bindir
931 program_transform_name
932 prefix
933 exec_prefix
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files=''
942 ac_user_opts='
943 enable_option_checking
944 enable_silent_rules
945 enable_maintainer_mode
946 enable_dependency_tracking
947 enable_static
948 enable_shared
949 with_pic
950 enable_fast_install
951 with_gnu_ld
952 enable_libtool_lock
953 enable_optimization
954 enable_debug
955 enable_test
956 enable_pie
957 enable_threads
958 with_dbusconfdir
959 with_dbusdatadir
960 with_systemdunitdir
961 enable_capng
962 enable_udev
963 enable_tools
964 enable_atmodem
965 enable_cdmamodem
966 enable_phonesim
967 enable_isimodem
968 enable_bluetooth
969 with_provisiondb
970 enable_provision
971 enable_datafiles
972 '
973       ac_precious_vars='build_alias
974 host_alias
975 target_alias
976 PKG_CONFIG
977 CC
978 CFLAGS
979 LDFLAGS
980 LIBS
981 CPPFLAGS
982 CPP
983 GLIB_CFLAGS
984 GLIB_LIBS
985 GTHREAD_CFLAGS
986 GTHREAD_LIBS
987 DBUS_CFLAGS
988 DBUS_LIBS
989 CAPNG_CFLAGS
990 CAPNG_LIBS
991 UDEV_CFLAGS
992 UDEV_LIBS
993 USB_CFLAGS
994 USB_LIBS
995 BLUEZ_CFLAGS
996 BLUEZ_LIBS'
997
998
999 # Initialize some variables set by options.
1000 ac_init_help=
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1007 exec_prefix=NONE
1008 no_create=
1009 no_recursion=
1010 prefix=NONE
1011 program_prefix=NONE
1012 program_suffix=NONE
1013 program_transform_name=s,x,x,
1014 silent=
1015 site=
1016 srcdir=
1017 verbose=
1018 x_includes=NONE
1019 x_libraries=NONE
1020
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038 infodir='${datarootdir}/info'
1039 htmldir='${docdir}'
1040 dvidir='${docdir}'
1041 pdfdir='${docdir}'
1042 psdir='${docdir}'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1046
1047 ac_prev=
1048 ac_dashdash=
1049 for ac_option
1050 do
1051   # If the previous option needs an argument, assign it.
1052   if test -n "$ac_prev"; then
1053     eval $ac_prev=\$ac_option
1054     ac_prev=
1055     continue
1056   fi
1057
1058   case $ac_option in
1059   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060   *)    ac_optarg=yes ;;
1061   esac
1062
1063   # Accept the important Cygnus configure options, so we can diagnose typos.
1064
1065   case $ac_dashdash$ac_option in
1066   --)
1067     ac_dashdash=yes ;;
1068
1069   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070     ac_prev=bindir ;;
1071   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072     bindir=$ac_optarg ;;
1073
1074   -build | --build | --buil | --bui | --bu)
1075     ac_prev=build_alias ;;
1076   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077     build_alias=$ac_optarg ;;
1078
1079   -cache-file | --cache-file | --cache-fil | --cache-fi \
1080   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081     ac_prev=cache_file ;;
1082   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084     cache_file=$ac_optarg ;;
1085
1086   --config-cache | -C)
1087     cache_file=config.cache ;;
1088
1089   -datadir | --datadir | --datadi | --datad)
1090     ac_prev=datadir ;;
1091   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092     datadir=$ac_optarg ;;
1093
1094   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095   | --dataroo | --dataro | --datar)
1096     ac_prev=datarootdir ;;
1097   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099     datarootdir=$ac_optarg ;;
1100
1101   -disable-* | --disable-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval enable_$ac_useropt=no ;;
1117
1118   -docdir | --docdir | --docdi | --doc | --do)
1119     ac_prev=docdir ;;
1120   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121     docdir=$ac_optarg ;;
1122
1123   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124     ac_prev=dvidir ;;
1125   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126     dvidir=$ac_optarg ;;
1127
1128   -enable-* | --enable-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133    { (exit 1); exit 1; }; }
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "enable_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval enable_$ac_useropt=\$ac_optarg ;;
1144
1145   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147   | --exec | --exe | --ex)
1148     ac_prev=exec_prefix ;;
1149   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151   | --exec=* | --exe=* | --ex=*)
1152     exec_prefix=$ac_optarg ;;
1153
1154   -gas | --gas | --ga | --g)
1155     # Obsolete; use --with-gas.
1156     with_gas=yes ;;
1157
1158   -help | --help | --hel | --he | -h)
1159     ac_init_help=long ;;
1160   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161     ac_init_help=recursive ;;
1162   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163     ac_init_help=short ;;
1164
1165   -host | --host | --hos | --ho)
1166     ac_prev=host_alias ;;
1167   -host=* | --host=* | --hos=* | --ho=*)
1168     host_alias=$ac_optarg ;;
1169
1170   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171     ac_prev=htmldir ;;
1172   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173   | --ht=*)
1174     htmldir=$ac_optarg ;;
1175
1176   -includedir | --includedir | --includedi | --included | --include \
1177   | --includ | --inclu | --incl | --inc)
1178     ac_prev=includedir ;;
1179   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180   | --includ=* | --inclu=* | --incl=* | --inc=*)
1181     includedir=$ac_optarg ;;
1182
1183   -infodir | --infodir | --infodi | --infod | --info | --inf)
1184     ac_prev=infodir ;;
1185   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186     infodir=$ac_optarg ;;
1187
1188   -libdir | --libdir | --libdi | --libd)
1189     ac_prev=libdir ;;
1190   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191     libdir=$ac_optarg ;;
1192
1193   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194   | --libexe | --libex | --libe)
1195     ac_prev=libexecdir ;;
1196   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197   | --libexe=* | --libex=* | --libe=*)
1198     libexecdir=$ac_optarg ;;
1199
1200   -localedir | --localedir | --localedi | --localed | --locale)
1201     ac_prev=localedir ;;
1202   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203     localedir=$ac_optarg ;;
1204
1205   -localstatedir | --localstatedir | --localstatedi | --localstated \
1206   | --localstate | --localstat | --localsta | --localst | --locals)
1207     ac_prev=localstatedir ;;
1208   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210     localstatedir=$ac_optarg ;;
1211
1212   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213     ac_prev=mandir ;;
1214   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215     mandir=$ac_optarg ;;
1216
1217   -nfp | --nfp | --nf)
1218     # Obsolete; use --without-fp.
1219     with_fp=no ;;
1220
1221   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222   | --no-cr | --no-c | -n)
1223     no_create=yes ;;
1224
1225   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227     no_recursion=yes ;;
1228
1229   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231   | --oldin | --oldi | --old | --ol | --o)
1232     ac_prev=oldincludedir ;;
1233   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236     oldincludedir=$ac_optarg ;;
1237
1238   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239     ac_prev=prefix ;;
1240   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241     prefix=$ac_optarg ;;
1242
1243   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244   | --program-pre | --program-pr | --program-p)
1245     ac_prev=program_prefix ;;
1246   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248     program_prefix=$ac_optarg ;;
1249
1250   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251   | --program-suf | --program-su | --program-s)
1252     ac_prev=program_suffix ;;
1253   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255     program_suffix=$ac_optarg ;;
1256
1257   -program-transform-name | --program-transform-name \
1258   | --program-transform-nam | --program-transform-na \
1259   | --program-transform-n | --program-transform- \
1260   | --program-transform | --program-transfor \
1261   | --program-transfo | --program-transf \
1262   | --program-trans | --program-tran \
1263   | --progr-tra | --program-tr | --program-t)
1264     ac_prev=program_transform_name ;;
1265   -program-transform-name=* | --program-transform-name=* \
1266   | --program-transform-nam=* | --program-transform-na=* \
1267   | --program-transform-n=* | --program-transform-=* \
1268   | --program-transform=* | --program-transfor=* \
1269   | --program-transfo=* | --program-transf=* \
1270   | --program-trans=* | --program-tran=* \
1271   | --progr-tra=* | --program-tr=* | --program-t=*)
1272     program_transform_name=$ac_optarg ;;
1273
1274   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275     ac_prev=pdfdir ;;
1276   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277     pdfdir=$ac_optarg ;;
1278
1279   -psdir | --psdir | --psdi | --psd | --ps)
1280     ac_prev=psdir ;;
1281   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282     psdir=$ac_optarg ;;
1283
1284   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285   | -silent | --silent | --silen | --sile | --sil)
1286     silent=yes ;;
1287
1288   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289     ac_prev=sbindir ;;
1290   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291   | --sbi=* | --sb=*)
1292     sbindir=$ac_optarg ;;
1293
1294   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296   | --sharedst | --shareds | --shared | --share | --shar \
1297   | --sha | --sh)
1298     ac_prev=sharedstatedir ;;
1299   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302   | --sha=* | --sh=*)
1303     sharedstatedir=$ac_optarg ;;
1304
1305   -site | --site | --sit)
1306     ac_prev=site ;;
1307   -site=* | --site=* | --sit=*)
1308     site=$ac_optarg ;;
1309
1310   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311     ac_prev=srcdir ;;
1312   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313     srcdir=$ac_optarg ;;
1314
1315   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316   | --syscon | --sysco | --sysc | --sys | --sy)
1317     ac_prev=sysconfdir ;;
1318   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320     sysconfdir=$ac_optarg ;;
1321
1322   -target | --target | --targe | --targ | --tar | --ta | --t)
1323     ac_prev=target_alias ;;
1324   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325     target_alias=$ac_optarg ;;
1326
1327   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328     verbose=yes ;;
1329
1330   -version | --version | --versio | --versi | --vers | -V)
1331     ac_init_version=: ;;
1332
1333   -with-* | --with-*)
1334     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338    { (exit 1); exit 1; }; }
1339     ac_useropt_orig=$ac_useropt
1340     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341     case $ac_user_opts in
1342       *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346          ac_unrecognized_sep=', ';;
1347     esac
1348     eval with_$ac_useropt=\$ac_optarg ;;
1349
1350   -without-* | --without-*)
1351     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352     # Reject names that are not valid shell variable names.
1353     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355    { (exit 1); exit 1; }; }
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=no ;;
1366
1367   --x)
1368     # Obsolete; use --with-x.
1369     with_x=yes ;;
1370
1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372   | --x-incl | --x-inc | --x-in | --x-i)
1373     ac_prev=x_includes ;;
1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376     x_includes=$ac_optarg ;;
1377
1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380     ac_prev=x_libraries ;;
1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383     x_libraries=$ac_optarg ;;
1384
1385   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387    { (exit 1); exit 1; }; }
1388     ;;
1389
1390   *=*)
1391     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392     # Reject names that are not valid shell variable names.
1393     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395    { (exit 1); exit 1; }; }
1396     eval $ac_envvar=\$ac_optarg
1397     export $ac_envvar ;;
1398
1399   *)
1400     # FIXME: should be removed in autoconf 3.0.
1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405     ;;
1406
1407   esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413    { (exit 1); exit 1; }; }
1414 fi
1415
1416 if test -n "$ac_unrecognized_opts"; then
1417   case $enable_option_checking in
1418     no) ;;
1419     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420    { (exit 1); exit 1; }; } ;;
1421     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422   esac
1423 fi
1424
1425 # Check all directory arguments for consistency.
1426 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427                 datadir sysconfdir sharedstatedir localstatedir includedir \
1428                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429                 libdir localedir mandir
1430 do
1431   eval ac_val=\$$ac_var
1432   # Remove trailing slashes.
1433   case $ac_val in
1434     */ )
1435       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436       eval $ac_var=\$ac_val;;
1437   esac
1438   # Be sure to have absolute directory names.
1439   case $ac_val in
1440     [\\/$]* | ?:[\\/]* )  continue;;
1441     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442   esac
1443   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444    { (exit 1); exit 1; }; }
1445 done
1446
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1450 build=$build_alias
1451 host=$host_alias
1452 target=$target_alias
1453
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456   if test "x$build_alias" = x; then
1457     cross_compiling=maybe
1458     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459     If a cross compiler is detected then cross compile mode will be used." >&2
1460   elif test "x$build_alias" != "x$host_alias"; then
1461     cross_compiling=yes
1462   fi
1463 fi
1464
1465 ac_tool_prefix=
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467
1468 test "$silent" = yes && exec 6>/dev/null
1469
1470
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475    { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478    { (exit 1); exit 1; }; }
1479
1480
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483   ac_srcdir_defaulted=yes
1484   # Try the directory containing this script, then the parent directory.
1485   ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487          X"$as_myself" : 'X\(//\)[^/]' \| \
1488          X"$as_myself" : 'X\(//\)$' \| \
1489          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)[^/].*/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\).*/{
1504             s//\1/
1505             q
1506           }
1507           s/.*/./; q'`
1508   srcdir=$ac_confdir
1509   if test ! -r "$srcdir/$ac_unique_file"; then
1510     srcdir=..
1511   fi
1512 else
1513   ac_srcdir_defaulted=no
1514 fi
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518    { (exit 1); exit 1; }; }
1519 fi
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 ac_abs_confdir=`(
1522         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523    { (exit 1); exit 1; }; }
1524         pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527   srcdir=.
1528 fi
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_env_${ac_var}_value=\$${ac_var}
1538   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1541
1542 #
1543 # Report the --help message.
1544 #
1545 if test "$ac_init_help" = "long"; then
1546   # Omit some internal or obsolete options to make the list less imposing.
1547   # This message is too long to be a string in the A/UX 3.1 sh.
1548   cat <<_ACEOF
1549 \`configure' configures ofono 1.4 to adapt to many kinds of systems.
1550
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE.  See below for descriptions of some of the useful variables.
1555
1556 Defaults for the options are specified in brackets.
1557
1558 Configuration:
1559   -h, --help              display this help and exit
1560       --help=short        display options specific to this package
1561       --help=recursive    display the short help of all the included packages
1562   -V, --version           display version information and exit
1563   -q, --quiet, --silent   do not print \`checking...' messages
1564       --cache-file=FILE   cache test results in FILE [disabled]
1565   -C, --config-cache      alias for \`--cache-file=config.cache'
1566   -n, --no-create         do not create output files
1567       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1568
1569 Installation directories:
1570   --prefix=PREFIX         install architecture-independent files in PREFIX
1571                           [$ac_default_prefix]
1572   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1573                           [PREFIX]
1574
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1579
1580 For better control, use the options below.
1581
1582 Fine tuning of the installation directories:
1583   --bindir=DIR            user executables [EPREFIX/bin]
1584   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1585   --libexecdir=DIR        program executables [EPREFIX/libexec]
1586   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1587   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1588   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1589   --libdir=DIR            object code libraries [EPREFIX/lib]
1590   --includedir=DIR        C header files [PREFIX/include]
1591   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1592   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1593   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1594   --infodir=DIR           info documentation [DATAROOTDIR/info]
1595   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1596   --mandir=DIR            man documentation [DATAROOTDIR/man]
1597   --docdir=DIR            documentation root [DATAROOTDIR/doc/ofono]
1598   --htmldir=DIR           html documentation [DOCDIR]
1599   --dvidir=DIR            dvi documentation [DOCDIR]
1600   --pdfdir=DIR            pdf documentation [DOCDIR]
1601   --psdir=DIR             ps documentation [DOCDIR]
1602 _ACEOF
1603
1604   cat <<\_ACEOF
1605
1606 Program names:
1607   --program-prefix=PREFIX            prepend PREFIX to installed program names
1608   --program-suffix=SUFFIX            append SUFFIX to installed program names
1609   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1610
1611 System types:
1612   --build=BUILD     configure for building on BUILD [guessed]
1613   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1614 _ACEOF
1615 fi
1616
1617 if test -n "$ac_init_help"; then
1618   case $ac_init_help in
1619      short | recursive ) echo "Configuration of ofono 1.4:";;
1620    esac
1621   cat <<\_ACEOF
1622
1623 Optional Features:
1624   --disable-option-checking  ignore unrecognized --enable/--with options
1625   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1626   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1627   --enable-silent-rules          less verbose build output (undo: `make V=1')
1628   --disable-silent-rules         verbose build output (undo: `make V=0')
1629   --enable-maintainer-mode  enable make rules and dependencies not useful
1630                           (and sometimes confusing) to the casual installer
1631   --disable-dependency-tracking  speeds up one-time build
1632   --enable-dependency-tracking   do not reject slow dependency extractors
1633   --enable-static[=PKGS]  build static libraries [default=no]
1634   --enable-shared[=PKGS]  build shared libraries [default=yes]
1635   --enable-fast-install[=PKGS]
1636                           optimize for fast installation [default=yes]
1637   --disable-libtool-lock  avoid locking (might break parallel builds)
1638   --disable-optimization  disable code optimization through compiler
1639   --enable-debug          enable compiling with debugging information
1640   --enable-test           enable test/example scripts
1641   --enable-pie            enable position independent executables flag
1642   --enable-threads        enable threading support
1643   --enable-capng          enable capabilities support
1644   --disable-udev          don't use udev support even if available
1645   --enable-tools          enable testing tools
1646   --disable-atmodem       disable ETSI AT modem support
1647   --disable-cdmamodem     disable CDMA AT modem support
1648   --disable-phonesim      disable Phone simulator support
1649   --disable-isimodem      disable PhoNet/ISI modem support
1650   --disable-bluetooth     disable Bluetooth modem support
1651   --disable-provision     disable provisioning suport
1652   --disable-datafiles     don't install configuration and data files
1653
1654 Optional Packages:
1655   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1656   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1657   --with-pic              try to use only PIC/non-PIC objects [default=use
1658                           both]
1659   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1660   --with-dbusconfdir=PATH path to D-Bus config directory
1661   --with-dbusdatadir=PATH path to D-Bus data directory
1662   --with-systemdunitdir=DIR
1663                           path to systemd service directory
1664   --with-provisiondb=FILE location of provision database
1665
1666 Some influential environment variables:
1667   PKG_CONFIG  path to pkg-config utility
1668   CC          C compiler command
1669   CFLAGS      C compiler flags
1670   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1671               nonstandard directory <lib dir>
1672   LIBS        libraries to pass to the linker, e.g. -l<library>
1673   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1674               you have headers in a nonstandard directory <include dir>
1675   CPP         C preprocessor
1676   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1677   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1678   GTHREAD_CFLAGS
1679               C compiler flags for GTHREAD, overriding pkg-config
1680   GTHREAD_LIBS
1681               linker flags for GTHREAD, overriding pkg-config
1682   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1683   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1684   CAPNG_CFLAGS
1685               C compiler flags for CAPNG, overriding pkg-config
1686   CAPNG_LIBS  linker flags for CAPNG, overriding pkg-config
1687   UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1688   UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1689   USB_CFLAGS  C compiler flags for USB, overriding pkg-config
1690   USB_LIBS    linker flags for USB, overriding pkg-config
1691   BLUEZ_CFLAGS
1692               C compiler flags for BLUEZ, overriding pkg-config
1693   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
1694
1695 Use these variables to override the choices made by `configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1697
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703   # If there are subdirs, report their specific --help.
1704   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705     test -d "$ac_dir" ||
1706       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707       continue
1708     ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714   # A ".." for each directory in $ac_dir_suffix.
1715   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716   case $ac_top_builddir_sub in
1717   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719   esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727   .)  # We are building in place.
1728     ac_srcdir=.
1729     ac_top_srcdir=$ac_top_builddir_sub
1730     ac_abs_top_srcdir=$ac_pwd ;;
1731   [\\/]* | ?:[\\/]* )  # Absolute name.
1732     ac_srcdir=$srcdir$ac_dir_suffix;
1733     ac_top_srcdir=$srcdir
1734     ac_abs_top_srcdir=$srcdir ;;
1735   *) # Relative name.
1736     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737     ac_top_srcdir=$ac_top_build_prefix$srcdir
1738     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742     cd "$ac_dir" || { ac_status=$?; continue; }
1743     # Check for guested configure.
1744     if test -f "$ac_srcdir/configure.gnu"; then
1745       echo &&
1746       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747     elif test -f "$ac_srcdir/configure"; then
1748       echo &&
1749       $SHELL "$ac_srcdir/configure" --help=recursive
1750     else
1751       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752     fi || ac_status=$?
1753     cd "$ac_pwd" || { ac_status=$?; break; }
1754   done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759   cat <<\_ACEOF
1760 ofono configure 1.4
1761 generated by GNU Autoconf 2.63
1762
1763 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1764 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768   exit
1769 fi
1770 cat >config.log <<_ACEOF
1771 This file contains any messages produced by compilers while
1772 running configure, to aid debugging if configure makes a mistake.
1773
1774 It was created by ofono $as_me 1.4, which was
1775 generated by GNU Autoconf 2.63.  Invocation command line was
1776
1777   $ $0 $@
1778
1779 _ACEOF
1780 exec 5>>config.log
1781 {
1782 cat <<_ASUNAME
1783 ## --------- ##
1784 ## Platform. ##
1785 ## --------- ##
1786
1787 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1788 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1789 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1790 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1791 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1792
1793 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1794 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1795
1796 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1797 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1798 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1799 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1800 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1801 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1802 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1803
1804 _ASUNAME
1805
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   $as_echo "PATH: $as_dir"
1812 done
1813 IFS=$as_save_IFS
1814
1815 } >&5
1816
1817 cat >&5 <<_ACEOF
1818
1819
1820 ## ----------- ##
1821 ## Core tests. ##
1822 ## ----------- ##
1823
1824 _ACEOF
1825
1826
1827 # Keep a trace of the command line.
1828 # Strip out --no-create and --no-recursion so they do not pile up.
1829 # Strip out --silent because we don't want to record it for future runs.
1830 # Also quote any args containing shell meta-characters.
1831 # Make two passes to allow for proper duplicate-argument suppression.
1832 ac_configure_args=
1833 ac_configure_args0=
1834 ac_configure_args1=
1835 ac_must_keep_next=false
1836 for ac_pass in 1 2
1837 do
1838   for ac_arg
1839   do
1840     case $ac_arg in
1841     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1842     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1843     | -silent | --silent | --silen | --sile | --sil)
1844       continue ;;
1845     *\'*)
1846       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1847     esac
1848     case $ac_pass in
1849     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1850     2)
1851       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1852       if test $ac_must_keep_next = true; then
1853         ac_must_keep_next=false # Got value, back to normal.
1854       else
1855         case $ac_arg in
1856           *=* | --config-cache | -C | -disable-* | --disable-* \
1857           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1858           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1859           | -with-* | --with-* | -without-* | --without-* | --x)
1860             case "$ac_configure_args0 " in
1861               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1862             esac
1863             ;;
1864           -* ) ac_must_keep_next=true ;;
1865         esac
1866       fi
1867       ac_configure_args="$ac_configure_args '$ac_arg'"
1868       ;;
1869     esac
1870   done
1871 done
1872 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1873 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1874
1875 # When interrupted or exit'd, cleanup temporary files, and complete
1876 # config.log.  We remove comments because anyway the quotes in there
1877 # would cause problems or look ugly.
1878 # WARNING: Use '\'' to represent an apostrophe within the trap.
1879 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1880 trap 'exit_status=$?
1881   # Save into config.log some information that might help in debugging.
1882   {
1883     echo
1884
1885     cat <<\_ASBOX
1886 ## ---------------- ##
1887 ## Cache variables. ##
1888 ## ---------------- ##
1889 _ASBOX
1890     echo
1891     # The following way of writing the cache mishandles newlines in values,
1892 (
1893   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1894     eval ac_val=\$$ac_var
1895     case $ac_val in #(
1896     *${as_nl}*)
1897       case $ac_var in #(
1898       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1899 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1900       esac
1901       case $ac_var in #(
1902       _ | IFS | as_nl) ;; #(
1903       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1904       *) $as_unset $ac_var ;;
1905       esac ;;
1906     esac
1907   done
1908   (set) 2>&1 |
1909     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1910     *${as_nl}ac_space=\ *)
1911       sed -n \
1912         "s/'\''/'\''\\\\'\'''\''/g;
1913           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1914       ;; #(
1915     *)
1916       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1917       ;;
1918     esac |
1919     sort
1920 )
1921     echo
1922
1923     cat <<\_ASBOX
1924 ## ----------------- ##
1925 ## Output variables. ##
1926 ## ----------------- ##
1927 _ASBOX
1928     echo
1929     for ac_var in $ac_subst_vars
1930     do
1931       eval ac_val=\$$ac_var
1932       case $ac_val in
1933       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934       esac
1935       $as_echo "$ac_var='\''$ac_val'\''"
1936     done | sort
1937     echo
1938
1939     if test -n "$ac_subst_files"; then
1940       cat <<\_ASBOX
1941 ## ------------------- ##
1942 ## File substitutions. ##
1943 ## ------------------- ##
1944 _ASBOX
1945       echo
1946       for ac_var in $ac_subst_files
1947       do
1948         eval ac_val=\$$ac_var
1949         case $ac_val in
1950         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951         esac
1952         $as_echo "$ac_var='\''$ac_val'\''"
1953       done | sort
1954       echo
1955     fi
1956
1957     if test -s confdefs.h; then
1958       cat <<\_ASBOX
1959 ## ----------- ##
1960 ## confdefs.h. ##
1961 ## ----------- ##
1962 _ASBOX
1963       echo
1964       cat confdefs.h
1965       echo
1966     fi
1967     test "$ac_signal" != 0 &&
1968       $as_echo "$as_me: caught signal $ac_signal"
1969     $as_echo "$as_me: exit $exit_status"
1970   } >&5
1971   rm -f core *.core core.conftest.* &&
1972     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1973     exit $exit_status
1974 ' 0
1975 for ac_signal in 1 2 13 15; do
1976   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1977 done
1978 ac_signal=0
1979
1980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1981 rm -f -r conftest* confdefs.h
1982
1983 # Predefined preprocessor variables.
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_NAME "$PACKAGE_NAME"
1987 _ACEOF
1988
1989
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1992 _ACEOF
1993
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1997 _ACEOF
1998
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_STRING "$PACKAGE_STRING"
2002 _ACEOF
2003
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2007 _ACEOF
2008
2009
2010 # Let the site file select an alternate cache file if it wants to.
2011 # Prefer an explicitly selected file to automatically selected ones.
2012 ac_site_file1=NONE
2013 ac_site_file2=NONE
2014 if test -n "$CONFIG_SITE"; then
2015   ac_site_file1=$CONFIG_SITE
2016 elif test "x$prefix" != xNONE; then
2017   ac_site_file1=$prefix/share/config.site
2018   ac_site_file2=$prefix/etc/config.site
2019 else
2020   ac_site_file1=$ac_default_prefix/share/config.site
2021   ac_site_file2=$ac_default_prefix/etc/config.site
2022 fi
2023 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2024 do
2025   test "x$ac_site_file" = xNONE && continue
2026   if test -r "$ac_site_file"; then
2027     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2028 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2029     sed 's/^/| /' "$ac_site_file" >&5
2030     . "$ac_site_file"
2031   fi
2032 done
2033
2034 if test -r "$cache_file"; then
2035   # Some versions of bash will fail to source /dev/null (special
2036   # files actually), so we avoid doing that.
2037   if test -f "$cache_file"; then
2038     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2039 $as_echo "$as_me: loading cache $cache_file" >&6;}
2040     case $cache_file in
2041       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2042       *)                      . "./$cache_file";;
2043     esac
2044   fi
2045 else
2046   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2047 $as_echo "$as_me: creating cache $cache_file" >&6;}
2048   >$cache_file
2049 fi
2050
2051 # Check that the precious variables saved in the cache have kept the same
2052 # value.
2053 ac_cache_corrupted=false
2054 for ac_var in $ac_precious_vars; do
2055   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2056   eval ac_new_set=\$ac_env_${ac_var}_set
2057   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2058   eval ac_new_val=\$ac_env_${ac_var}_value
2059   case $ac_old_set,$ac_new_set in
2060     set,)
2061       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2062 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2063       ac_cache_corrupted=: ;;
2064     ,set)
2065       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2066 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2067       ac_cache_corrupted=: ;;
2068     ,);;
2069     *)
2070       if test "x$ac_old_val" != "x$ac_new_val"; then
2071         # differences in whitespace do not lead to failure.
2072         ac_old_val_w=`echo x $ac_old_val`
2073         ac_new_val_w=`echo x $ac_new_val`
2074         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2075           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2076 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2077           ac_cache_corrupted=:
2078         else
2079           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2080 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2081           eval $ac_var=\$ac_old_val
2082         fi
2083         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2084 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2085         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2086 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2087       fi;;
2088   esac
2089   # Pass precious variables to config.status.
2090   if test "$ac_new_set" = set; then
2091     case $ac_new_val in
2092     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2093     *) ac_arg=$ac_var=$ac_new_val ;;
2094     esac
2095     case " $ac_configure_args " in
2096       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2097       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2098     esac
2099   fi
2100 done
2101 if $ac_cache_corrupted; then
2102   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2104   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2105 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2106   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2107 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2108    { (exit 1); exit 1; }; }
2109 fi
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140
2141
2142
2143 am__api_version='1.11'
2144
2145 ac_aux_dir=
2146 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2147   if test -f "$ac_dir/install-sh"; then
2148     ac_aux_dir=$ac_dir
2149     ac_install_sh="$ac_aux_dir/install-sh -c"
2150     break
2151   elif test -f "$ac_dir/install.sh"; then
2152     ac_aux_dir=$ac_dir
2153     ac_install_sh="$ac_aux_dir/install.sh -c"
2154     break
2155   elif test -f "$ac_dir/shtool"; then
2156     ac_aux_dir=$ac_dir
2157     ac_install_sh="$ac_aux_dir/shtool install -c"
2158     break
2159   fi
2160 done
2161 if test -z "$ac_aux_dir"; then
2162   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2163 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2164    { (exit 1); exit 1; }; }
2165 fi
2166
2167 # These three variables are undocumented and unsupported,
2168 # and are intended to be withdrawn in a future Autoconf release.
2169 # They can cause serious problems if a builder's source tree is in a directory
2170 # whose full name contains unusual characters.
2171 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2172 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2173 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2174
2175
2176 # Find a good install program.  We prefer a C program (faster),
2177 # so one script is as good as another.  But avoid the broken or
2178 # incompatible versions:
2179 # SysV /etc/install, /usr/sbin/install
2180 # SunOS /usr/etc/install
2181 # IRIX /sbin/install
2182 # AIX /bin/install
2183 # AmigaOS /C/install, which installs bootblocks on floppy discs
2184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2187 # OS/2's system install, which has a completely different semantic
2188 # ./install, which can be erroneously created by make from ./install.sh.
2189 # Reject install programs that cannot install multiple files.
2190 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2191 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2192 if test -z "$INSTALL"; then
2193 if test "${ac_cv_path_install+set}" = set; then
2194   $as_echo_n "(cached) " >&6
2195 else
2196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   # Account for people who put trailing slashes in PATH elements.
2202 case $as_dir/ in
2203   ./ | .// | /cC/* | \
2204   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2205   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2206   /usr/ucb/* ) ;;
2207   *)
2208     # OSF1 and SCO ODT 3.0 have their own names for install.
2209     # Don't use installbsd from OSF since it installs stuff as root
2210     # by default.
2211     for ac_prog in ginstall scoinst install; do
2212       for ac_exec_ext in '' $ac_executable_extensions; do
2213         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2214           if test $ac_prog = install &&
2215             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2216             # AIX install.  It has an incompatible calling convention.
2217             :
2218           elif test $ac_prog = install &&
2219             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2220             # program-specific install script used by HP pwplus--don't use.
2221             :
2222           else
2223             rm -rf conftest.one conftest.two conftest.dir
2224             echo one > conftest.one
2225             echo two > conftest.two
2226             mkdir conftest.dir
2227             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2228               test -s conftest.one && test -s conftest.two &&
2229               test -s conftest.dir/conftest.one &&
2230               test -s conftest.dir/conftest.two
2231             then
2232               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2233               break 3
2234             fi
2235           fi
2236         fi
2237       done
2238     done
2239     ;;
2240 esac
2241
2242 done
2243 IFS=$as_save_IFS
2244
2245 rm -rf conftest.one conftest.two conftest.dir
2246
2247 fi
2248   if test "${ac_cv_path_install+set}" = set; then
2249     INSTALL=$ac_cv_path_install
2250   else
2251     # As a last resort, use the slow shell script.  Don't cache a
2252     # value for INSTALL within a source directory, because that will
2253     # break other packages using the cache if that directory is
2254     # removed, or if the value is a relative name.
2255     INSTALL=$ac_install_sh
2256   fi
2257 fi
2258 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2259 $as_echo "$INSTALL" >&6; }
2260
2261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2262 # It thinks the first close brace ends the variable substitution.
2263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2264
2265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2266
2267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2268
2269 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2270 $as_echo_n "checking whether build environment is sane... " >&6; }
2271 # Just in case
2272 sleep 1
2273 echo timestamp > conftest.file
2274 # Reject unsafe characters in $srcdir or the absolute working directory
2275 # name.  Accept space and tab only in the latter.
2276 am_lf='
2277 '
2278 case `pwd` in
2279   *[\\\"\#\$\&\'\`$am_lf]*)
2280     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2281 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2282    { (exit 1); exit 1; }; };;
2283 esac
2284 case $srcdir in
2285   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2286     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2287 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2288    { (exit 1); exit 1; }; };;
2289 esac
2290
2291 # Do `set' in a subshell so we don't clobber the current shell's
2292 # arguments.  Must try -L first in case configure is actually a
2293 # symlink; some systems play weird games with the mod time of symlinks
2294 # (eg FreeBSD returns the mod time of the symlink's containing
2295 # directory).
2296 if (
2297    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2298    if test "$*" = "X"; then
2299       # -L didn't work.
2300       set X `ls -t "$srcdir/configure" conftest.file`
2301    fi
2302    rm -f conftest.file
2303    if test "$*" != "X $srcdir/configure conftest.file" \
2304       && test "$*" != "X conftest.file $srcdir/configure"; then
2305
2306       # If neither matched, then we have a broken ls.  This can happen
2307       # if, for instance, CONFIG_SHELL is bash and it inherits a
2308       # broken ls alias from the environment.  This has actually
2309       # happened.  Such a system could not be considered "sane".
2310       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2311 alias in your environment" >&5
2312 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2313 alias in your environment" >&2;}
2314    { (exit 1); exit 1; }; }
2315    fi
2316
2317    test "$2" = conftest.file
2318    )
2319 then
2320    # Ok.
2321    :
2322 else
2323    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2324 Check your system clock" >&5
2325 $as_echo "$as_me: error: newly created file is older than distributed files!
2326 Check your system clock" >&2;}
2327    { (exit 1); exit 1; }; }
2328 fi
2329 { $as_echo "$as_me:$LINENO: result: yes" >&5
2330 $as_echo "yes" >&6; }
2331 test "$program_prefix" != NONE &&
2332   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333 # Use a double $ so make ignores it.
2334 test "$program_suffix" != NONE &&
2335   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 # Double any \ or $.
2337 # By default was `s,x,x', remove it if useless.
2338 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2340
2341 # expand $ac_aux_dir to an absolute path
2342 am_aux_dir=`cd $ac_aux_dir && pwd`
2343
2344 if test x"${MISSING+set}" != xset; then
2345   case $am_aux_dir in
2346   *\ * | *\     *)
2347     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2348   *)
2349     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2350   esac
2351 fi
2352 # Use eval to expand $SHELL
2353 if eval "$MISSING --run true"; then
2354   am_missing_run="$MISSING --run "
2355 else
2356   am_missing_run=
2357   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2358 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2359 fi
2360
2361 if test x"${install_sh}" != xset; then
2362   case $am_aux_dir in
2363   *\ * | *\     *)
2364     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2365   *)
2366     install_sh="\${SHELL} $am_aux_dir/install-sh"
2367   esac
2368 fi
2369
2370 # Installed binaries are usually stripped using `strip' when the user
2371 # run `make install-strip'.  However `strip' might not be the right
2372 # tool to use in cross-compilation environments, therefore Automake
2373 # will honor the `STRIP' environment variable to overrule this program.
2374 if test "$cross_compiling" != no; then
2375   if test -n "$ac_tool_prefix"; then
2376   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377 set dummy ${ac_tool_prefix}strip; ac_word=$2
2378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if test "${ac_cv_prog_STRIP+set}" = set; then
2381   $as_echo_n "(cached) " >&6
2382 else
2383   if test -n "$STRIP"; then
2384   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391   for ac_exec_ext in '' $ac_executable_extensions; do
2392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395     break 2
2396   fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2400
2401 fi
2402 fi
2403 STRIP=$ac_cv_prog_STRIP
2404 if test -n "$STRIP"; then
2405   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2406 $as_echo "$STRIP" >&6; }
2407 else
2408   { $as_echo "$as_me:$LINENO: result: no" >&5
2409 $as_echo "no" >&6; }
2410 fi
2411
2412
2413 fi
2414 if test -z "$ac_cv_prog_STRIP"; then
2415   ac_ct_STRIP=$STRIP
2416   # Extract the first word of "strip", so it can be a program name with args.
2417 set dummy strip; ac_word=$2
2418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2421   $as_echo_n "(cached) " >&6
2422 else
2423   if test -n "$ac_ct_STRIP"; then
2424   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429   IFS=$as_save_IFS
2430   test -z "$as_dir" && as_dir=.
2431   for ac_exec_ext in '' $ac_executable_extensions; do
2432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433     ac_cv_prog_ac_ct_STRIP="strip"
2434     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435     break 2
2436   fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444 if test -n "$ac_ct_STRIP"; then
2445   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2446 $as_echo "$ac_ct_STRIP" >&6; }
2447 else
2448   { $as_echo "$as_me:$LINENO: result: no" >&5
2449 $as_echo "no" >&6; }
2450 fi
2451
2452   if test "x$ac_ct_STRIP" = x; then
2453     STRIP=":"
2454   else
2455     case $cross_compiling:$ac_tool_warned in
2456 yes:)
2457 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2460 esac
2461     STRIP=$ac_ct_STRIP
2462   fi
2463 else
2464   STRIP="$ac_cv_prog_STRIP"
2465 fi
2466
2467 fi
2468 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2469
2470 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2471 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472 if test -z "$MKDIR_P"; then
2473   if test "${ac_cv_path_mkdir+set}" = set; then
2474   $as_echo_n "(cached) " >&6
2475 else
2476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481   for ac_prog in mkdir gmkdir; do
2482          for ac_exec_ext in '' $ac_executable_extensions; do
2483            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2484            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485              'mkdir (GNU coreutils) '* | \
2486              'mkdir (coreutils) '* | \
2487              'mkdir (fileutils) '4.1*)
2488                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2489                break 3;;
2490            esac
2491          done
2492        done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497
2498   if test "${ac_cv_path_mkdir+set}" = set; then
2499     MKDIR_P="$ac_cv_path_mkdir -p"
2500   else
2501     # As a last resort, use the slow shell script.  Don't cache a
2502     # value for MKDIR_P within a source directory, because that will
2503     # break other packages using the cache if that directory is
2504     # removed, or if the value is a relative name.
2505     test -d ./--version && rmdir ./--version
2506     MKDIR_P="$ac_install_sh -d"
2507   fi
2508 fi
2509 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2510 $as_echo "$MKDIR_P" >&6; }
2511
2512 mkdir_p="$MKDIR_P"
2513 case $mkdir_p in
2514   [\\/$]* | ?:[\\/]*) ;;
2515   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2516 esac
2517
2518 for ac_prog in gawk mawk nawk awk
2519 do
2520   # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if test "${ac_cv_prog_AWK+set}" = set; then
2525   $as_echo_n "(cached) " >&6
2526 else
2527   if test -n "$AWK"; then
2528   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_AWK="$ac_prog"
2538     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 AWK=$ac_cv_prog_AWK
2548 if test -n "$AWK"; then
2549   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2550 $as_echo "$AWK" >&6; }
2551 else
2552   { $as_echo "$as_me:$LINENO: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557   test -n "$AWK" && break
2558 done
2559
2560 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2562 set x ${MAKE-make}
2563 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2565   $as_echo_n "(cached) " >&6
2566 else
2567   cat >conftest.make <<\_ACEOF
2568 SHELL = /bin/sh
2569 all:
2570         @echo '@@@%%%=$(MAKE)=@@@%%%'
2571 _ACEOF
2572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2573 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2574   *@@@%%%=?*=@@@%%%*)
2575     eval ac_cv_prog_make_${ac_make}_set=yes;;
2576   *)
2577     eval ac_cv_prog_make_${ac_make}_set=no;;
2578 esac
2579 rm -f conftest.make
2580 fi
2581 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582   { $as_echo "$as_me:$LINENO: result: yes" >&5
2583 $as_echo "yes" >&6; }
2584   SET_MAKE=
2585 else
2586   { $as_echo "$as_me:$LINENO: result: no" >&5
2587 $as_echo "no" >&6; }
2588   SET_MAKE="MAKE=${MAKE-make}"
2589 fi
2590
2591 rm -rf .tst 2>/dev/null
2592 mkdir .tst 2>/dev/null
2593 if test -d .tst; then
2594   am__leading_dot=.
2595 else
2596   am__leading_dot=_
2597 fi
2598 rmdir .tst 2>/dev/null
2599
2600 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2601   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2602   # is not polluted with repeated "-I."
2603   am__isrc=' -I$(srcdir)'
2604   # test to see if srcdir already configured
2605   if test -f $srcdir/config.status; then
2606     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2607 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2608    { (exit 1); exit 1; }; }
2609   fi
2610 fi
2611
2612 # test whether we have cygpath
2613 if test -z "$CYGPATH_W"; then
2614   if (cygpath --version) >/dev/null 2>/dev/null; then
2615     CYGPATH_W='cygpath -w'
2616   else
2617     CYGPATH_W=echo
2618   fi
2619 fi
2620
2621
2622 # Define the identity of the package.
2623  PACKAGE='ofono'
2624  VERSION='1.4'
2625
2626
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE "$PACKAGE"
2629 _ACEOF
2630
2631
2632 cat >>confdefs.h <<_ACEOF
2633 #define VERSION "$VERSION"
2634 _ACEOF
2635
2636 # Some tools Automake needs.
2637
2638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2639
2640
2641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2642
2643
2644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2645
2646
2647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2648
2649
2650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2651
2652 # We need awk for the "check" target.  The system "awk" is bad on
2653 # some platforms.
2654 # Always define AMTAR for backward compatibility.
2655
2656 AMTAR=${AMTAR-"${am_missing_run}tar"}
2657
2658 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2659
2660
2661
2662
2663
2664 ac_config_headers="$ac_config_headers config.h"
2665
2666
2667 # Check whether --enable-silent-rules was given.
2668 if test "${enable_silent_rules+set}" = set; then
2669   enableval=$enable_silent_rules;
2670 fi
2671
2672 case $enable_silent_rules in
2673 yes) AM_DEFAULT_VERBOSITY=0;;
2674 no)  AM_DEFAULT_VERBOSITY=1;;
2675 *)   AM_DEFAULT_VERBOSITY=0;;
2676 esac
2677 AM_BACKSLASH='\'
2678
2679
2680
2681 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2682 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2683     # Check whether --enable-maintainer-mode was given.
2684 if test "${enable_maintainer_mode+set}" = set; then
2685   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2686 else
2687   USE_MAINTAINER_MODE=no
2688 fi
2689
2690   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2691 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2692    if test $USE_MAINTAINER_MODE = yes; then
2693   MAINTAINER_MODE_TRUE=
2694   MAINTAINER_MODE_FALSE='#'
2695 else
2696   MAINTAINER_MODE_TRUE='#'
2697   MAINTAINER_MODE_FALSE=
2698 fi
2699
2700   MAINT=$MAINTAINER_MODE_TRUE
2701
2702
2703
2704
2705
2706
2707
2708 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2709         if test -n "$ac_tool_prefix"; then
2710   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2711 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2712 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2715   $as_echo_n "(cached) " >&6
2716 else
2717   case $PKG_CONFIG in
2718   [\\/]* | ?:[\\/]*)
2719   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2720   ;;
2721   *)
2722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727   for ac_exec_ext in '' $ac_executable_extensions; do
2728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2730     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737   ;;
2738 esac
2739 fi
2740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2741 if test -n "$PKG_CONFIG"; then
2742   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2743 $as_echo "$PKG_CONFIG" >&6; }
2744 else
2745   { $as_echo "$as_me:$LINENO: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749
2750 fi
2751 if test -z "$ac_cv_path_PKG_CONFIG"; then
2752   ac_pt_PKG_CONFIG=$PKG_CONFIG
2753   # Extract the first word of "pkg-config", so it can be a program name with args.
2754 set dummy pkg-config; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2758   $as_echo_n "(cached) " >&6
2759 else
2760   case $ac_pt_PKG_CONFIG in
2761   [\\/]* | ?:[\\/]*)
2762   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2763   ;;
2764   *)
2765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768   IFS=$as_save_IFS
2769   test -z "$as_dir" && as_dir=.
2770   for ac_exec_ext in '' $ac_executable_extensions; do
2771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2773     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774     break 2
2775   fi
2776 done
2777 done
2778 IFS=$as_save_IFS
2779
2780   ;;
2781 esac
2782 fi
2783 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2784 if test -n "$ac_pt_PKG_CONFIG"; then
2785   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2786 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2787 else
2788   { $as_echo "$as_me:$LINENO: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792   if test "x$ac_pt_PKG_CONFIG" = x; then
2793     PKG_CONFIG=""
2794   else
2795     case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2800 esac
2801     PKG_CONFIG=$ac_pt_PKG_CONFIG
2802   fi
2803 else
2804   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2805 fi
2806
2807 fi
2808 if test -n "$PKG_CONFIG"; then
2809         _pkg_min_version=0.9.0
2810         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2811 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2812         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2813                 { $as_echo "$as_me:$LINENO: result: yes" >&5
2814 $as_echo "yes" >&6; }
2815         else
2816                 { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2818                 PKG_CONFIG=""
2819         fi
2820
2821 fi
2822
2823
2824         if (test "${CFLAGS}" = ""); then
2825                 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2826         fi
2827         if (test "$USE_MAINTAINER_MODE" = "yes"); then
2828                 CFLAGS="$CFLAGS -Werror -Wextra"
2829                 CFLAGS="$CFLAGS -Wno-unused-parameter"
2830                 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
2831                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
2832                 CFLAGS="$CFLAGS -Wmissing-declarations"
2833                 CFLAGS="$CFLAGS -Wredundant-decls"
2834                 CFLAGS="$CFLAGS -Wcast-align"
2835                 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
2836         fi
2837
2838
2839 ac_ext=c
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844
2845
2846 DEPDIR="${am__leading_dot}deps"
2847
2848 ac_config_commands="$ac_config_commands depfiles"
2849
2850
2851 am_make=${MAKE-make}
2852 cat > confinc << 'END'
2853 am__doit:
2854         @echo this is the am__doit target
2855 .PHONY: am__doit
2856 END
2857 # If we don't find an include directive, just comment out the code.
2858 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2859 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2860 am__include="#"
2861 am__quote=
2862 _am_result=none
2863 # First try GNU make style include.
2864 echo "include confinc" > confmf
2865 # Ignore all kinds of additional output from `make'.
2866 case `$am_make -s -f confmf 2> /dev/null` in #(
2867 *the\ am__doit\ target*)
2868   am__include=include
2869   am__quote=
2870   _am_result=GNU
2871   ;;
2872 esac
2873 # Now try BSD make style include.
2874 if test "$am__include" = "#"; then
2875    echo '.include "confinc"' > confmf
2876    case `$am_make -s -f confmf 2> /dev/null` in #(
2877    *the\ am__doit\ target*)
2878      am__include=.include
2879      am__quote="\""
2880      _am_result=BSD
2881      ;;
2882    esac
2883 fi
2884
2885
2886 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2887 $as_echo "$_am_result" >&6; }
2888 rm -f confinc confmf
2889
2890 # Check whether --enable-dependency-tracking was given.
2891 if test "${enable_dependency_tracking+set}" = set; then
2892   enableval=$enable_dependency_tracking;
2893 fi
2894
2895 if test "x$enable_dependency_tracking" != xno; then
2896   am_depcomp="$ac_aux_dir/depcomp"
2897   AMDEPBACKSLASH='\'
2898 fi
2899  if test "x$enable_dependency_tracking" != xno; then
2900   AMDEP_TRUE=
2901   AMDEP_FALSE='#'
2902 else
2903   AMDEP_TRUE='#'
2904   AMDEP_FALSE=
2905 fi
2906
2907
2908 ac_ext=c
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 if test -n "$ac_tool_prefix"; then
2914   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_CC+set}" = set; then
2919   $as_echo_n "(cached) " >&6
2920 else
2921   if test -n "$CC"; then
2922   ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929   for ac_exec_ext in '' $ac_executable_extensions; do
2930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2932     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946   { $as_echo "$as_me:$LINENO: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 fi
2952 if test -z "$ac_cv_prog_CC"; then
2953   ac_ct_CC=$CC
2954   # Extract the first word of "gcc", so it can be a program name with args.
2955 set dummy gcc; ac_word=$2
2956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2959   $as_echo_n "(cached) " >&6
2960 else
2961   if test -n "$ac_ct_CC"; then
2962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967   IFS=$as_save_IFS
2968   test -z "$as_dir" && as_dir=.
2969   for ac_exec_ext in '' $ac_executable_extensions; do
2970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971     ac_cv_prog_ac_ct_CC="gcc"
2972     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973     break 2
2974   fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2984 $as_echo "$ac_ct_CC" >&6; }
2985 else
2986   { $as_echo "$as_me:$LINENO: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990   if test "x$ac_ct_CC" = x; then
2991     CC=""
2992   else
2993     case $cross_compiling:$ac_tool_warned in
2994 yes:)
2995 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
2998 esac
2999     CC=$ac_ct_CC
3000   fi
3001 else
3002   CC="$ac_cv_prog_CC"
3003 fi
3004
3005 if test -z "$CC"; then
3006           if test -n "$ac_tool_prefix"; then
3007     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}cc; ac_word=$2
3009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_CC+set}" = set; then
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$CC"; then
3015   ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020   IFS=$as_save_IFS
3021   test -z "$as_dir" && as_dir=.
3022   for ac_exec_ext in '' $ac_executable_extensions; do
3023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024     ac_cv_prog_CC="${ac_tool_prefix}cc"
3025     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026     break 2
3027   fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 CC=$ac_cv_prog_CC
3035 if test -n "$CC"; then
3036   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3038 else
3039   { $as_echo "$as_me:$LINENO: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044   fi
3045 fi
3046 if test -z "$CC"; then
3047   # Extract the first word of "cc", so it can be a program name with args.
3048 set dummy cc; ac_word=$2
3049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CC+set}" = set; then
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$CC"; then
3055   ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057   ac_prog_rejected=no
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061   IFS=$as_save_IFS
3062   test -z "$as_dir" && as_dir=.
3063   for ac_exec_ext in '' $ac_executable_extensions; do
3064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3066        ac_prog_rejected=yes
3067        continue
3068      fi
3069     ac_cv_prog_CC="cc"
3070     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071     break 2
3072   fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 if test $ac_prog_rejected = yes; then
3078   # We found a bogon in the path, so make sure we never use it.
3079   set dummy $ac_cv_prog_CC
3080   shift
3081   if test $# != 0; then
3082     # We chose a different compiler from the bogus one.
3083     # However, it has the same basename, so the bogon will be chosen
3084     # first if we set CC to just the basename; use the full file name.
3085     shift
3086     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3087   fi
3088 fi
3089 fi
3090 fi
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3095 else
3096   { $as_echo "$as_me:$LINENO: result: no" >&5
3097 $as_echo "no" >&6; }
3098 fi
3099
3100
3101 fi
3102 if test -z "$CC"; then
3103   if test -n "$ac_tool_prefix"; then
3104   for ac_prog in cl.exe
3105   do
3106     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if test "${ac_cv_prog_CC+set}" = set; then
3111   $as_echo_n "(cached) " >&6
3112 else
3113   if test -n "$CC"; then
3114   ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121   for ac_exec_ext in '' $ac_executable_extensions; do
3122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3124     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125     break 2
3126   fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 CC=$ac_cv_prog_CC
3134 if test -n "$CC"; then
3135   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3137 else
3138   { $as_echo "$as_me:$LINENO: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143     test -n "$CC" && break
3144   done
3145 fi
3146 if test -z "$CC"; then
3147   ac_ct_CC=$CC
3148   for ac_prog in cl.exe
3149 do
3150   # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy $ac_prog; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$ac_ct_CC"; then
3158   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165   for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_ac_ct_CC="$ac_prog"
3168     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178 if test -n "$ac_ct_CC"; then
3179   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3180 $as_echo "$ac_ct_CC" >&6; }
3181 else
3182   { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187   test -n "$ac_ct_CC" && break
3188 done
3189
3190   if test "x$ac_ct_CC" = x; then
3191     CC=""
3192   else
3193     case $cross_compiling:$ac_tool_warned in
3194 yes:)
3195 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199     CC=$ac_ct_CC
3200   fi
3201 fi
3202
3203 fi
3204
3205
3206 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3209 See \`config.log' for more details." >&5
3210 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3211 See \`config.log' for more details." >&2;}
3212    { (exit 1); exit 1; }; }; }
3213
3214 # Provide some information about the compiler.
3215 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3216 set X $ac_compile
3217 ac_compiler=$2
3218 { (ac_try="$ac_compiler --version >&5"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225   (eval "$ac_compiler --version >&5") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }
3229 { (ac_try="$ac_compiler -v >&5"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235 $as_echo "$ac_try_echo") >&5
3236   (eval "$ac_compiler -v >&5") 2>&5
3237   ac_status=$?
3238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }
3240 { (ac_try="$ac_compiler -V >&5"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247   (eval "$ac_compiler -V >&5") 2>&5
3248   ac_status=$?
3249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }
3251
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h.  */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h.  */
3258
3259 int
3260 main ()
3261 {
3262
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3271 # of exeext.
3272 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3273 $as_echo_n "checking for C compiler default output file name... " >&6; }
3274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3275
3276 # The possible output files:
3277 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3278
3279 ac_rmfiles=
3280 for ac_file in $ac_files
3281 do
3282   case $ac_file in
3283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3285   esac
3286 done
3287 rm -f $ac_rmfiles
3288
3289 if { (ac_try="$ac_link_default"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295 $as_echo "$ac_try_echo") >&5
3296   (eval "$ac_link_default") 2>&5
3297   ac_status=$?
3298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; then
3300   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3301 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3302 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3303 # so that the user can short-circuit this test for compilers unknown to
3304 # Autoconf.
3305 for ac_file in $ac_files ''
3306 do
3307   test -f "$ac_file" || continue
3308   case $ac_file in
3309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3310         ;;
3311     [ab].out )
3312         # We found the default executable, but exeext='' is most
3313         # certainly right.
3314         break;;
3315     *.* )
3316         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3317         then :; else
3318            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319         fi
3320         # We set ac_cv_exeext here because the later test for it is not
3321         # safe: cross compilers may not add the suffix if given an `-o'
3322         # argument, so we may need to know it at that point already.
3323         # Even if this section looks crufty: it has the advantage of
3324         # actually working.
3325         break;;
3326     * )
3327         break;;
3328   esac
3329 done
3330 test "$ac_cv_exeext" = no && ac_cv_exeext=
3331
3332 else
3333   ac_file=''
3334 fi
3335
3336 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3337 $as_echo "$ac_file" >&6; }
3338 if test -z "$ac_file"; then
3339   $as_echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3345 See \`config.log' for more details." >&5
3346 $as_echo "$as_me: error: C compiler cannot create executables
3347 See \`config.log' for more details." >&2;}
3348    { (exit 77); exit 77; }; }; }
3349 fi
3350
3351 ac_exeext=$ac_cv_exeext
3352
3353 # Check that the compiler produces executables we can run.  If not, either
3354 # the compiler is broken, or we cross compile.
3355 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3356 $as_echo_n "checking whether the C compiler works... " >&6; }
3357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3358 # If not cross compiling, check that we can run a simple program.
3359 if test "$cross_compiling" != yes; then
3360   if { ac_try='./$ac_file'
3361   { (case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367   (eval "$ac_try") 2>&5
3368   ac_status=$?
3369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); }; }; then
3371     cross_compiling=no
3372   else
3373     if test "$cross_compiling" = maybe; then
3374         cross_compiling=yes
3375     else
3376         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3379 If you meant to cross compile, use \`--host'.
3380 See \`config.log' for more details." >&5
3381 $as_echo "$as_me: error: cannot run C compiled programs.
3382 If you meant to cross compile, use \`--host'.
3383 See \`config.log' for more details." >&2;}
3384    { (exit 1); exit 1; }; }; }
3385     fi
3386   fi
3387 fi
3388 { $as_echo "$as_me:$LINENO: result: yes" >&5
3389 $as_echo "yes" >&6; }
3390
3391 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3392 ac_clean_files=$ac_clean_files_save
3393 # Check that the compiler produces executables we can run.  If not, either
3394 # the compiler is broken, or we cross compile.
3395 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3396 $as_echo_n "checking whether we are cross compiling... " >&6; }
3397 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3399
3400 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3401 $as_echo_n "checking for suffix of executables... " >&6; }
3402 if { (ac_try="$ac_link"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409   (eval "$ac_link") 2>&5
3410   ac_status=$?
3411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }; then
3413   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3414 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3415 # work properly (i.e., refer to `conftest.exe'), while it won't with
3416 # `rm'.
3417 for ac_file in conftest.exe conftest conftest.*; do
3418   test -f "$ac_file" || continue
3419   case $ac_file in
3420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422           break;;
3423     * ) break;;
3424   esac
3425 done
3426 else
3427   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3430 See \`config.log' for more details." >&5
3431 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3432 See \`config.log' for more details." >&2;}
3433    { (exit 1); exit 1; }; }; }
3434 fi
3435
3436 rm -f conftest$ac_cv_exeext
3437 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3438 $as_echo "$ac_cv_exeext" >&6; }
3439
3440 rm -f conftest.$ac_ext
3441 EXEEXT=$ac_cv_exeext
3442 ac_exeext=$EXEEXT
3443 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3444 $as_echo_n "checking for suffix of object files... " >&6; }
3445 if test "${ac_cv_objext+set}" = set; then
3446   $as_echo_n "(cached) " >&6
3447 else
3448   cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.o conftest.obj
3464 if { (ac_try="$ac_compile"
3465 case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470 $as_echo "$ac_try_echo") >&5
3471   (eval "$ac_compile") 2>&5
3472   ac_status=$?
3473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); }; then
3475   for ac_file in conftest.o conftest.obj conftest.*; do
3476   test -f "$ac_file" || continue;
3477   case $ac_file in
3478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480        break;;
3481   esac
3482 done
3483 else
3484   $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details." >&5
3491 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details." >&2;}
3493    { (exit 1); exit 1; }; }; }
3494 fi
3495
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497 fi
3498 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3499 $as_echo "$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3501 ac_objext=$OBJEXT
3502 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3503 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3505   $as_echo_n "(cached) " >&6
3506 else
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517 #ifndef __GNUC__
3518        choke me
3519 #endif
3520
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529   *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532 $as_echo "$ac_try_echo") >&5
3533   (eval "$ac_compile") 2>conftest.er1
3534   ac_status=$?
3535   grep -v '^ *+' conftest.er1 >conftest.err
3536   rm -f conftest.er1
3537   cat conftest.err >&5
3538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); } && {
3540          test -z "$ac_c_werror_flag" ||
3541          test ! -s conftest.err
3542        } && test -s conftest.$ac_objext; then
3543   ac_compiler_gnu=yes
3544 else
3545   $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548         ac_compiler_gnu=no
3549 fi
3550
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3553
3554 fi
3555 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3556 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3557 if test $ac_compiler_gnu = yes; then
3558   GCC=yes
3559 else
3560   GCC=
3561 fi
3562 ac_test_CFLAGS=${CFLAGS+set}
3563 ac_save_CFLAGS=$CFLAGS
3564 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3565 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3566 if test "${ac_cv_prog_cc_g+set}" = set; then
3567   $as_echo_n "(cached) " >&6
3568 else
3569   ac_save_c_werror_flag=$ac_c_werror_flag
3570    ac_c_werror_flag=yes
3571    ac_cv_prog_cc_g=no
3572    CFLAGS="-g"
3573    cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595 $as_echo "$ac_try_echo") >&5
3596   (eval "$ac_compile") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } && {
3603          test -z "$ac_c_werror_flag" ||
3604          test ! -s conftest.err
3605        } && test -s conftest.$ac_objext; then
3606   ac_cv_prog_cc_g=yes
3607 else
3608   $as_echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611         CFLAGS=""
3612       cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618
3619 int
3620 main ()
3621 {
3622
3623   ;
3624   return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631   *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635   (eval "$ac_compile") 2>conftest.er1
3636   ac_status=$?
3637   grep -v '^ *+' conftest.er1 >conftest.err
3638   rm -f conftest.er1
3639   cat conftest.err >&5
3640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); } && {
3642          test -z "$ac_c_werror_flag" ||
3643          test ! -s conftest.err
3644        } && test -s conftest.$ac_objext; then
3645   :
3646 else
3647   $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3649
3650         ac_c_werror_flag=$ac_save_c_werror_flag
3651          CFLAGS="-g"
3652          cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h.  */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h.  */
3658
3659 int
3660 main ()
3661 {
3662
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 rm -f conftest.$ac_objext
3668 if { (ac_try="$ac_compile"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3674 $as_echo "$ac_try_echo") >&5
3675   (eval "$ac_compile") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } && {
3682          test -z "$ac_c_werror_flag" ||
3683          test ! -s conftest.err
3684        } && test -s conftest.$ac_objext; then
3685   ac_cv_prog_cc_g=yes
3686 else
3687   $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690
3691 fi
3692
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 fi
3695
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 fi
3698
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700    ac_c_werror_flag=$ac_save_c_werror_flag
3701 fi
3702 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3703 $as_echo "$ac_cv_prog_cc_g" >&6; }
3704 if test "$ac_test_CFLAGS" = set; then
3705   CFLAGS=$ac_save_CFLAGS
3706 elif test $ac_cv_prog_cc_g = yes; then
3707   if test "$GCC" = yes; then
3708     CFLAGS="-g -O2"
3709   else
3710     CFLAGS="-g"
3711   fi
3712 else
3713   if test "$GCC" = yes; then
3714     CFLAGS="-O2"
3715   else
3716     CFLAGS=
3717   fi
3718 fi
3719 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3720 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3721 if test "${ac_cv_prog_cc_c89+set}" = set; then
3722   $as_echo_n "(cached) " >&6
3723 else
3724   ac_cv_prog_cc_c89=no
3725 ac_save_CC=$CC
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732 #include <stdarg.h>
3733 #include <stdio.h>
3734 #include <sys/types.h>
3735 #include <sys/stat.h>
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3740      char **p;
3741      int i;
3742 {
3743   return p[i];
3744 }
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3746 {
3747   char *s;
3748   va_list v;
3749   va_start (v,p);
3750   s = g (p, va_arg (v,int));
3751   va_end (v);
3752   return s;
3753 }
3754
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3756    function prototypes and stuff, but not '\xHH' hex character constants.
3757    These don't provoke an error unfortunately, instead are silently treated
3758    as 'x'.  The following induces an error, until -std is added to get
3759    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3760    array size at least.  It's necessary to write '\x00'==0 to get something
3761    that's true only with -std.  */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3763
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765    inside strings and character constants.  */
3766 #define FOO(x) 'x'
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3768
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773 int argc;
3774 char **argv;
3775 int
3776 main ()
3777 {
3778 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785 do
3786   CC="$ac_save_CC $ac_arg"
3787   rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3794 $as_echo "$ac_try_echo") >&5
3795   (eval "$ac_compile") 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } && {
3802          test -z "$ac_c_werror_flag" ||
3803          test ! -s conftest.err
3804        } && test -s conftest.$ac_objext; then
3805   ac_cv_prog_cc_c89=$ac_arg
3806 else
3807   $as_echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810
3811 fi
3812
3813 rm -f core conftest.err conftest.$ac_objext
3814   test "x$ac_cv_prog_cc_c89" != "xno" && break
3815 done
3816 rm -f conftest.$ac_ext
3817 CC=$ac_save_CC
3818
3819 fi
3820 # AC_CACHE_VAL
3821 case "x$ac_cv_prog_cc_c89" in
3822   x)
3823     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3824 $as_echo "none needed" >&6; } ;;
3825   xno)
3826     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3827 $as_echo "unsupported" >&6; } ;;
3828   *)
3829     CC="$CC $ac_cv_prog_cc_c89"
3830     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3831 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3832 esac
3833
3834
3835 ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
3841 depcc="$CC"   am_compiler_list=
3842
3843 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3844 $as_echo_n "checking dependency style of $depcc... " >&6; }
3845 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3846   $as_echo_n "(cached) " >&6
3847 else
3848   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3849   # We make a subdir and do the tests there.  Otherwise we can end up
3850   # making bogus files that we don't know about and never remove.  For
3851   # instance it was reported that on HP-UX the gcc test will end up
3852   # making a dummy file named `D' -- because `-MD' means `put the output
3853   # in D'.
3854   mkdir conftest.dir
3855   # Copy depcomp to subdir because otherwise we won't find it if we're
3856   # using a relative directory.
3857   cp "$am_depcomp" conftest.dir
3858   cd conftest.dir
3859   # We will build objects and dependencies in a subdirectory because
3860   # it helps to detect inapplicable dependency modes.  For instance
3861   # both Tru64's cc and ICC support -MD to output dependencies as a
3862   # side effect of compilation, but ICC will put the dependencies in
3863   # the current directory while Tru64 will put them in the object
3864   # directory.
3865   mkdir sub
3866
3867   am_cv_CC_dependencies_compiler_type=none
3868   if test "$am_compiler_list" = ""; then
3869      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3870   fi
3871   am__universal=false
3872   case " $depcc " in #(
3873      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874      esac
3875
3876   for depmode in $am_compiler_list; do
3877     # Setup a source with many dependencies, because some compilers
3878     # like to wrap large dependency lists on column 80 (with \), and
3879     # we should not choose a depcomp mode which is confused by this.
3880     #
3881     # We need to recreate these files for each test, as the compiler may
3882     # overwrite some of them when testing with obscure command lines.
3883     # This happens at least with the AIX C compiler.
3884     : > sub/conftest.c
3885     for i in 1 2 3 4 5 6; do
3886       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888       # Solaris 8's {/usr,}/bin/sh.
3889       touch sub/conftst$i.h
3890     done
3891     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3892
3893     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894     # mode.  It turns out that the SunPro C++ compiler does not properly
3895     # handle `-M -o', and we need to detect this.  Also, some Intel
3896     # versions had trouble with output in subdirs
3897     am__obj=sub/conftest.${OBJEXT-o}
3898     am__minus_obj="-o $am__obj"
3899     case $depmode in
3900     gcc)
3901       # This depmode causes a compiler race in universal mode.
3902       test "$am__universal" = false || continue
3903       ;;
3904     nosideeffect)
3905       # after this tag, mechanisms are not by side-effect, so they'll
3906       # only be used when explicitly requested
3907       if test "x$enable_dependency_tracking" = xyes; then
3908         continue
3909       else
3910         break
3911       fi
3912       ;;
3913     msvisualcpp | msvcmsys)
3914       # This compiler won't grok `-c -o', but also, the minuso test has
3915       # not run yet.  These depmodes are late enough in the game, and
3916       # so weak that their functioning should not be impacted.
3917       am__obj=conftest.${OBJEXT-o}
3918       am__minus_obj=
3919       ;;
3920     none) break ;;
3921     esac
3922     if depmode=$depmode \
3923        source=sub/conftest.c object=$am__obj \
3924        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926          >/dev/null 2>conftest.err &&
3927        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931       # icc doesn't choke on unknown options, it will just issue warnings
3932       # or remarks (even with -Werror).  So we grep stderr for any message
3933       # that says an option was ignored or not supported.
3934       # When given -MP, icc 7.0 and 7.1 complain thusly:
3935       #   icc: Command line warning: ignoring option '-M'; no argument required
3936       # The diagnosis changed in icc 8.0:
3937       #   icc: Command line remark: option '-MP' not supported
3938       if (grep 'ignoring option' conftest.err ||
3939           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940         am_cv_CC_dependencies_compiler_type=$depmode
3941         break
3942       fi
3943     fi
3944   done
3945
3946   cd ..
3947   rm -rf conftest.dir
3948 else
3949   am_cv_CC_dependencies_compiler_type=none
3950 fi
3951
3952 fi
3953 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3954 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3956
3957  if
3958   test "x$enable_dependency_tracking" != xno \
3959   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960   am__fastdepCC_TRUE=
3961   am__fastdepCC_FALSE='#'
3962 else
3963   am__fastdepCC_TRUE='#'
3964   am__fastdepCC_FALSE=
3965 fi
3966
3967
3968
3969 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
3970 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
3971 if test "${ac_cv_c_restrict+set}" = set; then
3972   $as_echo_n "(cached) " >&6
3973 else
3974   ac_cv_c_restrict=no
3975    # The order here caters to the fact that C++ does not require restrict.
3976    for ac_kw in __restrict __restrict__ _Restrict restrict; do
3977      cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h.  */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h.  */
3983 typedef int * int_ptr;
3984         int foo (int_ptr $ac_kw ip) {
3985         return ip[0];
3986        }
3987 int
3988 main ()
3989 {
3990 int s[1];
3991         int * $ac_kw t = s;
3992         t[0] = 0;
3993         return foo(t)
3994   ;
3995   return 0;
3996 }
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4005 $as_echo "$ac_try_echo") >&5
4006   (eval "$ac_compile") 2>conftest.er1
4007   ac_status=$?
4008   grep -v '^ *+' conftest.er1 >conftest.err
4009   rm -f conftest.er1
4010   cat conftest.err >&5
4011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } && {
4013          test -z "$ac_c_werror_flag" ||
4014          test ! -s conftest.err
4015        } && test -s conftest.$ac_objext; then
4016   ac_cv_c_restrict=$ac_kw
4017 else
4018   $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021
4022 fi
4023
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025      test "$ac_cv_c_restrict" != no && break
4026    done
4027
4028 fi
4029 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4030 $as_echo "$ac_cv_c_restrict" >&6; }
4031
4032
4033  case $ac_cv_c_restrict in
4034    restrict) ;;
4035    no) cat >>confdefs.h <<\_ACEOF
4036 #define restrict /**/
4037 _ACEOF
4038  ;;
4039    *)  cat >>confdefs.h <<_ACEOF
4040 #define restrict $ac_cv_c_restrict
4041 _ACEOF
4042  ;;
4043  esac
4044
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 if test -n "$ac_tool_prefix"; then
4052   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then
4057   $as_echo_n "(cached) " >&6
4058 else
4059   if test -n "$CC"; then
4060   ac_cv_prog_CC="$CC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067   for ac_exec_ext in '' $ac_executable_extensions; do
4068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4070     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071     break 2
4072   fi
4073 done
4074 done
4075 IFS=$as_save_IFS
4076
4077 fi
4078 fi
4079 CC=$ac_cv_prog_CC
4080 if test -n "$CC"; then
4081   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4082 $as_echo "$CC" >&6; }
4083 else
4084   { $as_echo "$as_me:$LINENO: result: no" >&5
4085 $as_echo "no" >&6; }
4086 fi
4087
4088
4089 fi
4090 if test -z "$ac_cv_prog_CC"; then
4091   ac_ct_CC=$CC
4092   # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4097   $as_echo_n "(cached) " >&6
4098 else
4099   if test -n "$ac_ct_CC"; then
4100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105   IFS=$as_save_IFS
4106   test -z "$as_dir" && as_dir=.
4107   for ac_exec_ext in '' $ac_executable_extensions; do
4108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109     ac_cv_prog_ac_ct_CC="gcc"
4110     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111     break 2
4112   fi
4113 done
4114 done
4115 IFS=$as_save_IFS
4116
4117 fi
4118 fi
4119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120 if test -n "$ac_ct_CC"; then
4121   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4122 $as_echo "$ac_ct_CC" >&6; }
4123 else
4124   { $as_echo "$as_me:$LINENO: result: no" >&5
4125 $as_echo "no" >&6; }
4126 fi
4127
4128   if test "x$ac_ct_CC" = x; then
4129     CC=""
4130   else
4131     case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4136 esac
4137     CC=$ac_ct_CC
4138   fi
4139 else
4140   CC="$ac_cv_prog_CC"
4141 fi
4142
4143 if test -z "$CC"; then
4144           if test -n "$ac_tool_prefix"; then
4145     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4146 set dummy ${ac_tool_prefix}cc; ac_word=$2
4147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then
4150   $as_echo_n "(cached) " >&6
4151 else
4152   if test -n "$CC"; then
4153   ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160   for ac_exec_ext in '' $ac_executable_extensions; do
4161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162     ac_cv_prog_CC="${ac_tool_prefix}cc"
4163     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164     break 2
4165   fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 CC=$ac_cv_prog_CC
4173 if test -n "$CC"; then
4174   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4175 $as_echo "$CC" >&6; }
4176 else
4177   { $as_echo "$as_me:$LINENO: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181
4182   fi
4183 fi
4184 if test -z "$CC"; then
4185   # Extract the first word of "cc", so it can be a program name with args.
4186 set dummy cc; ac_word=$2
4187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_CC+set}" = set; then
4190   $as_echo_n "(cached) " >&6
4191 else
4192   if test -n "$CC"; then
4193   ac_cv_prog_CC="$CC" # Let the user override the test.
4194 else
4195   ac_prog_rejected=no
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201   for ac_exec_ext in '' $ac_executable_extensions; do
4202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4204        ac_prog_rejected=yes
4205        continue
4206      fi
4207     ac_cv_prog_CC="cc"
4208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213 IFS=$as_save_IFS
4214
4215 if test $ac_prog_rejected = yes; then
4216   # We found a bogon in the path, so make sure we never use it.
4217   set dummy $ac_cv_prog_CC
4218   shift
4219   if test $# != 0; then
4220     # We chose a different compiler from the bogus one.
4221     # However, it has the same basename, so the bogon will be chosen
4222     # first if we set CC to just the basename; use the full file name.
4223     shift
4224     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4225   fi
4226 fi
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4233 else
4234   { $as_echo "$as_me:$LINENO: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237
4238
4239 fi
4240 if test -z "$CC"; then
4241   if test -n "$ac_tool_prefix"; then
4242   for ac_prog in cl.exe
4243   do
4244     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_prog_CC+set}" = set; then
4249   $as_echo_n "(cached) " >&6
4250 else
4251   if test -n "$CC"; then
4252   ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259   for ac_exec_ext in '' $ac_executable_extensions; do
4260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4262     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi
4270 fi
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276   { $as_echo "$as_me:$LINENO: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281     test -n "$CC" && break
4282   done
4283 fi
4284 if test -z "$CC"; then
4285   ac_ct_CC=$CC
4286   for ac_prog in cl.exe
4287 do
4288   # Extract the first word of "$ac_prog", so it can be a program name with args.
4289 set dummy $ac_prog; ac_word=$2
4290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4293   $as_echo_n "(cached) " >&6
4294 else
4295   if test -n "$ac_ct_CC"; then
4296   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305     ac_cv_prog_ac_ct_CC="$ac_prog"
4306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310 done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4316 if test -n "$ac_ct_CC"; then
4317   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4318 $as_echo "$ac_ct_CC" >&6; }
4319 else
4320   { $as_echo "$as_me:$LINENO: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325   test -n "$ac_ct_CC" && break
4326 done
4327
4328   if test "x$ac_ct_CC" = x; then
4329     CC=""
4330   else
4331     case $cross_compiling:$ac_tool_warned in
4332 yes:)
4333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4335 ac_tool_warned=yes ;;
4336 esac
4337     CC=$ac_ct_CC
4338   fi
4339 fi
4340
4341 fi
4342
4343
4344 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4346 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." >&5
4348 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4349 See \`config.log' for more details." >&2;}
4350    { (exit 1); exit 1; }; }; }
4351
4352 # Provide some information about the compiler.
4353 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4354 set X $ac_compile
4355 ac_compiler=$2
4356 { (ac_try="$ac_compiler --version >&5"
4357 case "(($ac_try" in
4358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359   *) ac_try_echo=$ac_try;;
4360 esac
4361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4362 $as_echo "$ac_try_echo") >&5
4363   (eval "$ac_compiler --version >&5") 2>&5
4364   ac_status=$?
4365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }
4367 { (ac_try="$ac_compiler -v >&5"
4368 case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4373 $as_echo "$ac_try_echo") >&5
4374   (eval "$ac_compiler -v >&5") 2>&5
4375   ac_status=$?
4376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }
4378 { (ac_try="$ac_compiler -V >&5"
4379 case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4384 $as_echo "$ac_try_echo") >&5
4385   (eval "$ac_compiler -V >&5") 2>&5
4386   ac_status=$?
4387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }
4389
4390 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4393   $as_echo_n "(cached) " >&6
4394 else
4395   cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401
4402 int
4403 main ()
4404 {
4405 #ifndef __GNUC__
4406        choke me
4407 #endif
4408
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (ac_try="$ac_compile"
4415 case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4420 $as_echo "$ac_try_echo") >&5
4421   (eval "$ac_compile") 2>conftest.er1
4422   ac_status=$?
4423   grep -v '^ *+' conftest.er1 >conftest.err
4424   rm -f conftest.er1
4425   cat conftest.err >&5
4426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } && {
4428          test -z "$ac_c_werror_flag" ||
4429          test ! -s conftest.err
4430        } && test -s conftest.$ac_objext; then
4431   ac_compiler_gnu=yes
4432 else
4433   $as_echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436         ac_compiler_gnu=no
4437 fi
4438
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4441
4442 fi
4443 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4444 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4445 if test $ac_compiler_gnu = yes; then
4446   GCC=yes
4447 else
4448   GCC=
4449 fi
4450 ac_test_CFLAGS=${CFLAGS+set}
4451 ac_save_CFLAGS=$CFLAGS
4452 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4453 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4454 if test "${ac_cv_prog_cc_g+set}" = set; then
4455   $as_echo_n "(cached) " >&6
4456 else
4457   ac_save_c_werror_flag=$ac_c_werror_flag
4458    ac_c_werror_flag=yes
4459    ac_cv_prog_cc_g=no
4460    CFLAGS="-g"
4461    cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467
4468 int
4469 main ()
4470 {
4471
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (ac_try="$ac_compile"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484   (eval "$ac_compile") 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } && {
4491          test -z "$ac_c_werror_flag" ||
4492          test ! -s conftest.err
4493        } && test -s conftest.$ac_objext; then
4494   ac_cv_prog_cc_g=yes
4495 else
4496   $as_echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499         CFLAGS=""
4500       cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506
4507 int
4508 main ()
4509 {
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (ac_try="$ac_compile"
4517 case "(($ac_try" in
4518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519   *) ac_try_echo=$ac_try;;
4520 esac
4521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4522 $as_echo "$ac_try_echo") >&5
4523   (eval "$ac_compile") 2>conftest.er1
4524   ac_status=$?
4525   grep -v '^ *+' conftest.er1 >conftest.err
4526   rm -f conftest.er1
4527   cat conftest.err >&5
4528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } && {
4530          test -z "$ac_c_werror_flag" ||
4531          test ! -s conftest.err
4532        } && test -s conftest.$ac_objext; then
4533   :
4534 else
4535   $as_echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538         ac_c_werror_flag=$ac_save_c_werror_flag
4539          CFLAGS="-g"
4540          cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546
4547 int
4548 main ()
4549 {
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4557 case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563   (eval "$ac_compile") 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } && {
4570          test -z "$ac_c_werror_flag" ||
4571          test ! -s conftest.err
4572        } && test -s conftest.$ac_objext; then
4573   ac_cv_prog_cc_g=yes
4574 else
4575   $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578
4579 fi
4580
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 fi
4583
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 fi
4586
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588    ac_c_werror_flag=$ac_save_c_werror_flag
4589 fi
4590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4591 $as_echo "$ac_cv_prog_cc_g" >&6; }
4592 if test "$ac_test_CFLAGS" = set; then
4593   CFLAGS=$ac_save_CFLAGS
4594 elif test $ac_cv_prog_cc_g = yes; then
4595   if test "$GCC" = yes; then
4596     CFLAGS="-g -O2"
4597   else
4598     CFLAGS="-g"
4599   fi
4600 else
4601   if test "$GCC" = yes; then
4602     CFLAGS="-O2"
4603   else
4604     CFLAGS=
4605   fi
4606 fi
4607 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4609 if test "${ac_cv_prog_cc_c89+set}" = set; then
4610   $as_echo_n "(cached) " >&6
4611 else
4612   ac_cv_prog_cc_c89=no
4613 ac_save_CC=$CC
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 #include <stdarg.h>
4621 #include <stdio.h>
4622 #include <sys/types.h>
4623 #include <sys/stat.h>
4624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4625 struct buf { int x; };
4626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4627 static char *e (p, i)
4628      char **p;
4629      int i;
4630 {
4631   return p[i];
4632 }
4633 static char *f (char * (*g) (char **, int), char **p, ...)
4634 {
4635   char *s;
4636   va_list v;
4637   va_start (v,p);
4638   s = g (p, va_arg (v,int));
4639   va_end (v);
4640   return s;
4641 }
4642
4643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4644    function prototypes and stuff, but not '\xHH' hex character constants.
4645    These don't provoke an error unfortunately, instead are silently treated
4646    as 'x'.  The following induces an error, until -std is added to get
4647    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4648    array size at least.  It's necessary to write '\x00'==0 to get something
4649    that's true only with -std.  */
4650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4651
4652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4653    inside strings and character constants.  */
4654 #define FOO(x) 'x'
4655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4656
4657 int test (int i, double x);
4658 struct s1 {int (*f) (int a);};
4659 struct s2 {int (*f) (double a);};
4660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4661 int argc;
4662 char **argv;
4663 int
4664 main ()
4665 {
4666 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4672         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4673 do
4674   CC="$ac_save_CC $ac_arg"
4675   rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683   (eval "$ac_compile") 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } && {
4690          test -z "$ac_c_werror_flag" ||
4691          test ! -s conftest.err
4692        } && test -s conftest.$ac_objext; then
4693   ac_cv_prog_cc_c89=$ac_arg
4694 else
4695   $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698
4699 fi
4700
4701 rm -f core conftest.err conftest.$ac_objext
4702   test "x$ac_cv_prog_cc_c89" != "xno" && break
4703 done
4704 rm -f conftest.$ac_ext
4705 CC=$ac_save_CC
4706
4707 fi
4708 # AC_CACHE_VAL
4709 case "x$ac_cv_prog_cc_c89" in
4710   x)
4711     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4712 $as_echo "none needed" >&6; } ;;
4713   xno)
4714     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4715 $as_echo "unsupported" >&6; } ;;
4716   *)
4717     CC="$CC $ac_cv_prog_cc_c89"
4718     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4720 esac
4721
4722
4723 ac_ext=c
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728
4729 depcc="$CC"   am_compiler_list=
4730
4731 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4732 $as_echo_n "checking dependency style of $depcc... " >&6; }
4733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4734   $as_echo_n "(cached) " >&6
4735 else
4736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4737   # We make a subdir and do the tests there.  Otherwise we can end up
4738   # making bogus files that we don't know about and never remove.  For
4739   # instance it was reported that on HP-UX the gcc test will end up
4740   # making a dummy file named `D' -- because `-MD' means `put the output
4741   # in D'.
4742   mkdir conftest.dir
4743   # Copy depcomp to subdir because otherwise we won't find it if we're
4744   # using a relative directory.
4745   cp "$am_depcomp" conftest.dir
4746   cd conftest.dir
4747   # We will build objects and dependencies in a subdirectory because
4748   # it helps to detect inapplicable dependency modes.  For instance
4749   # both Tru64's cc and ICC support -MD to output dependencies as a
4750   # side effect of compilation, but ICC will put the dependencies in
4751   # the current directory while Tru64 will put them in the object
4752   # directory.
4753   mkdir sub
4754
4755   am_cv_CC_dependencies_compiler_type=none
4756   if test "$am_compiler_list" = ""; then
4757      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4758   fi
4759   am__universal=false
4760   case " $depcc " in #(
4761      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4762      esac
4763
4764   for depmode in $am_compiler_list; do
4765     # Setup a source with many dependencies, because some compilers
4766     # like to wrap large dependency lists on column 80 (with \), and
4767     # we should not choose a depcomp mode which is confused by this.
4768     #
4769     # We need to recreate these files for each test, as the compiler may
4770     # overwrite some of them when testing with obscure command lines.
4771     # This happens at least with the AIX C compiler.
4772     : > sub/conftest.c
4773     for i in 1 2 3 4 5 6; do
4774       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4775       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4776       # Solaris 8's {/usr,}/bin/sh.
4777       touch sub/conftst$i.h
4778     done
4779     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4780
4781     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4782     # mode.  It turns out that the SunPro C++ compiler does not properly
4783     # handle `-M -o', and we need to detect this.  Also, some Intel
4784     # versions had trouble with output in subdirs
4785     am__obj=sub/conftest.${OBJEXT-o}
4786     am__minus_obj="-o $am__obj"
4787     case $depmode in
4788     gcc)
4789       # This depmode causes a compiler race in universal mode.
4790       test "$am__universal" = false || continue
4791       ;;
4792     nosideeffect)
4793       # after this tag, mechanisms are not by side-effect, so they'll
4794       # only be used when explicitly requested
4795       if test "x$enable_dependency_tracking" = xyes; then
4796         continue
4797       else
4798         break
4799       fi
4800       ;;
4801     msvisualcpp | msvcmsys)
4802       # This compiler won't grok `-c -o', but also, the minuso test has
4803       # not run yet.  These depmodes are late enough in the game, and
4804       # so weak that their functioning should not be impacted.
4805       am__obj=conftest.${OBJEXT-o}
4806       am__minus_obj=
4807       ;;
4808     none) break ;;
4809     esac
4810     if depmode=$depmode \
4811        source=sub/conftest.c object=$am__obj \
4812        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4813        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4814          >/dev/null 2>conftest.err &&
4815        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4816        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4817        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4818        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4819       # icc doesn't choke on unknown options, it will just issue warnings
4820       # or remarks (even with -Werror).  So we grep stderr for any message
4821       # that says an option was ignored or not supported.
4822       # When given -MP, icc 7.0 and 7.1 complain thusly:
4823       #   icc: Command line warning: ignoring option '-M'; no argument required
4824       # The diagnosis changed in icc 8.0:
4825       #   icc: Command line remark: option '-MP' not supported
4826       if (grep 'ignoring option' conftest.err ||
4827           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4828         am_cv_CC_dependencies_compiler_type=$depmode
4829         break
4830       fi
4831     fi
4832   done
4833
4834   cd ..
4835   rm -rf conftest.dir
4836 else
4837   am_cv_CC_dependencies_compiler_type=none
4838 fi
4839
4840 fi
4841 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4842 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4843 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4844
4845  if
4846   test "x$enable_dependency_tracking" != xno \
4847   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4848   am__fastdepCC_TRUE=
4849   am__fastdepCC_FALSE='#'
4850 else
4851   am__fastdepCC_TRUE='#'
4852   am__fastdepCC_FALSE=
4853 fi
4854
4855
4856 if test "x$CC" != xcc; then
4857   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4858 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4859 else
4860   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4861 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4862 fi
4863 set dummy $CC; ac_cc=`$as_echo "$2" |
4864                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4865 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4866   $as_echo_n "(cached) " >&6
4867 else
4868   cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874
4875 int
4876 main ()
4877 {
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 # Make sure it works both with $CC and with simple cc.
4884 # We do the test twice because some compilers refuse to overwrite an
4885 # existing .o file with -o, though they will create one.
4886 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4887 rm -f conftest2.*
4888 if { (case "(($ac_try" in
4889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890   *) ac_try_echo=$ac_try;;
4891 esac
4892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4893 $as_echo "$ac_try_echo") >&5
4894   (eval "$ac_try") 2>&5
4895   ac_status=$?
4896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); } &&
4898    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900   *) ac_try_echo=$ac_try;;
4901 esac
4902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4903 $as_echo "$ac_try_echo") >&5
4904   (eval "$ac_try") 2>&5
4905   ac_status=$?
4906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); };
4908 then
4909   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4910   if test "x$CC" != xcc; then
4911     # Test first that cc exists at all.
4912     if { ac_try='cc -c conftest.$ac_ext >&5'
4913   { (case "(($ac_try" in
4914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915   *) ac_try_echo=$ac_try;;
4916 esac
4917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4918 $as_echo "$ac_try_echo") >&5
4919   (eval "$ac_try") 2>&5
4920   ac_status=$?
4921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4924       rm -f conftest2.*
4925       if { (case "(($ac_try" in
4926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927   *) ac_try_echo=$ac_try;;
4928 esac
4929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4930 $as_echo "$ac_try_echo") >&5
4931   (eval "$ac_try") 2>&5
4932   ac_status=$?
4933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); } &&
4935          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937   *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941   (eval "$ac_try") 2>&5
4942   ac_status=$?
4943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); };
4945       then
4946         # cc works too.
4947         :
4948       else
4949         # cc exists but doesn't like -o.
4950         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4951       fi
4952     fi
4953   fi
4954 else
4955   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4956 fi
4957 rm -f core conftest*
4958
4959 fi
4960 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4961   { $as_echo "$as_me:$LINENO: result: yes" >&5
4962 $as_echo "yes" >&6; }
4963 else
4964   { $as_echo "$as_me:$LINENO: result: no" >&5
4965 $as_echo "no" >&6; }
4966
4967 cat >>confdefs.h <<\_ACEOF
4968 #define NO_MINUS_C_MINUS_O 1
4969 _ACEOF
4970
4971 fi
4972
4973 # FIXME: we rely on the cache variable name because
4974 # there is no other way.
4975 set dummy $CC
4976 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4977 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4978 if test "$am_t" != yes; then
4979    # Losing compiler, so override with the script.
4980    # FIXME: It is wrong to rewrite CC.
4981    # But if we don't then we get into trouble of one sort or another.
4982    # A longer-term fix would be to have automake use am__CC in this case,
4983    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4984    CC="$am_aux_dir/compile $CC"
4985 fi
4986
4987
4988
4989         { $as_echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fPIE" >&5
4990 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4991 if test "${ac_cv_prog_cc_pie+set}" = set; then
4992   $as_echo_n "(cached) " >&6
4993 else
4994
4995                 echo 'void f(){}' > conftest.c
4996                 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4997                         ac_cv_prog_cc_pie=yes
4998                 else
4999                         ac_cv_prog_cc_pie=no
5000                 fi
5001                 rm -rf conftest*
5002
5003 fi
5004 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_pie" >&5
5005 $as_echo "$ac_cv_prog_cc_pie" >&6; }
5006
5007 # Find a good install program.  We prefer a C program (faster),
5008 # so one script is as good as another.  But avoid the broken or
5009 # incompatible versions:
5010 # SysV /etc/install, /usr/sbin/install
5011 # SunOS /usr/etc/install
5012 # IRIX /sbin/install
5013 # AIX /bin/install
5014 # AmigaOS /C/install, which installs bootblocks on floppy discs
5015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5018 # OS/2's system install, which has a completely different semantic
5019 # ./install, which can be erroneously created by make from ./install.sh.
5020 # Reject install programs that cannot install multiple files.
5021 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5022 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5023 if test -z "$INSTALL"; then
5024 if test "${ac_cv_path_install+set}" = set; then
5025   $as_echo_n "(cached) " >&6
5026 else
5027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032   # Account for people who put trailing slashes in PATH elements.
5033 case $as_dir/ in
5034   ./ | .// | /cC/* | \
5035   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5036   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5037   /usr/ucb/* ) ;;
5038   *)
5039     # OSF1 and SCO ODT 3.0 have their own names for install.
5040     # Don't use installbsd from OSF since it installs stuff as root
5041     # by default.
5042     for ac_prog in ginstall scoinst install; do
5043       for ac_exec_ext in '' $ac_executable_extensions; do
5044         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5045           if test $ac_prog = install &&
5046             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5047             # AIX install.  It has an incompatible calling convention.
5048             :
5049           elif test $ac_prog = install &&
5050             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5051             # program-specific install script used by HP pwplus--don't use.
5052             :
5053           else
5054             rm -rf conftest.one conftest.two conftest.dir
5055             echo one > conftest.one
5056             echo two > conftest.two
5057             mkdir conftest.dir
5058             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5059               test -s conftest.one && test -s conftest.two &&
5060               test -s conftest.dir/conftest.one &&
5061               test -s conftest.dir/conftest.two
5062             then
5063               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5064               break 3
5065             fi
5066           fi
5067         fi
5068       done
5069     done
5070     ;;
5071 esac
5072
5073 done
5074 IFS=$as_save_IFS
5075
5076 rm -rf conftest.one conftest.two conftest.dir
5077
5078 fi
5079   if test "${ac_cv_path_install+set}" = set; then
5080     INSTALL=$ac_cv_path_install
5081   else
5082     # As a last resort, use the slow shell script.  Don't cache a
5083     # value for INSTALL within a source directory, because that will
5084     # break other packages using the cache if that directory is
5085     # removed, or if the value is a relative name.
5086     INSTALL=$ac_install_sh
5087   fi
5088 fi
5089 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5090 $as_echo "$INSTALL" >&6; }
5091
5092 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5093 # It thinks the first close brace ends the variable substitution.
5094 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5095
5096 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5097
5098 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5099
5100 mkdir_p="$MKDIR_P"
5101 case $mkdir_p in
5102   [\\/$]* | ?:[\\/]*) ;;
5103   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5104 esac
5105
5106
5107
5108
5109
5110 # Check whether --enable-static was given.
5111 if test "${enable_static+set}" = set; then
5112   enableval=$enable_static; p=${PACKAGE-default}
5113     case $enableval in
5114     yes) enable_static=yes ;;
5115     no) enable_static=no ;;
5116     *)
5117      enable_static=no
5118       # Look at the argument we got.  We use all the common list separators.
5119       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5120       for pkg in $enableval; do
5121         IFS="$lt_save_ifs"
5122         if test "X$pkg" = "X$p"; then
5123           enable_static=yes
5124         fi
5125       done
5126       IFS="$lt_save_ifs"
5127       ;;
5128     esac
5129 else
5130   enable_static=no
5131 fi
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141 case `pwd` in
5142   *\ * | *\     *)
5143     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5144 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5145 esac
5146
5147
5148
5149 macro_version='2.2.6b'
5150 macro_revision='1.3017'
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 ltmain="$ac_aux_dir/ltmain.sh"
5165
5166 # Make sure we can run config.sub.
5167 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5168   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5169 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5170    { (exit 1); exit 1; }; }
5171
5172 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5173 $as_echo_n "checking build system type... " >&6; }
5174 if test "${ac_cv_build+set}" = set; then
5175   $as_echo_n "(cached) " >&6
5176 else
5177   ac_build_alias=$build_alias
5178 test "x$ac_build_alias" = x &&
5179   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5180 test "x$ac_build_alias" = x &&
5181   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5182 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5183    { (exit 1); exit 1; }; }
5184 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5185   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5186 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5187    { (exit 1); exit 1; }; }
5188
5189 fi
5190 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5191 $as_echo "$ac_cv_build" >&6; }
5192 case $ac_cv_build in
5193 *-*-*) ;;
5194 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5195 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5196    { (exit 1); exit 1; }; };;
5197 esac
5198 build=$ac_cv_build
5199 ac_save_IFS=$IFS; IFS='-'
5200 set x $ac_cv_build
5201 shift
5202 build_cpu=$1
5203 build_vendor=$2
5204 shift; shift
5205 # Remember, the first character of IFS is used to create $*,
5206 # except with old shells:
5207 build_os=$*
5208 IFS=$ac_save_IFS
5209 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5210
5211
5212 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5213 $as_echo_n "checking host system type... " >&6; }
5214 if test "${ac_cv_host+set}" = set; then
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if test "x$host_alias" = x; then
5218   ac_cv_host=$ac_cv_build
5219 else
5220   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5221     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5222 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5223    { (exit 1); exit 1; }; }
5224 fi
5225
5226 fi
5227 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5228 $as_echo "$ac_cv_host" >&6; }
5229 case $ac_cv_host in
5230 *-*-*) ;;
5231 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5232 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5233    { (exit 1); exit 1; }; };;
5234 esac
5235 host=$ac_cv_host
5236 ac_save_IFS=$IFS; IFS='-'
5237 set x $ac_cv_host
5238 shift
5239 host_cpu=$1
5240 host_vendor=$2
5241 shift; shift
5242 # Remember, the first character of IFS is used to create $*,
5243 # except with old shells:
5244 host_os=$*
5245 IFS=$ac_save_IFS
5246 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5247
5248
5249 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5250 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5251 if test "${ac_cv_path_SED+set}" = set; then
5252   $as_echo_n "(cached) " >&6
5253 else
5254             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5255      for ac_i in 1 2 3 4 5 6 7; do
5256        ac_script="$ac_script$as_nl$ac_script"
5257      done
5258      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5259      $as_unset ac_script || ac_script=
5260      if test -z "$SED"; then
5261   ac_path_SED_found=false
5262   # Loop through the user's path and test for each of PROGNAME-LIST
5263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268   for ac_prog in sed gsed; do
5269     for ac_exec_ext in '' $ac_executable_extensions; do
5270       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5271       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5272 # Check for GNU ac_path_SED and select it if it is found.
5273   # Check for GNU $ac_path_SED
5274 case `"$ac_path_SED" --version 2>&1` in
5275 *GNU*)
5276   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5277 *)
5278   ac_count=0
5279   $as_echo_n 0123456789 >"conftest.in"
5280   while :
5281   do
5282     cat "conftest.in" "conftest.in" >"conftest.tmp"
5283     mv "conftest.tmp" "conftest.in"
5284     cp "conftest.in" "conftest.nl"
5285     $as_echo '' >> "conftest.nl"
5286     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288     ac_count=`expr $ac_count + 1`
5289     if test $ac_count -gt ${ac_path_SED_max-0}; then
5290       # Best one so far, save it but keep looking for a better one
5291       ac_cv_path_SED="$ac_path_SED"
5292       ac_path_SED_max=$ac_count
5293     fi
5294     # 10*(2^10) chars as input seems more than enough
5295     test $ac_count -gt 10 && break
5296   done
5297   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5298 esac
5299
5300       $ac_path_SED_found && break 3
5301     done
5302   done
5303 done
5304 IFS=$as_save_IFS
5305   if test -z "$ac_cv_path_SED"; then
5306     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5307 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5308    { (exit 1); exit 1; }; }
5309   fi
5310 else
5311   ac_cv_path_SED=$SED
5312 fi
5313
5314 fi
5315 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5316 $as_echo "$ac_cv_path_SED" >&6; }
5317  SED="$ac_cv_path_SED"
5318   rm -f conftest.sed
5319
5320 test -z "$SED" && SED=sed
5321 Xsed="$SED -e 1s/^X//"
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5334 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5335 if test "${ac_cv_path_GREP+set}" = set; then
5336   $as_echo_n "(cached) " >&6
5337 else
5338   if test -z "$GREP"; then
5339   ac_path_GREP_found=false
5340   # Loop through the user's path and test for each of PROGNAME-LIST
5341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346   for ac_prog in grep ggrep; do
5347     for ac_exec_ext in '' $ac_executable_extensions; do
5348       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5349       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5350 # Check for GNU ac_path_GREP and select it if it is found.
5351   # Check for GNU $ac_path_GREP
5352 case `"$ac_path_GREP" --version 2>&1` in
5353 *GNU*)
5354   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5355 *)
5356   ac_count=0
5357   $as_echo_n 0123456789 >"conftest.in"
5358   while :
5359   do
5360     cat "conftest.in" "conftest.in" >"conftest.tmp"
5361     mv "conftest.tmp" "conftest.in"
5362     cp "conftest.in" "conftest.nl"
5363     $as_echo 'GREP' >> "conftest.nl"
5364     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366     ac_count=`expr $ac_count + 1`
5367     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5368       # Best one so far, save it but keep looking for a better one
5369       ac_cv_path_GREP="$ac_path_GREP"
5370       ac_path_GREP_max=$ac_count
5371     fi
5372     # 10*(2^10) chars as input seems more than enough
5373     test $ac_count -gt 10 && break
5374   done
5375   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5376 esac
5377
5378       $ac_path_GREP_found && break 3
5379     done
5380   done
5381 done
5382 IFS=$as_save_IFS
5383   if test -z "$ac_cv_path_GREP"; then
5384     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5385 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5386    { (exit 1); exit 1; }; }
5387   fi
5388 else
5389   ac_cv_path_GREP=$GREP
5390 fi
5391
5392 fi
5393 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5394 $as_echo "$ac_cv_path_GREP" >&6; }
5395  GREP="$ac_cv_path_GREP"
5396
5397
5398 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5399 $as_echo_n "checking for egrep... " >&6; }
5400 if test "${ac_cv_path_EGREP+set}" = set; then
5401   $as_echo_n "(cached) " >&6
5402 else
5403   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5404    then ac_cv_path_EGREP="$GREP -E"
5405    else
5406      if test -z "$EGREP"; then
5407   ac_path_EGREP_found=false
5408   # Loop through the user's path and test for each of PROGNAME-LIST
5409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5411 do
5412   IFS=$as_save_IFS
5413   test -z "$as_dir" && as_dir=.
5414   for ac_prog in egrep; do
5415     for ac_exec_ext in '' $ac_executable_extensions; do
5416       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5417       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5418 # Check for GNU ac_path_EGREP and select it if it is found.
5419   # Check for GNU $ac_path_EGREP
5420 case `"$ac_path_EGREP" --version 2>&1` in
5421 *GNU*)
5422   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5423 *)
5424   ac_count=0
5425   $as_echo_n 0123456789 >"conftest.in"
5426   while :
5427   do
5428     cat "conftest.in" "conftest.in" >"conftest.tmp"
5429     mv "conftest.tmp" "conftest.in"
5430     cp "conftest.in" "conftest.nl"
5431     $as_echo 'EGREP' >> "conftest.nl"
5432     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5433     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5434     ac_count=`expr $ac_count + 1`
5435     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5436       # Best one so far, save it but keep looking for a better one
5437       ac_cv_path_EGREP="$ac_path_EGREP"
5438       ac_path_EGREP_max=$ac_count
5439     fi
5440     # 10*(2^10) chars as input seems more than enough
5441     test $ac_count -gt 10 && break
5442   done
5443   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5444 esac
5445
5446       $ac_path_EGREP_found && break 3
5447     done
5448   done
5449 done
5450 IFS=$as_save_IFS
5451   if test -z "$ac_cv_path_EGREP"; then
5452     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5453 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5454    { (exit 1); exit 1; }; }
5455   fi
5456 else
5457   ac_cv_path_EGREP=$EGREP
5458 fi
5459
5460    fi
5461 fi
5462 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5463 $as_echo "$ac_cv_path_EGREP" >&6; }
5464  EGREP="$ac_cv_path_EGREP"
5465
5466
5467 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5468 $as_echo_n "checking for fgrep... " >&6; }
5469 if test "${ac_cv_path_FGREP+set}" = set; then
5470   $as_echo_n "(cached) " >&6
5471 else
5472   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5473    then ac_cv_path_FGREP="$GREP -F"
5474    else
5475      if test -z "$FGREP"; then
5476   ac_path_FGREP_found=false
5477   # Loop through the user's path and test for each of PROGNAME-LIST
5478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483   for ac_prog in fgrep; do
5484     for ac_exec_ext in '' $ac_executable_extensions; do
5485       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5486       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5487 # Check for GNU ac_path_FGREP and select it if it is found.
5488   # Check for GNU $ac_path_FGREP
5489 case `"$ac_path_FGREP" --version 2>&1` in
5490 *GNU*)
5491   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5492 *)
5493   ac_count=0
5494   $as_echo_n 0123456789 >"conftest.in"
5495   while :
5496   do
5497     cat "conftest.in" "conftest.in" >"conftest.tmp"
5498     mv "conftest.tmp" "conftest.in"
5499     cp "conftest.in" "conftest.nl"
5500     $as_echo 'FGREP' >> "conftest.nl"
5501     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5502     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5503     ac_count=`expr $ac_count + 1`
5504     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5505       # Best one so far, save it but keep looking for a better one
5506       ac_cv_path_FGREP="$ac_path_FGREP"
5507       ac_path_FGREP_max=$ac_count
5508     fi
5509     # 10*(2^10) chars as input seems more than enough
5510     test $ac_count -gt 10 && break
5511   done
5512   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5513 esac
5514
5515       $ac_path_FGREP_found && break 3
5516     done
5517   done
5518 done
5519 IFS=$as_save_IFS
5520   if test -z "$ac_cv_path_FGREP"; then
5521     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5522 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5523    { (exit 1); exit 1; }; }
5524   fi
5525 else
5526   ac_cv_path_FGREP=$FGREP
5527 fi
5528
5529    fi
5530 fi
5531 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5532 $as_echo "$ac_cv_path_FGREP" >&6; }
5533  FGREP="$ac_cv_path_FGREP"
5534
5535
5536 test -z "$GREP" && GREP=grep
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 # Check whether --with-gnu-ld was given.
5557 if test "${with_gnu_ld+set}" = set; then
5558   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5559 else
5560   with_gnu_ld=no
5561 fi
5562
5563 ac_prog=ld
5564 if test "$GCC" = yes; then
5565   # Check if gcc -print-prog-name=ld gives a path.
5566   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5567 $as_echo_n "checking for ld used by $CC... " >&6; }
5568   case $host in
5569   *-*-mingw*)
5570     # gcc leaves a trailing carriage return which upsets mingw
5571     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5572   *)
5573     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5574   esac
5575   case $ac_prog in
5576     # Accept absolute paths.
5577     [\\/]* | ?:[\\/]*)
5578       re_direlt='/[^/][^/]*/\.\./'
5579       # Canonicalize the pathname of ld
5580       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5581       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5582         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5583       done
5584       test -z "$LD" && LD="$ac_prog"
5585       ;;
5586   "")
5587     # If it fails, then pretend we aren't using GCC.
5588     ac_prog=ld
5589     ;;
5590   *)
5591     # If it is relative, then search for the first ld in PATH.
5592     with_gnu_ld=unknown
5593     ;;
5594   esac
5595 elif test "$with_gnu_ld" = yes; then
5596   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5597 $as_echo_n "checking for GNU ld... " >&6; }
5598 else
5599   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5600 $as_echo_n "checking for non-GNU ld... " >&6; }
5601 fi
5602 if test "${lt_cv_path_LD+set}" = set; then
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -z "$LD"; then
5606   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5607   for ac_dir in $PATH; do
5608     IFS="$lt_save_ifs"
5609     test -z "$ac_dir" && ac_dir=.
5610     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5611       lt_cv_path_LD="$ac_dir/$ac_prog"
5612       # Check to see if the program is GNU ld.  I'd rather use --version,
5613       # but apparently some variants of GNU ld only accept -v.
5614       # Break only if it was the GNU/non-GNU ld that we prefer.
5615       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5616       *GNU* | *'with BFD'*)
5617         test "$with_gnu_ld" != no && break
5618         ;;
5619       *)
5620         test "$with_gnu_ld" != yes && break
5621         ;;
5622       esac
5623     fi
5624   done
5625   IFS="$lt_save_ifs"
5626 else
5627   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5628 fi
5629 fi
5630
5631 LD="$lt_cv_path_LD"
5632 if test -n "$LD"; then
5633   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5634 $as_echo "$LD" >&6; }
5635 else
5636   { $as_echo "$as_me:$LINENO: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5640 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5641    { (exit 1); exit 1; }; }
5642 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5643 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5644 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5645   $as_echo_n "(cached) " >&6
5646 else
5647   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5648 case `$LD -v 2>&1 </dev/null` in
5649 *GNU* | *'with BFD'*)
5650   lt_cv_prog_gnu_ld=yes
5651   ;;
5652 *)
5653   lt_cv_prog_gnu_ld=no
5654   ;;
5655 esac
5656 fi
5657 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5658 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5659 with_gnu_ld=$lt_cv_prog_gnu_ld
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5670 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5671 if test "${lt_cv_path_NM+set}" = set; then
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -n "$NM"; then
5675   # Let the user override the test.
5676   lt_cv_path_NM="$NM"
5677 else
5678   lt_nm_to_check="${ac_tool_prefix}nm"
5679   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680     lt_nm_to_check="$lt_nm_to_check nm"
5681   fi
5682   for lt_tmp_nm in $lt_nm_to_check; do
5683     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5685       IFS="$lt_save_ifs"
5686       test -z "$ac_dir" && ac_dir=.
5687       tmp_nm="$ac_dir/$lt_tmp_nm"
5688       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689         # Check to see if the nm accepts a BSD-compat flag.
5690         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691         #   nm: unknown option "B" ignored
5692         # Tru64's nm complains that /dev/null is an invalid object file
5693         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694         */dev/null* | *'Invalid file or object type'*)
5695           lt_cv_path_NM="$tmp_nm -B"
5696           break
5697           ;;
5698         *)
5699           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5700           */dev/null*)
5701             lt_cv_path_NM="$tmp_nm -p"
5702             break
5703             ;;
5704           *)
5705             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706             continue # so that we can try to find one that supports BSD flags
5707             ;;
5708           esac
5709           ;;
5710         esac
5711       fi
5712     done
5713     IFS="$lt_save_ifs"
5714   done
5715   : ${lt_cv_path_NM=no}
5716 fi
5717 fi
5718 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5719 $as_echo "$lt_cv_path_NM" >&6; }
5720 if test "$lt_cv_path_NM" != "no"; then
5721   NM="$lt_cv_path_NM"
5722 else
5723   # Didn't find any BSD compatible name lister, look for dumpbin.
5724   if test -n "$ac_tool_prefix"; then
5725   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5726   do
5727     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$DUMPBIN"; then
5735   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5745     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 DUMPBIN=$ac_cv_prog_DUMPBIN
5755 if test -n "$DUMPBIN"; then
5756   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5757 $as_echo "$DUMPBIN" >&6; }
5758 else
5759   { $as_echo "$as_me:$LINENO: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764     test -n "$DUMPBIN" && break
5765   done
5766 fi
5767 if test -z "$DUMPBIN"; then
5768   ac_ct_DUMPBIN=$DUMPBIN
5769   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5770 do
5771   # Extract the first word of "$ac_prog", so it can be a program name with args.
5772 set dummy $ac_prog; ac_word=$2
5773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5776   $as_echo_n "(cached) " >&6
5777 else
5778   if test -n "$ac_ct_DUMPBIN"; then
5779   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784   IFS=$as_save_IFS
5785   test -z "$as_dir" && as_dir=.
5786   for ac_exec_ext in '' $ac_executable_extensions; do
5787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5789     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790     break 2
5791   fi
5792 done
5793 done
5794 IFS=$as_save_IFS
5795
5796 fi
5797 fi
5798 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5799 if test -n "$ac_ct_DUMPBIN"; then
5800   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5801 $as_echo "$ac_ct_DUMPBIN" >&6; }
5802 else
5803   { $as_echo "$as_me:$LINENO: result: no" >&5
5804 $as_echo "no" >&6; }
5805 fi
5806
5807
5808   test -n "$ac_ct_DUMPBIN" && break
5809 done
5810
5811   if test "x$ac_ct_DUMPBIN" = x; then
5812     DUMPBIN=":"
5813   else
5814     case $cross_compiling:$ac_tool_warned in
5815 yes:)
5816 { $as_echo "$as_me:$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     DUMPBIN=$ac_ct_DUMPBIN
5821   fi
5822 fi
5823
5824
5825   if test "$DUMPBIN" != ":"; then
5826     NM="$DUMPBIN"
5827   fi
5828 fi
5829 test -z "$NM" && NM=nm
5830
5831
5832
5833
5834
5835
5836 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5837 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5838 if test "${lt_cv_nm_interface+set}" = set; then
5839   $as_echo_n "(cached) " >&6
5840 else
5841   lt_cv_nm_interface="BSD nm"
5842   echo "int some_variable = 0;" > conftest.$ac_ext
5843   (eval echo "\"\$as_me:5843: $ac_compile\"" >&5)
5844   (eval "$ac_compile" 2>conftest.err)
5845   cat conftest.err >&5
5846   (eval echo "\"\$as_me:5846: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5847   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5848   cat conftest.err >&5
5849   (eval echo "\"\$as_me:5849: output\"" >&5)
5850   cat conftest.out >&5
5851   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5852     lt_cv_nm_interface="MS dumpbin"
5853   fi
5854   rm -f conftest*
5855 fi
5856 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5857 $as_echo "$lt_cv_nm_interface" >&6; }
5858
5859 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5860 $as_echo_n "checking whether ln -s works... " >&6; }
5861 LN_S=$as_ln_s
5862 if test "$LN_S" = "ln -s"; then
5863   { $as_echo "$as_me:$LINENO: result: yes" >&5
5864 $as_echo "yes" >&6; }
5865 else
5866   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5867 $as_echo "no, using $LN_S" >&6; }
5868 fi
5869
5870 # find the maximum length of command line arguments
5871 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5872 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5873 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5874   $as_echo_n "(cached) " >&6
5875 else
5876     i=0
5877   teststring="ABCD"
5878
5879   case $build_os in
5880   msdosdjgpp*)
5881     # On DJGPP, this test can blow up pretty badly due to problems in libc
5882     # (any single argument exceeding 2000 bytes causes a buffer overrun
5883     # during glob expansion).  Even if it were fixed, the result of this
5884     # check would be larger than it should be.
5885     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5886     ;;
5887
5888   gnu*)
5889     # Under GNU Hurd, this test is not required because there is
5890     # no limit to the length of command line arguments.
5891     # Libtool will interpret -1 as no limit whatsoever
5892     lt_cv_sys_max_cmd_len=-1;
5893     ;;
5894
5895   cygwin* | mingw* | cegcc*)
5896     # On Win9x/ME, this test blows up -- it succeeds, but takes
5897     # about 5 minutes as the teststring grows exponentially.
5898     # Worse, since 9x/ME are not pre-emptively multitasking,
5899     # you end up with a "frozen" computer, even though with patience
5900     # the test eventually succeeds (with a max line length of 256k).
5901     # Instead, let's just punt: use the minimum linelength reported by
5902     # all of the supported platforms: 8192 (on NT/2K/XP).
5903     lt_cv_sys_max_cmd_len=8192;
5904     ;;
5905
5906   amigaos*)
5907     # On AmigaOS with pdksh, this test takes hours, literally.
5908     # So we just punt and use a minimum line length of 8192.
5909     lt_cv_sys_max_cmd_len=8192;
5910     ;;
5911
5912   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5913     # This has been around since 386BSD, at least.  Likely further.
5914     if test -x /sbin/sysctl; then
5915       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5916     elif test -x /usr/sbin/sysctl; then
5917       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5918     else
5919       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5920     fi
5921     # And add a safety zone
5922     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5923     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5924     ;;
5925
5926   interix*)
5927     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5928     lt_cv_sys_max_cmd_len=196608
5929     ;;
5930
5931   osf*)
5932     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5933     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5934     # nice to cause kernel panics so lets avoid the loop below.
5935     # First set a reasonable default.
5936     lt_cv_sys_max_cmd_len=16384
5937     #
5938     if test -x /sbin/sysconfig; then
5939       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5940         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5941       esac
5942     fi
5943     ;;
5944   sco3.2v5*)
5945     lt_cv_sys_max_cmd_len=102400
5946     ;;
5947   sysv5* | sco5v6* | sysv4.2uw2*)
5948     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5949     if test -n "$kargmax"; then
5950       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5951     else
5952       lt_cv_sys_max_cmd_len=32768
5953     fi
5954     ;;
5955   *)
5956     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5957     if test -n "$lt_cv_sys_max_cmd_len"; then
5958       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5959       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5960     else
5961       # Make teststring a little bigger before we do anything with it.
5962       # a 1K string should be a reasonable start.
5963       for i in 1 2 3 4 5 6 7 8 ; do
5964         teststring=$teststring$teststring
5965       done
5966       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5967       # If test is not a shell built-in, we'll probably end up computing a
5968       # maximum length that is only half of the actual maximum length, but
5969       # we can't tell.
5970       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5971                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5972               test $i != 17 # 1/2 MB should be enough
5973       do
5974         i=`expr $i + 1`
5975         teststring=$teststring$teststring
5976       done
5977       # Only check the string length outside the loop.
5978       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5979       teststring=
5980       # Add a significant safety factor because C++ compilers can tack on
5981       # massive amounts of additional arguments before passing them to the
5982       # linker.  It appears as though 1/2 is a usable value.
5983       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5984     fi
5985     ;;
5986   esac
5987
5988 fi
5989
5990 if test -n $lt_cv_sys_max_cmd_len ; then
5991   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5992 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5993 else
5994   { $as_echo "$as_me:$LINENO: result: none" >&5
5995 $as_echo "none" >&6; }
5996 fi
5997 max_cmd_len=$lt_cv_sys_max_cmd_len
5998
5999
6000
6001
6002
6003
6004 : ${CP="cp -f"}
6005 : ${MV="mv -f"}
6006 : ${RM="rm -f"}
6007
6008 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6009 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6010 # Try some XSI features
6011 xsi_shell=no
6012 ( _lt_dummy="a/b/c"
6013   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6014       = c,a/b,, \
6015     && eval 'test $(( 1 + 1 )) -eq 2 \
6016     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6017   && xsi_shell=yes
6018 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6019 $as_echo "$xsi_shell" >&6; }
6020
6021
6022 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6023 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6024 lt_shell_append=no
6025 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6026     >/dev/null 2>&1 \
6027   && lt_shell_append=yes
6028 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6029 $as_echo "$lt_shell_append" >&6; }
6030
6031
6032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6033   lt_unset=unset
6034 else
6035   lt_unset=false
6036 fi
6037
6038
6039
6040
6041
6042 # test EBCDIC or ASCII
6043 case `echo X|tr X '\101'` in
6044  A) # ASCII based system
6045     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6046   lt_SP2NL='tr \040 \012'
6047   lt_NL2SP='tr \015\012 \040\040'
6048   ;;
6049  *) # EBCDIC based system
6050   lt_SP2NL='tr \100 \n'
6051   lt_NL2SP='tr \r\n \100\100'
6052   ;;
6053 esac
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6064 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6065 if test "${lt_cv_ld_reload_flag+set}" = set; then
6066   $as_echo_n "(cached) " >&6
6067 else
6068   lt_cv_ld_reload_flag='-r'
6069 fi
6070 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6071 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6072 reload_flag=$lt_cv_ld_reload_flag
6073 case $reload_flag in
6074 "" | " "*) ;;
6075 *) reload_flag=" $reload_flag" ;;
6076 esac
6077 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6078 case $host_os in
6079   darwin*)
6080     if test "$GCC" = yes; then
6081       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6082     else
6083       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6084     fi
6085     ;;
6086 esac
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096 if test -n "$ac_tool_prefix"; then
6097   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6102   $as_echo_n "(cached) " >&6
6103 else
6104   if test -n "$OBJDUMP"; then
6105   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112   for ac_exec_ext in '' $ac_executable_extensions; do
6113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6115     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 OBJDUMP=$ac_cv_prog_OBJDUMP
6125 if test -n "$OBJDUMP"; then
6126   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6127 $as_echo "$OBJDUMP" >&6; }
6128 else
6129   { $as_echo "$as_me:$LINENO: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134 fi
6135 if test -z "$ac_cv_prog_OBJDUMP"; then
6136   ac_ct_OBJDUMP=$OBJDUMP
6137   # Extract the first word of "objdump", so it can be a program name with args.
6138 set dummy objdump; ac_word=$2
6139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if test -n "$ac_ct_OBJDUMP"; then
6145   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6165 if test -n "$ac_ct_OBJDUMP"; then
6166   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6167 $as_echo "$ac_ct_OBJDUMP" >&6; }
6168 else
6169   { $as_echo "$as_me:$LINENO: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173   if test "x$ac_ct_OBJDUMP" = x; then
6174     OBJDUMP="false"
6175   else
6176     case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182     OBJDUMP=$ac_ct_OBJDUMP
6183   fi
6184 else
6185   OBJDUMP="$ac_cv_prog_OBJDUMP"
6186 fi
6187
6188 test -z "$OBJDUMP" && OBJDUMP=objdump
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6199 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6200 if test "${lt_cv_deplibs_check_method+set}" = set; then
6201   $as_echo_n "(cached) " >&6
6202 else
6203   lt_cv_file_magic_cmd='$MAGIC_CMD'
6204 lt_cv_file_magic_test_file=
6205 lt_cv_deplibs_check_method='unknown'
6206 # Need to set the preceding variable on all platforms that support
6207 # interlibrary dependencies.
6208 # 'none' -- dependencies not supported.
6209 # `unknown' -- same as none, but documents that we really don't know.
6210 # 'pass_all' -- all dependencies passed with no checks.
6211 # 'test_compile' -- check by making test program.
6212 # 'file_magic [[regex]]' -- check by looking for files in library path
6213 # which responds to the $file_magic_cmd with a given extended regex.
6214 # If you have `file' or equivalent on your system and you're not sure
6215 # whether `pass_all' will *always* work, you probably want this one.
6216
6217 case $host_os in
6218 aix[4-9]*)
6219   lt_cv_deplibs_check_method=pass_all
6220   ;;
6221
6222 beos*)
6223   lt_cv_deplibs_check_method=pass_all
6224   ;;
6225
6226 bsdi[45]*)
6227   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6228   lt_cv_file_magic_cmd='/usr/bin/file -L'
6229   lt_cv_file_magic_test_file=/shlib/libc.so
6230   ;;
6231
6232 cygwin*)
6233   # func_win32_libid is a shell function defined in ltmain.sh
6234   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6235   lt_cv_file_magic_cmd='func_win32_libid'
6236   ;;
6237
6238 mingw* | pw32*)
6239   # Base MSYS/MinGW do not provide the 'file' command needed by
6240   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6241   # unless we find 'file', for example because we are cross-compiling.
6242   if ( file / ) >/dev/null 2>&1; then
6243     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6244     lt_cv_file_magic_cmd='func_win32_libid'
6245   else
6246     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6247     lt_cv_file_magic_cmd='$OBJDUMP -f'
6248   fi
6249   ;;
6250
6251 cegcc)
6252   # use the weaker test based on 'objdump'. See mingw*.
6253   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6254   lt_cv_file_magic_cmd='$OBJDUMP -f'
6255   ;;
6256
6257 darwin* | rhapsody*)
6258   lt_cv_deplibs_check_method=pass_all
6259   ;;
6260
6261 freebsd* | dragonfly*)
6262   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6263     case $host_cpu in
6264     i*86 )
6265       # Not sure whether the presence of OpenBSD here was a mistake.
6266       # Let's accept both of them until this is cleared up.
6267       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6268       lt_cv_file_magic_cmd=/usr/bin/file
6269       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6270       ;;
6271     esac
6272   else
6273     lt_cv_deplibs_check_method=pass_all
6274   fi
6275   ;;
6276
6277 gnu*)
6278   lt_cv_deplibs_check_method=pass_all
6279   ;;
6280
6281 hpux10.20* | hpux11*)
6282   lt_cv_file_magic_cmd=/usr/bin/file
6283   case $host_cpu in
6284   ia64*)
6285     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6286     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6287     ;;
6288   hppa*64*)
6289     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6290     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6291     ;;
6292   *)
6293     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6294     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6295     ;;
6296   esac
6297   ;;
6298
6299 interix[3-9]*)
6300   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6301   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6302   ;;
6303
6304 irix5* | irix6* | nonstopux*)
6305   case $LD in
6306   *-32|*"-32 ") libmagic=32-bit;;
6307   *-n32|*"-n32 ") libmagic=N32;;
6308   *-64|*"-64 ") libmagic=64-bit;;
6309   *) libmagic=never-match;;
6310   esac
6311   lt_cv_deplibs_check_method=pass_all
6312   ;;
6313
6314 # This must be Linux ELF.
6315 linux* | k*bsd*-gnu)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 netbsd*)
6320   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6321     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6322   else
6323     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6324   fi
6325   ;;
6326
6327 newos6*)
6328   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6329   lt_cv_file_magic_cmd=/usr/bin/file
6330   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6331   ;;
6332
6333 *nto* | *qnx*)
6334   lt_cv_deplibs_check_method=pass_all
6335   ;;
6336
6337 openbsd*)
6338   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6339     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6340   else
6341     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6342   fi
6343   ;;
6344
6345 osf3* | osf4* | osf5*)
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 rdos*)
6350   lt_cv_deplibs_check_method=pass_all
6351   ;;
6352
6353 solaris*)
6354   lt_cv_deplibs_check_method=pass_all
6355   ;;
6356
6357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6358   lt_cv_deplibs_check_method=pass_all
6359   ;;
6360
6361 sysv4 | sysv4.3*)
6362   case $host_vendor in
6363   motorola)
6364     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]'
6365     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6366     ;;
6367   ncr)
6368     lt_cv_deplibs_check_method=pass_all
6369     ;;
6370   sequent)
6371     lt_cv_file_magic_cmd='/bin/file'
6372     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6373     ;;
6374   sni)
6375     lt_cv_file_magic_cmd='/bin/file'
6376     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6377     lt_cv_file_magic_test_file=/lib/libc.so
6378     ;;
6379   siemens)
6380     lt_cv_deplibs_check_method=pass_all
6381     ;;
6382   pc)
6383     lt_cv_deplibs_check_method=pass_all
6384     ;;
6385   esac
6386   ;;
6387
6388 tpf*)
6389   lt_cv_deplibs_check_method=pass_all
6390   ;;
6391 esac
6392
6393 fi
6394 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6395 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6396 file_magic_cmd=$lt_cv_file_magic_cmd
6397 deplibs_check_method=$lt_cv_deplibs_check_method
6398 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 if test -n "$ac_tool_prefix"; then
6412   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}ar; ac_word=$2
6414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if test "${ac_cv_prog_AR+set}" = set; then
6417   $as_echo_n "(cached) " >&6
6418 else
6419   if test -n "$AR"; then
6420   ac_cv_prog_AR="$AR" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_prog_AR="${ac_tool_prefix}ar"
6430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 AR=$ac_cv_prog_AR
6440 if test -n "$AR"; then
6441   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6442 $as_echo "$AR" >&6; }
6443 else
6444   { $as_echo "$as_me:$LINENO: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447
6448
6449 fi
6450 if test -z "$ac_cv_prog_AR"; then
6451   ac_ct_AR=$AR
6452   # Extract the first word of "ar", so it can be a program name with args.
6453 set dummy ar; ac_word=$2
6454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6457   $as_echo_n "(cached) " >&6
6458 else
6459   if test -n "$ac_ct_AR"; then
6460   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467   for ac_exec_ext in '' $ac_executable_extensions; do
6468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469     ac_cv_prog_ac_ct_AR="ar"
6470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477 fi
6478 fi
6479 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6480 if test -n "$ac_ct_AR"; then
6481   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6482 $as_echo "$ac_ct_AR" >&6; }
6483 else
6484   { $as_echo "$as_me:$LINENO: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6487
6488   if test "x$ac_ct_AR" = x; then
6489     AR="false"
6490   else
6491     case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6496 esac
6497     AR=$ac_ct_AR
6498   fi
6499 else
6500   AR="$ac_cv_prog_AR"
6501 fi
6502
6503 test -z "$AR" && AR=ar
6504 test -z "$AR_FLAGS" && AR_FLAGS=cru
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516 if test -n "$ac_tool_prefix"; then
6517   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}strip; ac_word=$2
6519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if test "${ac_cv_prog_STRIP+set}" = set; then
6522   $as_echo_n "(cached) " >&6
6523 else
6524   if test -n "$STRIP"; then
6525   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532   for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6535     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 STRIP=$ac_cv_prog_STRIP
6545 if test -n "$STRIP"; then
6546   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6547 $as_echo "$STRIP" >&6; }
6548 else
6549   { $as_echo "$as_me:$LINENO: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552
6553
6554 fi
6555 if test -z "$ac_cv_prog_STRIP"; then
6556   ac_ct_STRIP=$STRIP
6557   # Extract the first word of "strip", so it can be a program name with args.
6558 set dummy strip; ac_word=$2
6559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6562   $as_echo_n "(cached) " >&6
6563 else
6564   if test -n "$ac_ct_STRIP"; then
6565   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570   IFS=$as_save_IFS
6571   test -z "$as_dir" && as_dir=.
6572   for ac_exec_ext in '' $ac_executable_extensions; do
6573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574     ac_cv_prog_ac_ct_STRIP="strip"
6575     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576     break 2
6577   fi
6578 done
6579 done
6580 IFS=$as_save_IFS
6581
6582 fi
6583 fi
6584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6585 if test -n "$ac_ct_STRIP"; then
6586   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6587 $as_echo "$ac_ct_STRIP" >&6; }
6588 else
6589   { $as_echo "$as_me:$LINENO: result: no" >&5
6590 $as_echo "no" >&6; }
6591 fi
6592
6593   if test "x$ac_ct_STRIP" = x; then
6594     STRIP=":"
6595   else
6596     case $cross_compiling:$ac_tool_warned in
6597 yes:)
6598 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6601 esac
6602     STRIP=$ac_ct_STRIP
6603   fi
6604 else
6605   STRIP="$ac_cv_prog_STRIP"
6606 fi
6607
6608 test -z "$STRIP" && STRIP=:
6609
6610
6611
6612
6613
6614
6615 if test -n "$ac_tool_prefix"; then
6616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_RANLIB+set}" = set; then
6621   $as_echo_n "(cached) " >&6
6622 else
6623   if test -n "$RANLIB"; then
6624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 RANLIB=$ac_cv_prog_RANLIB
6644 if test -n "$RANLIB"; then
6645   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6646 $as_echo "$RANLIB" >&6; }
6647 else
6648   { $as_echo "$as_me:$LINENO: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652
6653 fi
6654 if test -z "$ac_cv_prog_RANLIB"; then
6655   ac_ct_RANLIB=$RANLIB
6656   # Extract the first word of "ranlib", so it can be a program name with args.
6657 set dummy ranlib; ac_word=$2
6658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6661   $as_echo_n "(cached) " >&6
6662 else
6663   if test -n "$ac_ct_RANLIB"; then
6664   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_prog_ac_ct_RANLIB="ranlib"
6674     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6684 if test -n "$ac_ct_RANLIB"; then
6685   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6686 $as_echo "$ac_ct_RANLIB" >&6; }
6687 else
6688   { $as_echo "$as_me:$LINENO: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692   if test "x$ac_ct_RANLIB" = x; then
6693     RANLIB=":"
6694   else
6695     case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701     RANLIB=$ac_ct_RANLIB
6702   fi
6703 else
6704   RANLIB="$ac_cv_prog_RANLIB"
6705 fi
6706
6707 test -z "$RANLIB" && RANLIB=:
6708
6709
6710
6711
6712
6713
6714 # Determine commands to create old-style static archives.
6715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6716 old_postinstall_cmds='chmod 644 $oldlib'
6717 old_postuninstall_cmds=
6718
6719 if test -n "$RANLIB"; then
6720   case $host_os in
6721   openbsd*)
6722     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6723     ;;
6724   *)
6725     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6726     ;;
6727   esac
6728   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6729 fi
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764 # If no C compiler was specified, use CC.
6765 LTCC=${LTCC-"$CC"}
6766
6767 # If no C compiler flags were specified, use CFLAGS.
6768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6769
6770 # Allow CC to be a program name with arguments.
6771 compiler=$CC
6772
6773
6774 # Check for command to grab the raw symbol name followed by C symbol from nm.
6775 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6776 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6777 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6778   $as_echo_n "(cached) " >&6
6779 else
6780
6781 # These are sane defaults that work on at least a few old systems.
6782 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6783
6784 # Character class describing NM global symbol codes.
6785 symcode='[BCDEGRST]'
6786
6787 # Regexp to match symbols that can be accessed directly from C.
6788 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6789
6790 # Define system-specific variables.
6791 case $host_os in
6792 aix*)
6793   symcode='[BCDT]'
6794   ;;
6795 cygwin* | mingw* | pw32* | cegcc*)
6796   symcode='[ABCDGISTW]'
6797   ;;
6798 hpux*)
6799   if test "$host_cpu" = ia64; then
6800     symcode='[ABCDEGRST]'
6801   fi
6802   ;;
6803 irix* | nonstopux*)
6804   symcode='[BCDEGRST]'
6805   ;;
6806 osf*)
6807   symcode='[BCDEGQRST]'
6808   ;;
6809 solaris*)
6810   symcode='[BDRT]'
6811   ;;
6812 sco3.2v5*)
6813   symcode='[DT]'
6814   ;;
6815 sysv4.2uw2*)
6816   symcode='[DT]'
6817   ;;
6818 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6819   symcode='[ABDT]'
6820   ;;
6821 sysv4)
6822   symcode='[DFNSTU]'
6823   ;;
6824 esac
6825
6826 # If we're using GNU nm, then use its standard symbol codes.
6827 case `$NM -V 2>&1` in
6828 *GNU* | *'with BFD'*)
6829   symcode='[ABCDGIRSTW]' ;;
6830 esac
6831
6832 # Transform an extracted symbol line into a proper C declaration.
6833 # Some systems (esp. on ia64) link data and code symbols differently,
6834 # so use this general approach.
6835 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6836
6837 # Transform an extracted symbol line into symbol name and symbol address
6838 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6839 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'"
6840
6841 # Handle CRLF in mingw tool chain
6842 opt_cr=
6843 case $build_os in
6844 mingw*)
6845   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6846   ;;
6847 esac
6848
6849 # Try without a prefix underscore, then with it.
6850 for ac_symprfx in "" "_"; do
6851
6852   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6853   symxfrm="\\1 $ac_symprfx\\2 \\2"
6854
6855   # Write the raw and C identifiers.
6856   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6857     # Fake it for dumpbin and say T for any non-static function
6858     # and D for any global variable.
6859     # Also find C++ and __fastcall symbols from MSVC++,
6860     # which start with @ or ?.
6861     lt_cv_sys_global_symbol_pipe="$AWK '"\
6862 "     {last_section=section; section=\$ 3};"\
6863 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6864 "     \$ 0!~/External *\|/{next};"\
6865 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6866 "     {if(hide[section]) next};"\
6867 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6868 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6869 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6870 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6871 "     ' prfx=^$ac_symprfx"
6872   else
6873     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6874   fi
6875
6876   # Check to see that the pipe works correctly.
6877   pipe_works=no
6878
6879   rm -f conftest*
6880   cat > conftest.$ac_ext <<_LT_EOF
6881 #ifdef __cplusplus
6882 extern "C" {
6883 #endif
6884 char nm_test_var;
6885 void nm_test_func(void);
6886 void nm_test_func(void){}
6887 #ifdef __cplusplus
6888 }
6889 #endif
6890 int main(){nm_test_var='a';nm_test_func();return(0);}
6891 _LT_EOF
6892
6893   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894   (eval $ac_compile) 2>&5
6895   ac_status=$?
6896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); }; then
6898     # Now try to grab the symbols.
6899     nlist=conftest.nm
6900     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6901   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6902   ac_status=$?
6903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); } && test -s "$nlist"; then
6905       # Try sorting and uniquifying the output.
6906       if sort "$nlist" | uniq > "$nlist"T; then
6907         mv -f "$nlist"T "$nlist"
6908       else
6909         rm -f "$nlist"T
6910       fi
6911
6912       # Make sure that we snagged all the symbols we need.
6913       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915           cat <<_LT_EOF > conftest.$ac_ext
6916 #ifdef __cplusplus
6917 extern "C" {
6918 #endif
6919
6920 _LT_EOF
6921           # Now generate the symbol file.
6922           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6923
6924           cat <<_LT_EOF >> conftest.$ac_ext
6925
6926 /* The mapping between symbol names and symbols.  */
6927 const struct {
6928   const char *name;
6929   void       *address;
6930 }
6931 lt__PROGRAM__LTX_preloaded_symbols[] =
6932 {
6933   { "@PROGRAM@", (void *) 0 },
6934 _LT_EOF
6935           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6936           cat <<\_LT_EOF >> conftest.$ac_ext
6937   {0, (void *) 0}
6938 };
6939
6940 /* This works around a problem in FreeBSD linker */
6941 #ifdef FREEBSD_WORKAROUND
6942 static const void *lt_preloaded_setup() {
6943   return lt__PROGRAM__LTX_preloaded_symbols;
6944 }
6945 #endif
6946
6947 #ifdef __cplusplus
6948 }
6949 #endif
6950 _LT_EOF
6951           # Now try linking the two files.
6952           mv conftest.$ac_objext conftstm.$ac_objext
6953           lt_save_LIBS="$LIBS"
6954           lt_save_CFLAGS="$CFLAGS"
6955           LIBS="conftstm.$ac_objext"
6956           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958   (eval $ac_link) 2>&5
6959   ac_status=$?
6960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6962             pipe_works=yes
6963           fi
6964           LIBS="$lt_save_LIBS"
6965           CFLAGS="$lt_save_CFLAGS"
6966         else
6967           echo "cannot find nm_test_func in $nlist" >&5
6968         fi
6969       else
6970         echo "cannot find nm_test_var in $nlist" >&5
6971       fi
6972     else
6973       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6974     fi
6975   else
6976     echo "$progname: failed program was:" >&5
6977     cat conftest.$ac_ext >&5
6978   fi
6979   rm -rf conftest* conftst*
6980
6981   # Do not use the global_symbol_pipe unless it works.
6982   if test "$pipe_works" = yes; then
6983     break
6984   else
6985     lt_cv_sys_global_symbol_pipe=
6986   fi
6987 done
6988
6989 fi
6990
6991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992   lt_cv_sys_global_symbol_to_cdecl=
6993 fi
6994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995   { $as_echo "$as_me:$LINENO: result: failed" >&5
6996 $as_echo "failed" >&6; }
6997 else
6998   { $as_echo "$as_me:$LINENO: result: ok" >&5
6999 $as_echo "ok" >&6; }
7000 fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 # Check whether --enable-libtool-lock was given.
7024 if test "${enable_libtool_lock+set}" = set; then
7025   enableval=$enable_libtool_lock;
7026 fi
7027
7028 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7029
7030 # Some flags need to be propagated to the compiler or linker for good
7031 # libtool support.
7032 case $host in
7033 ia64-*-hpux*)
7034   # Find out which ABI we are using.
7035   echo 'int i;' > conftest.$ac_ext
7036   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037   (eval $ac_compile) 2>&5
7038   ac_status=$?
7039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); }; then
7041     case `/usr/bin/file conftest.$ac_objext` in
7042       *ELF-32*)
7043         HPUX_IA64_MODE="32"
7044         ;;
7045       *ELF-64*)
7046         HPUX_IA64_MODE="64"
7047         ;;
7048     esac
7049   fi
7050   rm -rf conftest*
7051   ;;
7052 *-*-irix6*)
7053   # Find out which ABI we are using.
7054   echo '#line 7054 "configure"' > conftest.$ac_ext
7055   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056   (eval $ac_compile) 2>&5
7057   ac_status=$?
7058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; then
7060     if test "$lt_cv_prog_gnu_ld" = yes; then
7061       case `/usr/bin/file conftest.$ac_objext` in
7062         *32-bit*)
7063           LD="${LD-ld} -melf32bsmip"
7064           ;;
7065         *N32*)
7066           LD="${LD-ld} -melf32bmipn32"
7067           ;;
7068         *64-bit*)
7069           LD="${LD-ld} -melf64bmip"
7070         ;;
7071       esac
7072     else
7073       case `/usr/bin/file conftest.$ac_objext` in
7074         *32-bit*)
7075           LD="${LD-ld} -32"
7076           ;;
7077         *N32*)
7078           LD="${LD-ld} -n32"
7079           ;;
7080         *64-bit*)
7081           LD="${LD-ld} -64"
7082           ;;
7083       esac
7084     fi
7085   fi
7086   rm -rf conftest*
7087   ;;
7088
7089 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7090 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7091   # Find out which ABI we are using.
7092   echo 'int i;' > conftest.$ac_ext
7093   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094   (eval $ac_compile) 2>&5
7095   ac_status=$?
7096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; then
7098     case `/usr/bin/file conftest.o` in
7099       *32-bit*)
7100         case $host in
7101           x86_64-*kfreebsd*-gnu)
7102             LD="${LD-ld} -m elf_i386_fbsd"
7103             ;;
7104           x86_64-*linux*)
7105             LD="${LD-ld} -m elf_i386"
7106             ;;
7107           ppc64-*linux*|powerpc64-*linux*)
7108             LD="${LD-ld} -m elf32ppclinux"
7109             ;;
7110           s390x-*linux*)
7111             LD="${LD-ld} -m elf_s390"
7112             ;;
7113           sparc64-*linux*)
7114             LD="${LD-ld} -m elf32_sparc"
7115             ;;
7116         esac
7117         ;;
7118       *64-bit*)
7119         case $host in
7120           x86_64-*kfreebsd*-gnu)
7121             LD="${LD-ld} -m elf_x86_64_fbsd"
7122             ;;
7123           x86_64-*linux*)
7124             LD="${LD-ld} -m elf_x86_64"
7125             ;;
7126           ppc*-*linux*|powerpc*-*linux*)
7127             LD="${LD-ld} -m elf64ppc"
7128             ;;
7129           s390*-*linux*|s390*-*tpf*)
7130             LD="${LD-ld} -m elf64_s390"
7131             ;;
7132           sparc*-*linux*)
7133             LD="${LD-ld} -m elf64_sparc"
7134             ;;
7135         esac
7136         ;;
7137     esac
7138   fi
7139   rm -rf conftest*
7140   ;;
7141
7142 *-*-sco3.2v5*)
7143   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7144   SAVE_CFLAGS="$CFLAGS"
7145   CFLAGS="$CFLAGS -belf"
7146   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7147 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7148 if test "${lt_cv_cc_needs_belf+set}" = set; then
7149   $as_echo_n "(cached) " >&6
7150 else
7151   ac_ext=c
7152 ac_cpp='$CPP $CPPFLAGS'
7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156
7157      cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h.  */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h.  */
7163
7164 int
7165 main ()
7166 {
7167
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (ac_try="$ac_link"
7174 case "(($ac_try" in
7175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176   *) ac_try_echo=$ac_try;;
7177 esac
7178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7179 $as_echo "$ac_try_echo") >&5
7180   (eval "$ac_link") 2>conftest.er1
7181   ac_status=$?
7182   grep -v '^ *+' conftest.er1 >conftest.err
7183   rm -f conftest.er1
7184   cat conftest.err >&5
7185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); } && {
7187          test -z "$ac_c_werror_flag" ||
7188          test ! -s conftest.err
7189        } && test -s conftest$ac_exeext && {
7190          test "$cross_compiling" = yes ||
7191          $as_test_x conftest$ac_exeext
7192        }; then
7193   lt_cv_cc_needs_belf=yes
7194 else
7195   $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198         lt_cv_cc_needs_belf=no
7199 fi
7200
7201 rm -rf conftest.dSYM
7202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7203       conftest$ac_exeext conftest.$ac_ext
7204      ac_ext=c
7205 ac_cpp='$CPP $CPPFLAGS'
7206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209
7210 fi
7211 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7213   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7214     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7215     CFLAGS="$SAVE_CFLAGS"
7216   fi
7217   ;;
7218 sparc*-*solaris*)
7219   # Find out which ABI we are using.
7220   echo 'int i;' > conftest.$ac_ext
7221   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222   (eval $ac_compile) 2>&5
7223   ac_status=$?
7224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; then
7226     case `/usr/bin/file conftest.o` in
7227     *64-bit*)
7228       case $lt_cv_prog_gnu_ld in
7229       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7230       *)
7231         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7232           LD="${LD-ld} -64"
7233         fi
7234         ;;
7235       esac
7236       ;;
7237     esac
7238   fi
7239   rm -rf conftest*
7240   ;;
7241 esac
7242
7243 need_locks="$enable_libtool_lock"
7244
7245
7246   case $host_os in
7247     rhapsody* | darwin*)
7248     if test -n "$ac_tool_prefix"; then
7249   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$DSYMUTIL"; then
7257   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264   for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7267     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7277 if test -n "$DSYMUTIL"; then
7278   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7279 $as_echo "$DSYMUTIL" >&6; }
7280 else
7281   { $as_echo "$as_me:$LINENO: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_DSYMUTIL"; then
7288   ac_ct_DSYMUTIL=$DSYMUTIL
7289   # Extract the first word of "dsymutil", so it can be a program name with args.
7290 set dummy dsymutil; ac_word=$2
7291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$ac_ct_DSYMUTIL"; then
7297   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7307     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7317 if test -n "$ac_ct_DSYMUTIL"; then
7318   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7320 else
7321   { $as_echo "$as_me:$LINENO: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325   if test "x$ac_ct_DSYMUTIL" = x; then
7326     DSYMUTIL=":"
7327   else
7328     case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334     DSYMUTIL=$ac_ct_DSYMUTIL
7335   fi
7336 else
7337   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7338 fi
7339
7340     if test -n "$ac_tool_prefix"; then
7341   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7346   $as_echo_n "(cached) " >&6
7347 else
7348   if test -n "$NMEDIT"; then
7349   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7359     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 NMEDIT=$ac_cv_prog_NMEDIT
7369 if test -n "$NMEDIT"; then
7370   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7371 $as_echo "$NMEDIT" >&6; }
7372 else
7373   { $as_echo "$as_me:$LINENO: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_NMEDIT"; then
7380   ac_ct_NMEDIT=$NMEDIT
7381   # Extract the first word of "nmedit", so it can be a program name with args.
7382 set dummy nmedit; ac_word=$2
7383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7386   $as_echo_n "(cached) " >&6
7387 else
7388   if test -n "$ac_ct_NMEDIT"; then
7389   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7399     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7409 if test -n "$ac_ct_NMEDIT"; then
7410   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7411 $as_echo "$ac_ct_NMEDIT" >&6; }
7412 else
7413   { $as_echo "$as_me:$LINENO: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417   if test "x$ac_ct_NMEDIT" = x; then
7418     NMEDIT=":"
7419   else
7420     case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426     NMEDIT=$ac_ct_NMEDIT
7427   fi
7428 else
7429   NMEDIT="$ac_cv_prog_NMEDIT"
7430 fi
7431
7432     if test -n "$ac_tool_prefix"; then
7433   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if test "${ac_cv_prog_LIPO+set}" = set; then
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$LIPO"; then
7441   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448   for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7451     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 LIPO=$ac_cv_prog_LIPO
7461 if test -n "$LIPO"; then
7462   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7463 $as_echo "$LIPO" >&6; }
7464 else
7465   { $as_echo "$as_me:$LINENO: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470 fi
7471 if test -z "$ac_cv_prog_LIPO"; then
7472   ac_ct_LIPO=$LIPO
7473   # Extract the first word of "lipo", so it can be a program name with args.
7474 set dummy lipo; ac_word=$2
7475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7478   $as_echo_n "(cached) " >&6
7479 else
7480   if test -n "$ac_ct_LIPO"; then
7481   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486   IFS=$as_save_IFS
7487   test -z "$as_dir" && as_dir=.
7488   for ac_exec_ext in '' $ac_executable_extensions; do
7489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490     ac_cv_prog_ac_ct_LIPO="lipo"
7491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492     break 2
7493   fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7501 if test -n "$ac_ct_LIPO"; then
7502   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7503 $as_echo "$ac_ct_LIPO" >&6; }
7504 else
7505   { $as_echo "$as_me:$LINENO: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509   if test "x$ac_ct_LIPO" = x; then
7510     LIPO=":"
7511   else
7512     case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518     LIPO=$ac_ct_LIPO
7519   fi
7520 else
7521   LIPO="$ac_cv_prog_LIPO"
7522 fi
7523
7524     if test -n "$ac_tool_prefix"; then
7525   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool; ac_word=$2
7527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if test "${ac_cv_prog_OTOOL+set}" = set; then
7530   $as_echo_n "(cached) " >&6
7531 else
7532   if test -n "$OTOOL"; then
7533   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540   for ac_exec_ext in '' $ac_executable_extensions; do
7541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7543     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 OTOOL=$ac_cv_prog_OTOOL
7553 if test -n "$OTOOL"; then
7554   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7555 $as_echo "$OTOOL" >&6; }
7556 else
7557   { $as_echo "$as_me:$LINENO: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562 fi
7563 if test -z "$ac_cv_prog_OTOOL"; then
7564   ac_ct_OTOOL=$OTOOL
7565   # Extract the first word of "otool", so it can be a program name with args.
7566 set dummy otool; ac_word=$2
7567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7570   $as_echo_n "(cached) " >&6
7571 else
7572   if test -n "$ac_ct_OTOOL"; then
7573   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580   for ac_exec_ext in '' $ac_executable_extensions; do
7581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582     ac_cv_prog_ac_ct_OTOOL="otool"
7583     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7593 if test -n "$ac_ct_OTOOL"; then
7594   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7595 $as_echo "$ac_ct_OTOOL" >&6; }
7596 else
7597   { $as_echo "$as_me:$LINENO: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601   if test "x$ac_ct_OTOOL" = x; then
7602     OTOOL=":"
7603   else
7604     case $cross_compiling:$ac_tool_warned in
7605 yes:)
7606 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7609 esac
7610     OTOOL=$ac_ct_OTOOL
7611   fi
7612 else
7613   OTOOL="$ac_cv_prog_OTOOL"
7614 fi
7615
7616     if test -n "$ac_tool_prefix"; then
7617   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7622   $as_echo_n "(cached) " >&6
7623 else
7624   if test -n "$OTOOL64"; then
7625   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630   IFS=$as_save_IFS
7631   test -z "$as_dir" && as_dir=.
7632   for ac_exec_ext in '' $ac_executable_extensions; do
7633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7635     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636     break 2
7637   fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 OTOOL64=$ac_cv_prog_OTOOL64
7645 if test -n "$OTOOL64"; then
7646   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7647 $as_echo "$OTOOL64" >&6; }
7648 else
7649   { $as_echo "$as_me:$LINENO: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653
7654 fi
7655 if test -z "$ac_cv_prog_OTOOL64"; then
7656   ac_ct_OTOOL64=$OTOOL64
7657   # Extract the first word of "otool64", so it can be a program name with args.
7658 set dummy otool64; ac_word=$2
7659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7662   $as_echo_n "(cached) " >&6
7663 else
7664   if test -n "$ac_ct_OTOOL64"; then
7665   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672   for ac_exec_ext in '' $ac_executable_extensions; do
7673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674     ac_cv_prog_ac_ct_OTOOL64="otool64"
7675     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7685 if test -n "$ac_ct_OTOOL64"; then
7686   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7687 $as_echo "$ac_ct_OTOOL64" >&6; }
7688 else
7689   { $as_echo "$as_me:$LINENO: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693   if test "x$ac_ct_OTOOL64" = x; then
7694     OTOOL64=":"
7695   else
7696     case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702     OTOOL64=$ac_ct_OTOOL64
7703   fi
7704 else
7705   OTOOL64="$ac_cv_prog_OTOOL64"
7706 fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7735 $as_echo_n "checking for -single_module linker flag... " >&6; }
7736 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7737   $as_echo_n "(cached) " >&6
7738 else
7739   lt_cv_apple_cc_single_mod=no
7740       if test -z "${LT_MULTI_MODULE}"; then
7741         # By default we will add the -single_module flag. You can override
7742         # by either setting the environment variable LT_MULTI_MODULE
7743         # non-empty at configure time, or by adding -multi_module to the
7744         # link flags.
7745         rm -rf libconftest.dylib*
7746         echo "int foo(void){return 1;}" > conftest.c
7747         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748 -dynamiclib -Wl,-single_module conftest.c" >&5
7749         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7751         _lt_result=$?
7752         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7753           lt_cv_apple_cc_single_mod=yes
7754         else
7755           cat conftest.err >&5
7756         fi
7757         rm -rf libconftest.dylib*
7758         rm -f conftest.*
7759       fi
7760 fi
7761 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7762 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7763     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7764 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7765 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7766   $as_echo_n "(cached) " >&6
7767 else
7768   lt_cv_ld_exported_symbols_list=no
7769       save_LDFLAGS=$LDFLAGS
7770       echo "_main" > conftest.sym
7771       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7772       cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h.  */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h.  */
7778
7779 int
7780 main ()
7781 {
7782
7783   ;
7784   return 0;
7785 }
7786 _ACEOF
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (ac_try="$ac_link"
7789 case "(($ac_try" in
7790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791   *) ac_try_echo=$ac_try;;
7792 esac
7793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7794 $as_echo "$ac_try_echo") >&5
7795   (eval "$ac_link") 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } && {
7802          test -z "$ac_c_werror_flag" ||
7803          test ! -s conftest.err
7804        } && test -s conftest$ac_exeext && {
7805          test "$cross_compiling" = yes ||
7806          $as_test_x conftest$ac_exeext
7807        }; then
7808   lt_cv_ld_exported_symbols_list=yes
7809 else
7810   $as_echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813         lt_cv_ld_exported_symbols_list=no
7814 fi
7815
7816 rm -rf conftest.dSYM
7817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7818       conftest$ac_exeext conftest.$ac_ext
7819         LDFLAGS="$save_LDFLAGS"
7820
7821 fi
7822 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7823 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7824     case $host_os in
7825     rhapsody* | darwin1.[012])
7826       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7827     darwin1.*)
7828       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7829     darwin*) # darwin 5.x on
7830       # if running on 10.5 or later, the deployment target defaults
7831       # to the OS version, if on x86, and 10.4, the deployment
7832       # target defaults to 10.4. Don't you love it?
7833       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7834         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7835           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7836         10.[012]*)
7837           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7838         10.*)
7839           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7840       esac
7841     ;;
7842   esac
7843     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7844       _lt_dar_single_mod='$single_module'
7845     fi
7846     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7847       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7848     else
7849       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7850     fi
7851     if test "$DSYMUTIL" != ":"; then
7852       _lt_dsymutil='~$DSYMUTIL $lib || :'
7853     else
7854       _lt_dsymutil=
7855     fi
7856     ;;
7857   esac
7858
7859 ac_ext=c
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7865 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7866 # On Suns, sometimes $CPP names a directory.
7867 if test -n "$CPP" && test -d "$CPP"; then
7868   CPP=
7869 fi
7870 if test -z "$CPP"; then
7871   if test "${ac_cv_prog_CPP+set}" = set; then
7872   $as_echo_n "(cached) " >&6
7873 else
7874       # Double quotes because CPP needs to be expanded
7875     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7876     do
7877       ac_preproc_ok=false
7878 for ac_c_preproc_warn_flag in '' yes
7879 do
7880   # Use a header file that comes with gcc, so configuring glibc
7881   # with a fresh cross-compiler works.
7882   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883   # <limits.h> exists even on freestanding compilers.
7884   # On the NeXT, cc -E runs the code through the compiler's parser,
7885   # not just through cpp. "Syntax error" is here to catch this case.
7886   cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h.  */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h.  */
7892 #ifdef __STDC__
7893 # include <limits.h>
7894 #else
7895 # include <assert.h>
7896 #endif
7897                      Syntax error
7898 _ACEOF
7899 if { (ac_try="$ac_cpp conftest.$ac_ext"
7900 case "(($ac_try" in
7901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902   *) ac_try_echo=$ac_try;;
7903 esac
7904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7905 $as_echo "$ac_try_echo") >&5
7906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7907   ac_status=$?
7908   grep -v '^ *+' conftest.er1 >conftest.err
7909   rm -f conftest.er1
7910   cat conftest.err >&5
7911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); } >/dev/null && {
7913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7914          test ! -s conftest.err
7915        }; then
7916   :
7917 else
7918   $as_echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921   # Broken: fails on valid input.
7922 continue
7923 fi
7924
7925 rm -f conftest.err conftest.$ac_ext
7926
7927   # OK, works on sane cases.  Now check whether nonexistent headers
7928   # can be detected and how.
7929   cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935 #include <ac_nonexistent.h>
7936 _ACEOF
7937 if { (ac_try="$ac_cpp conftest.$ac_ext"
7938 case "(($ac_try" in
7939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940   *) ac_try_echo=$ac_try;;
7941 esac
7942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7943 $as_echo "$ac_try_echo") >&5
7944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7945   ac_status=$?
7946   grep -v '^ *+' conftest.er1 >conftest.err
7947   rm -f conftest.er1
7948   cat conftest.err >&5
7949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); } >/dev/null && {
7951          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7952          test ! -s conftest.err
7953        }; then
7954   # Broken: success on invalid input.
7955 continue
7956 else
7957   $as_echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960   # Passes both tests.
7961 ac_preproc_ok=:
7962 break
7963 fi
7964
7965 rm -f conftest.err conftest.$ac_ext
7966
7967 done
7968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7969 rm -f conftest.err conftest.$ac_ext
7970 if $ac_preproc_ok; then
7971   break
7972 fi
7973
7974     done
7975     ac_cv_prog_CPP=$CPP
7976
7977 fi
7978   CPP=$ac_cv_prog_CPP
7979 else
7980   ac_cv_prog_CPP=$CPP
7981 fi
7982 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7983 $as_echo "$CPP" >&6; }
7984 ac_preproc_ok=false
7985 for ac_c_preproc_warn_flag in '' yes
7986 do
7987   # Use a header file that comes with gcc, so configuring glibc
7988   # with a fresh cross-compiler works.
7989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7990   # <limits.h> exists even on freestanding compilers.
7991   # On the NeXT, cc -E runs the code through the compiler's parser,
7992   # not just through cpp. "Syntax error" is here to catch this case.
7993   cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999 #ifdef __STDC__
8000 # include <limits.h>
8001 #else
8002 # include <assert.h>
8003 #endif
8004                      Syntax error
8005 _ACEOF
8006 if { (ac_try="$ac_cpp conftest.$ac_ext"
8007 case "(($ac_try" in
8008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009   *) ac_try_echo=$ac_try;;
8010 esac
8011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012 $as_echo "$ac_try_echo") >&5
8013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8014   ac_status=$?
8015   grep -v '^ *+' conftest.er1 >conftest.err
8016   rm -f conftest.er1
8017   cat conftest.err >&5
8018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } >/dev/null && {
8020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8021          test ! -s conftest.err
8022        }; then
8023   :
8024 else
8025   $as_echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028   # Broken: fails on valid input.
8029 continue
8030 fi
8031
8032 rm -f conftest.err conftest.$ac_ext
8033
8034   # OK, works on sane cases.  Now check whether nonexistent headers
8035   # can be detected and how.
8036   cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042 #include <ac_nonexistent.h>
8043 _ACEOF
8044 if { (ac_try="$ac_cpp conftest.$ac_ext"
8045 case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8052   ac_status=$?
8053   grep -v '^ *+' conftest.er1 >conftest.err
8054   rm -f conftest.er1
8055   cat conftest.err >&5
8056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } >/dev/null && {
8058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8059          test ! -s conftest.err
8060        }; then
8061   # Broken: success on invalid input.
8062 continue
8063 else
8064   $as_echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067   # Passes both tests.
8068 ac_preproc_ok=:
8069 break
8070 fi
8071
8072 rm -f conftest.err conftest.$ac_ext
8073
8074 done
8075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8076 rm -f conftest.err conftest.$ac_ext
8077 if $ac_preproc_ok; then
8078   :
8079 else
8080   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8082 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8083 See \`config.log' for more details." >&5
8084 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8085 See \`config.log' for more details." >&2;}
8086    { (exit 1); exit 1; }; }; }
8087 fi
8088
8089 ac_ext=c
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094
8095
8096 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8097 $as_echo_n "checking for ANSI C header files... " >&6; }
8098 if test "${ac_cv_header_stdc+set}" = set; then
8099   $as_echo_n "(cached) " >&6
8100 else
8101   cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 #include <stdlib.h>
8108 #include <stdarg.h>
8109 #include <string.h>
8110 #include <float.h>
8111
8112 int
8113 main ()
8114 {
8115
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext
8121 if { (ac_try="$ac_compile"
8122 case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128   (eval "$ac_compile") 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } && {
8135          test -z "$ac_c_werror_flag" ||
8136          test ! -s conftest.err
8137        } && test -s conftest.$ac_objext; then
8138   ac_cv_header_stdc=yes
8139 else
8140   $as_echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143         ac_cv_header_stdc=no
8144 fi
8145
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147
8148 if test $ac_cv_header_stdc = yes; then
8149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8150   cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h.  */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h.  */
8156 #include <string.h>
8157
8158 _ACEOF
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160   $EGREP "memchr" >/dev/null 2>&1; then
8161   :
8162 else
8163   ac_cv_header_stdc=no
8164 fi
8165 rm -f conftest*
8166
8167 fi
8168
8169 if test $ac_cv_header_stdc = yes; then
8170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 #include <stdlib.h>
8178
8179 _ACEOF
8180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8181   $EGREP "free" >/dev/null 2>&1; then
8182   :
8183 else
8184   ac_cv_header_stdc=no
8185 fi
8186 rm -f conftest*
8187
8188 fi
8189
8190 if test $ac_cv_header_stdc = yes; then
8191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8192   if test "$cross_compiling" = yes; then
8193   :
8194 else
8195   cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h.  */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h.  */
8201 #include <ctype.h>
8202 #include <stdlib.h>
8203 #if ((' ' & 0x0FF) == 0x020)
8204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8206 #else
8207 # define ISLOWER(c) \
8208                    (('a' <= (c) && (c) <= 'i') \
8209                      || ('j' <= (c) && (c) <= 'r') \
8210                      || ('s' <= (c) && (c) <= 'z'))
8211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8212 #endif
8213
8214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8215 int
8216 main ()
8217 {
8218   int i;
8219   for (i = 0; i < 256; i++)
8220     if (XOR (islower (i), ISLOWER (i))
8221         || toupper (i) != TOUPPER (i))
8222       return 2;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8233 $as_echo "$ac_try_echo") >&5
8234   (eval "$ac_link") 2>&5
8235   ac_status=$?
8236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8238   { (case "(($ac_try" in
8239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240   *) ac_try_echo=$ac_try;;
8241 esac
8242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8243 $as_echo "$ac_try_echo") >&5
8244   (eval "$ac_try") 2>&5
8245   ac_status=$?
8246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; }; then
8248   :
8249 else
8250   $as_echo "$as_me: program exited with status $ac_status" >&5
8251 $as_echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 ( exit $ac_status )
8255 ac_cv_header_stdc=no
8256 fi
8257 rm -rf conftest.dSYM
8258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8259 fi
8260
8261
8262 fi
8263 fi
8264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8265 $as_echo "$ac_cv_header_stdc" >&6; }
8266 if test $ac_cv_header_stdc = yes; then
8267
8268 cat >>confdefs.h <<\_ACEOF
8269 #define STDC_HEADERS 1
8270 _ACEOF
8271
8272 fi
8273
8274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8285                   inttypes.h stdint.h unistd.h
8286 do
8287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 $as_echo_n "checking for $ac_header... " >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291   $as_echo_n "(cached) " >&6
8292 else
8293   cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h.  */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h.  */
8299 $ac_includes_default
8300
8301 #include <$ac_header>
8302 _ACEOF
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8305 case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310 $as_echo "$ac_try_echo") >&5
8311   (eval "$ac_compile") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest.$ac_objext; then
8321   eval "$as_ac_Header=yes"
8322 else
8323   $as_echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326         eval "$as_ac_Header=no"
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 fi
8331 ac_res=`eval 'as_val=${'$as_ac_Header'}
8332                  $as_echo "$as_val"'`
8333                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8334 $as_echo "$ac_res" >&6; }
8335 as_val=`eval 'as_val=${'$as_ac_Header'}
8336                  $as_echo "$as_val"'`
8337    if test "x$as_val" = x""yes; then
8338   cat >>confdefs.h <<_ACEOF
8339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8340 _ACEOF
8341
8342 fi
8343
8344 done
8345
8346
8347
8348 for ac_header in dlfcn.h
8349 do
8350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8352 $as_echo_n "checking for $ac_header... " >&6; }
8353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354   $as_echo_n "(cached) " >&6
8355 else
8356   cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 $ac_includes_default
8363
8364 #include <$ac_header>
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (ac_try="$ac_compile"
8368 case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8373 $as_echo "$ac_try_echo") >&5
8374   (eval "$ac_compile") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } && {
8381          test -z "$ac_c_werror_flag" ||
8382          test ! -s conftest.err
8383        } && test -s conftest.$ac_objext; then
8384   eval "$as_ac_Header=yes"
8385 else
8386   $as_echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389         eval "$as_ac_Header=no"
8390 fi
8391
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 ac_res=`eval 'as_val=${'$as_ac_Header'}
8395                  $as_echo "$as_val"'`
8396                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8397 $as_echo "$ac_res" >&6; }
8398 as_val=`eval 'as_val=${'$as_ac_Header'}
8399                  $as_echo "$as_val"'`
8400    if test "x$as_val" = x""yes; then
8401   cat >>confdefs.h <<_ACEOF
8402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403 _ACEOF
8404
8405 fi
8406
8407 done
8408
8409
8410
8411 # Set options
8412
8413
8414
8415         enable_dlopen=no
8416
8417
8418   enable_win32_dll=no
8419
8420
8421             # Check whether --enable-shared was given.
8422 if test "${enable_shared+set}" = set; then
8423   enableval=$enable_shared; p=${PACKAGE-default}
8424     case $enableval in
8425     yes) enable_shared=yes ;;
8426     no) enable_shared=no ;;
8427     *)
8428       enable_shared=no
8429       # Look at the argument we got.  We use all the common list separators.
8430       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8431       for pkg in $enableval; do
8432         IFS="$lt_save_ifs"
8433         if test "X$pkg" = "X$p"; then
8434           enable_shared=yes
8435         fi
8436       done
8437       IFS="$lt_save_ifs"
8438       ;;
8439     esac
8440 else
8441   enable_shared=yes
8442 fi
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454 # Check whether --with-pic was given.
8455 if test "${with_pic+set}" = set; then
8456   withval=$with_pic; pic_mode="$withval"
8457 else
8458   pic_mode=default
8459 fi
8460
8461
8462 test -z "$pic_mode" && pic_mode=default
8463
8464
8465
8466
8467
8468
8469
8470   # Check whether --enable-fast-install was given.
8471 if test "${enable_fast_install+set}" = set; then
8472   enableval=$enable_fast_install; p=${PACKAGE-default}
8473     case $enableval in
8474     yes) enable_fast_install=yes ;;
8475     no) enable_fast_install=no ;;
8476     *)
8477       enable_fast_install=no
8478       # Look at the argument we got.  We use all the common list separators.
8479       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480       for pkg in $enableval; do
8481         IFS="$lt_save_ifs"
8482         if test "X$pkg" = "X$p"; then
8483           enable_fast_install=yes
8484         fi
8485       done
8486       IFS="$lt_save_ifs"
8487       ;;
8488     esac
8489 else
8490   enable_fast_install=yes
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 # This can be used to rebuild libtool when needed
8504 LIBTOOL_DEPS="$ltmain"
8505
8506 # Always use our own libtool.
8507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533 test -z "$LN_S" && LN_S="ln -s"
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 if test -n "${ZSH_VERSION+set}" ; then
8549    setopt NO_GLOB_SUBST
8550 fi
8551
8552 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8553 $as_echo_n "checking for objdir... " >&6; }
8554 if test "${lt_cv_objdir+set}" = set; then
8555   $as_echo_n "(cached) " >&6
8556 else
8557   rm -f .libs 2>/dev/null
8558 mkdir .libs 2>/dev/null
8559 if test -d .libs; then
8560   lt_cv_objdir=.libs
8561 else
8562   # MS-DOS does not allow filenames that begin with a dot.
8563   lt_cv_objdir=_libs
8564 fi
8565 rmdir .libs 2>/dev/null
8566 fi
8567 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8568 $as_echo "$lt_cv_objdir" >&6; }
8569 objdir=$lt_cv_objdir
8570
8571
8572
8573
8574
8575 cat >>confdefs.h <<_ACEOF
8576 #define LT_OBJDIR "$lt_cv_objdir/"
8577 _ACEOF
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 case $host_os in
8596 aix3*)
8597   # AIX sometimes has problems with the GCC collect2 program.  For some
8598   # reason, if we set the COLLECT_NAMES environment variable, the problems
8599   # vanish in a puff of smoke.
8600   if test "X${COLLECT_NAMES+set}" != Xset; then
8601     COLLECT_NAMES=
8602     export COLLECT_NAMES
8603   fi
8604   ;;
8605 esac
8606
8607 # Sed substitution that helps us do robust quoting.  It backslashifies
8608 # metacharacters that are still active within double-quoted strings.
8609 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8610
8611 # Same as above, but do not quote variable references.
8612 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8613
8614 # Sed substitution to delay expansion of an escaped shell variable in a
8615 # double_quote_subst'ed string.
8616 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8617
8618 # Sed substitution to delay expansion of an escaped single quote.
8619 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8620
8621 # Sed substitution to avoid accidental globbing in evaled expressions
8622 no_glob_subst='s/\*/\\\*/g'
8623
8624 # Global variables:
8625 ofile=libtool
8626 can_build_shared=yes
8627
8628 # All known linkers require a `.a' archive for static linking (except MSVC,
8629 # which needs '.lib').
8630 libext=a
8631
8632 with_gnu_ld="$lt_cv_prog_gnu_ld"
8633
8634 old_CC="$CC"
8635 old_CFLAGS="$CFLAGS"
8636
8637 # Set sane defaults for various variables
8638 test -z "$CC" && CC=cc
8639 test -z "$LTCC" && LTCC=$CC
8640 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8641 test -z "$LD" && LD=ld
8642 test -z "$ac_objext" && ac_objext=o
8643
8644 for cc_temp in $compiler""; do
8645   case $cc_temp in
8646     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8647     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8648     \-*) ;;
8649     *) break;;
8650   esac
8651 done
8652 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8653
8654
8655 # Only perform the check for file, if the check method requires it
8656 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8657 case $deplibs_check_method in
8658 file_magic*)
8659   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8660     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8661 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8662 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8663   $as_echo_n "(cached) " >&6
8664 else
8665   case $MAGIC_CMD in
8666 [\\/*] |  ?:[\\/]*)
8667   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8668   ;;
8669 *)
8670   lt_save_MAGIC_CMD="$MAGIC_CMD"
8671   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8672   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8673   for ac_dir in $ac_dummy; do
8674     IFS="$lt_save_ifs"
8675     test -z "$ac_dir" && ac_dir=.
8676     if test -f $ac_dir/${ac_tool_prefix}file; then
8677       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8678       if test -n "$file_magic_test_file"; then
8679         case $deplibs_check_method in
8680         "file_magic "*)
8681           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8682           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8683           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8684             $EGREP "$file_magic_regex" > /dev/null; then
8685             :
8686           else
8687             cat <<_LT_EOF 1>&2
8688
8689 *** Warning: the command libtool uses to detect shared libraries,
8690 *** $file_magic_cmd, produces output that libtool cannot recognize.
8691 *** The result is that libtool may fail to recognize shared libraries
8692 *** as such.  This will affect the creation of libtool libraries that
8693 *** depend on shared libraries, but programs linked with such libtool
8694 *** libraries will work regardless of this problem.  Nevertheless, you
8695 *** may want to report the problem to your system manager and/or to
8696 *** bug-libtool@gnu.org
8697
8698 _LT_EOF
8699           fi ;;
8700         esac
8701       fi
8702       break
8703     fi
8704   done
8705   IFS="$lt_save_ifs"
8706   MAGIC_CMD="$lt_save_MAGIC_CMD"
8707   ;;
8708 esac
8709 fi
8710
8711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8712 if test -n "$MAGIC_CMD"; then
8713   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8714 $as_echo "$MAGIC_CMD" >&6; }
8715 else
8716   { $as_echo "$as_me:$LINENO: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720
8721
8722
8723
8724 if test -z "$lt_cv_path_MAGIC_CMD"; then
8725   if test -n "$ac_tool_prefix"; then
8726     { $as_echo "$as_me:$LINENO: checking for file" >&5
8727 $as_echo_n "checking for file... " >&6; }
8728 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8729   $as_echo_n "(cached) " >&6
8730 else
8731   case $MAGIC_CMD in
8732 [\\/*] |  ?:[\\/]*)
8733   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8734   ;;
8735 *)
8736   lt_save_MAGIC_CMD="$MAGIC_CMD"
8737   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8738   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8739   for ac_dir in $ac_dummy; do
8740     IFS="$lt_save_ifs"
8741     test -z "$ac_dir" && ac_dir=.
8742     if test -f $ac_dir/file; then
8743       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8744       if test -n "$file_magic_test_file"; then
8745         case $deplibs_check_method in
8746         "file_magic "*)
8747           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8748           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8749           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8750             $EGREP "$file_magic_regex" > /dev/null; then
8751             :
8752           else
8753             cat <<_LT_EOF 1>&2
8754
8755 *** Warning: the command libtool uses to detect shared libraries,
8756 *** $file_magic_cmd, produces output that libtool cannot recognize.
8757 *** The result is that libtool may fail to recognize shared libraries
8758 *** as such.  This will affect the creation of libtool libraries that
8759 *** depend on shared libraries, but programs linked with such libtool
8760 *** libraries will work regardless of this problem.  Nevertheless, you
8761 *** may want to report the problem to your system manager and/or to
8762 *** bug-libtool@gnu.org
8763
8764 _LT_EOF
8765           fi ;;
8766         esac
8767       fi
8768       break
8769     fi
8770   done
8771   IFS="$lt_save_ifs"
8772   MAGIC_CMD="$lt_save_MAGIC_CMD"
8773   ;;
8774 esac
8775 fi
8776
8777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8778 if test -n "$MAGIC_CMD"; then
8779   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8780 $as_echo "$MAGIC_CMD" >&6; }
8781 else
8782   { $as_echo "$as_me:$LINENO: result: no" >&5
8783 $as_echo "no" >&6; }
8784 fi
8785
8786
8787   else
8788     MAGIC_CMD=:
8789   fi
8790 fi
8791
8792   fi
8793   ;;
8794 esac
8795
8796 # Use C for the default configuration in the libtool script
8797
8798 lt_save_CC="$CC"
8799 ac_ext=c
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8804
8805
8806 # Source file extension for C test sources.
8807 ac_ext=c
8808
8809 # Object file extension for compiled C test sources.
8810 objext=o
8811 objext=$objext
8812
8813 # Code to be used in simple compile tests
8814 lt_simple_compile_test_code="int some_variable = 0;"
8815
8816 # Code to be used in simple link tests
8817 lt_simple_link_test_code='int main(){return(0);}'
8818
8819
8820
8821
8822
8823
8824
8825 # If no C compiler was specified, use CC.
8826 LTCC=${LTCC-"$CC"}
8827
8828 # If no C compiler flags were specified, use CFLAGS.
8829 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8830
8831 # Allow CC to be a program name with arguments.
8832 compiler=$CC
8833
8834 # Save the default compiler, since it gets overwritten when the other
8835 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8836 compiler_DEFAULT=$CC
8837
8838 # save warnings/boilerplate of simple test code
8839 ac_outfile=conftest.$ac_objext
8840 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8841 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8842 _lt_compiler_boilerplate=`cat conftest.err`
8843 $RM conftest*
8844
8845 ac_outfile=conftest.$ac_objext
8846 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8847 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8848 _lt_linker_boilerplate=`cat conftest.err`
8849 $RM -r conftest*
8850
8851
8852 if test -n "$compiler"; then
8853
8854 lt_prog_compiler_no_builtin_flag=
8855
8856 if test "$GCC" = yes; then
8857   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8858
8859   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8860 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8861 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8862   $as_echo_n "(cached) " >&6
8863 else
8864   lt_cv_prog_compiler_rtti_exceptions=no
8865    ac_outfile=conftest.$ac_objext
8866    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867    lt_compiler_flag="-fno-rtti -fno-exceptions"
8868    # Insert the option either (1) after the last *FLAGS variable, or
8869    # (2) before a word containing "conftest.", or (3) at the end.
8870    # Note that $ac_compile itself does not contain backslashes and begins
8871    # with a dollar sign (not a hyphen), so the echo should work correctly.
8872    # The option is referenced via a variable to avoid confusing sed.
8873    lt_compile=`echo "$ac_compile" | $SED \
8874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8876    -e 's:$: $lt_compiler_flag:'`
8877    (eval echo "\"\$as_me:8877: $lt_compile\"" >&5)
8878    (eval "$lt_compile" 2>conftest.err)
8879    ac_status=$?
8880    cat conftest.err >&5
8881    echo "$as_me:8881: \$? = $ac_status" >&5
8882    if (exit $ac_status) && test -s "$ac_outfile"; then
8883      # The compiler can only warn and ignore the option if not recognized
8884      # So say no if there are warnings other than the usual output.
8885      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8886      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8888        lt_cv_prog_compiler_rtti_exceptions=yes
8889      fi
8890    fi
8891    $RM conftest*
8892
8893 fi
8894 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8895 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8896
8897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8898     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8899 else
8900     :
8901 fi
8902
8903 fi
8904
8905
8906
8907
8908
8909
8910   lt_prog_compiler_wl=
8911 lt_prog_compiler_pic=
8912 lt_prog_compiler_static=
8913
8914 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8916
8917   if test "$GCC" = yes; then
8918     lt_prog_compiler_wl='-Wl,'
8919     lt_prog_compiler_static='-static'
8920
8921     case $host_os in
8922       aix*)
8923       # All AIX code is PIC.
8924       if test "$host_cpu" = ia64; then
8925         # AIX 5 now supports IA64 processor
8926         lt_prog_compiler_static='-Bstatic'
8927       fi
8928       ;;
8929
8930     amigaos*)
8931       case $host_cpu in
8932       powerpc)
8933             # see comment about AmigaOS4 .so support
8934             lt_prog_compiler_pic='-fPIC'
8935         ;;
8936       m68k)
8937             # FIXME: we need at least 68020 code to build shared libraries, but
8938             # adding the `-m68020' flag to GCC prevents building anything better,
8939             # like `-m68040'.
8940             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8941         ;;
8942       esac
8943       ;;
8944
8945     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8946       # PIC is the default for these OSes.
8947       ;;
8948
8949     mingw* | cygwin* | pw32* | os2* | cegcc*)
8950       # This hack is so that the source file can tell whether it is being
8951       # built for inclusion in a dll (and should export symbols for example).
8952       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8953       # (--disable-auto-import) libraries
8954       lt_prog_compiler_pic='-DDLL_EXPORT'
8955       ;;
8956
8957     darwin* | rhapsody*)
8958       # PIC is the default on this platform
8959       # Common symbols not allowed in MH_DYLIB files
8960       lt_prog_compiler_pic='-fno-common'
8961       ;;
8962
8963     hpux*)
8964       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8965       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8966       # sets the default TLS model and affects inlining.
8967       case $host_cpu in
8968       hppa*64*)
8969         # +Z the default
8970         ;;
8971       *)
8972         lt_prog_compiler_pic='-fPIC'
8973         ;;
8974       esac
8975       ;;
8976
8977     interix[3-9]*)
8978       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8979       # Instead, we relocate shared libraries at runtime.
8980       ;;
8981
8982     msdosdjgpp*)
8983       # Just because we use GCC doesn't mean we suddenly get shared libraries
8984       # on systems that don't support them.
8985       lt_prog_compiler_can_build_shared=no
8986       enable_shared=no
8987       ;;
8988
8989     *nto* | *qnx*)
8990       # QNX uses GNU C++, but need to define -shared option too, otherwise
8991       # it will coredump.
8992       lt_prog_compiler_pic='-fPIC -shared'
8993       ;;
8994
8995     sysv4*MP*)
8996       if test -d /usr/nec; then
8997         lt_prog_compiler_pic=-Kconform_pic
8998       fi
8999       ;;
9000
9001     *)
9002       lt_prog_compiler_pic='-fPIC'
9003       ;;
9004     esac
9005   else
9006     # PORTME Check for flag to pass linker flags through the system compiler.
9007     case $host_os in
9008     aix*)
9009       lt_prog_compiler_wl='-Wl,'
9010       if test "$host_cpu" = ia64; then
9011         # AIX 5 now supports IA64 processor
9012         lt_prog_compiler_static='-Bstatic'
9013       else
9014         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9015       fi
9016       ;;
9017
9018     mingw* | cygwin* | pw32* | os2* | cegcc*)
9019       # This hack is so that the source file can tell whether it is being
9020       # built for inclusion in a dll (and should export symbols for example).
9021       lt_prog_compiler_pic='-DDLL_EXPORT'
9022       ;;
9023
9024     hpux9* | hpux10* | hpux11*)
9025       lt_prog_compiler_wl='-Wl,'
9026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9027       # not for PA HP-UX.
9028       case $host_cpu in
9029       hppa*64*|ia64*)
9030         # +Z the default
9031         ;;
9032       *)
9033         lt_prog_compiler_pic='+Z'
9034         ;;
9035       esac
9036       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9037       lt_prog_compiler_static='${wl}-a ${wl}archive'
9038       ;;
9039
9040     irix5* | irix6* | nonstopux*)
9041       lt_prog_compiler_wl='-Wl,'
9042       # PIC (with -KPIC) is the default.
9043       lt_prog_compiler_static='-non_shared'
9044       ;;
9045
9046     linux* | k*bsd*-gnu)
9047       case $cc_basename in
9048       # old Intel for x86_64 which still supported -KPIC.
9049       ecc*)
9050         lt_prog_compiler_wl='-Wl,'
9051         lt_prog_compiler_pic='-KPIC'
9052         lt_prog_compiler_static='-static'
9053         ;;
9054       # icc used to be incompatible with GCC.
9055       # ICC 10 doesn't accept -KPIC any more.
9056       icc* | ifort*)
9057         lt_prog_compiler_wl='-Wl,'
9058         lt_prog_compiler_pic='-fPIC'
9059         lt_prog_compiler_static='-static'
9060         ;;
9061       # Lahey Fortran 8.1.
9062       lf95*)
9063         lt_prog_compiler_wl='-Wl,'
9064         lt_prog_compiler_pic='--shared'
9065         lt_prog_compiler_static='--static'
9066         ;;
9067       pgcc* | pgf77* | pgf90* | pgf95*)
9068         # Portland Group compilers (*not* the Pentium gcc compiler,
9069         # which looks to be a dead project)
9070         lt_prog_compiler_wl='-Wl,'
9071         lt_prog_compiler_pic='-fpic'
9072         lt_prog_compiler_static='-Bstatic'
9073         ;;
9074       ccc*)
9075         lt_prog_compiler_wl='-Wl,'
9076         # All Alpha code is PIC.
9077         lt_prog_compiler_static='-non_shared'
9078         ;;
9079       xl*)
9080         # IBM XL C 8.0/Fortran 10.1 on PPC
9081         lt_prog_compiler_wl='-Wl,'
9082         lt_prog_compiler_pic='-qpic'
9083         lt_prog_compiler_static='-qstaticlink'
9084         ;;
9085       *)
9086         case `$CC -V 2>&1 | sed 5q` in
9087         *Sun\ C*)
9088           # Sun C 5.9
9089           lt_prog_compiler_pic='-KPIC'
9090           lt_prog_compiler_static='-Bstatic'
9091           lt_prog_compiler_wl='-Wl,'
9092           ;;
9093         *Sun\ F*)
9094           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9095           lt_prog_compiler_pic='-KPIC'
9096           lt_prog_compiler_static='-Bstatic'
9097           lt_prog_compiler_wl=''
9098           ;;
9099         esac
9100         ;;
9101       esac
9102       ;;
9103
9104     newsos6)
9105       lt_prog_compiler_pic='-KPIC'
9106       lt_prog_compiler_static='-Bstatic'
9107       ;;
9108
9109     *nto* | *qnx*)
9110       # QNX uses GNU C++, but need to define -shared option too, otherwise
9111       # it will coredump.
9112       lt_prog_compiler_pic='-fPIC -shared'
9113       ;;
9114
9115     osf3* | osf4* | osf5*)
9116       lt_prog_compiler_wl='-Wl,'
9117       # All OSF/1 code is PIC.
9118       lt_prog_compiler_static='-non_shared'
9119       ;;
9120
9121     rdos*)
9122       lt_prog_compiler_static='-non_shared'
9123       ;;
9124
9125     solaris*)
9126       lt_prog_compiler_pic='-KPIC'
9127       lt_prog_compiler_static='-Bstatic'
9128       case $cc_basename in
9129       f77* | f90* | f95*)
9130         lt_prog_compiler_wl='-Qoption ld ';;
9131       *)
9132         lt_prog_compiler_wl='-Wl,';;
9133       esac
9134       ;;
9135
9136     sunos4*)
9137       lt_prog_compiler_wl='-Qoption ld '
9138       lt_prog_compiler_pic='-PIC'
9139       lt_prog_compiler_static='-Bstatic'
9140       ;;
9141
9142     sysv4 | sysv4.2uw2* | sysv4.3*)
9143       lt_prog_compiler_wl='-Wl,'
9144       lt_prog_compiler_pic='-KPIC'
9145       lt_prog_compiler_static='-Bstatic'
9146       ;;
9147
9148     sysv4*MP*)
9149       if test -d /usr/nec ;then
9150         lt_prog_compiler_pic='-Kconform_pic'
9151         lt_prog_compiler_static='-Bstatic'
9152       fi
9153       ;;
9154
9155     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9156       lt_prog_compiler_wl='-Wl,'
9157       lt_prog_compiler_pic='-KPIC'
9158       lt_prog_compiler_static='-Bstatic'
9159       ;;
9160
9161     unicos*)
9162       lt_prog_compiler_wl='-Wl,'
9163       lt_prog_compiler_can_build_shared=no
9164       ;;
9165
9166     uts4*)
9167       lt_prog_compiler_pic='-pic'
9168       lt_prog_compiler_static='-Bstatic'
9169       ;;
9170
9171     *)
9172       lt_prog_compiler_can_build_shared=no
9173       ;;
9174     esac
9175   fi
9176
9177 case $host_os in
9178   # For platforms which do not support PIC, -DPIC is meaningless:
9179   *djgpp*)
9180     lt_prog_compiler_pic=
9181     ;;
9182   *)
9183     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9184     ;;
9185 esac
9186 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9187 $as_echo "$lt_prog_compiler_pic" >&6; }
9188
9189
9190
9191
9192
9193
9194 #
9195 # Check to make sure the PIC flag actually works.
9196 #
9197 if test -n "$lt_prog_compiler_pic"; then
9198   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9199 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9200 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9201   $as_echo_n "(cached) " >&6
9202 else
9203   lt_cv_prog_compiler_pic_works=no
9204    ac_outfile=conftest.$ac_objext
9205    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9206    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9207    # Insert the option either (1) after the last *FLAGS variable, or
9208    # (2) before a word containing "conftest.", or (3) at the end.
9209    # Note that $ac_compile itself does not contain backslashes and begins
9210    # with a dollar sign (not a hyphen), so the echo should work correctly.
9211    # The option is referenced via a variable to avoid confusing sed.
9212    lt_compile=`echo "$ac_compile" | $SED \
9213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9215    -e 's:$: $lt_compiler_flag:'`
9216    (eval echo "\"\$as_me:9216: $lt_compile\"" >&5)
9217    (eval "$lt_compile" 2>conftest.err)
9218    ac_status=$?
9219    cat conftest.err >&5
9220    echo "$as_me:9220: \$? = $ac_status" >&5
9221    if (exit $ac_status) && test -s "$ac_outfile"; then
9222      # The compiler can only warn and ignore the option if not recognized
9223      # So say no if there are warnings other than the usual output.
9224      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9225      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9226      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9227        lt_cv_prog_compiler_pic_works=yes
9228      fi
9229    fi
9230    $RM conftest*
9231
9232 fi
9233 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9234 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9235
9236 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9237     case $lt_prog_compiler_pic in
9238      "" | " "*) ;;
9239      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9240      esac
9241 else
9242     lt_prog_compiler_pic=
9243      lt_prog_compiler_can_build_shared=no
9244 fi
9245
9246 fi
9247
9248
9249
9250
9251
9252
9253 #
9254 # Check to make sure the static flag actually works.
9255 #
9256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9257 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9258 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9259 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9260   $as_echo_n "(cached) " >&6
9261 else
9262   lt_cv_prog_compiler_static_works=no
9263    save_LDFLAGS="$LDFLAGS"
9264    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9265    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9266    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9267      # The linker can only warn and ignore the option if not recognized
9268      # So say no if there are warnings
9269      if test -s conftest.err; then
9270        # Append any errors to the config.log.
9271        cat conftest.err 1>&5
9272        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9273        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9274        if diff conftest.exp conftest.er2 >/dev/null; then
9275          lt_cv_prog_compiler_static_works=yes
9276        fi
9277      else
9278        lt_cv_prog_compiler_static_works=yes
9279      fi
9280    fi
9281    $RM -r conftest*
9282    LDFLAGS="$save_LDFLAGS"
9283
9284 fi
9285 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9286 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9287
9288 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9289     :
9290 else
9291     lt_prog_compiler_static=
9292 fi
9293
9294
9295
9296
9297
9298
9299
9300   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9302 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9303   $as_echo_n "(cached) " >&6
9304 else
9305   lt_cv_prog_compiler_c_o=no
9306    $RM -r conftest 2>/dev/null
9307    mkdir conftest
9308    cd conftest
9309    mkdir out
9310    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9311
9312    lt_compiler_flag="-o out/conftest2.$ac_objext"
9313    # Insert the option either (1) after the last *FLAGS variable, or
9314    # (2) before a word containing "conftest.", or (3) at the end.
9315    # Note that $ac_compile itself does not contain backslashes and begins
9316    # with a dollar sign (not a hyphen), so the echo should work correctly.
9317    lt_compile=`echo "$ac_compile" | $SED \
9318    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9320    -e 's:$: $lt_compiler_flag:'`
9321    (eval echo "\"\$as_me:9321: $lt_compile\"" >&5)
9322    (eval "$lt_compile" 2>out/conftest.err)
9323    ac_status=$?
9324    cat out/conftest.err >&5
9325    echo "$as_me:9325: \$? = $ac_status" >&5
9326    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9327    then
9328      # The compiler can only warn and ignore the option if not recognized
9329      # So say no if there are warnings
9330      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9331      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9332      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9333        lt_cv_prog_compiler_c_o=yes
9334      fi
9335    fi
9336    chmod u+w . 2>&5
9337    $RM conftest*
9338    # SGI C++ compiler will create directory out/ii_files/ for
9339    # template instantiation
9340    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9341    $RM out/* && rmdir out
9342    cd ..
9343    $RM -r conftest
9344    $RM conftest*
9345
9346 fi
9347 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9348 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9349
9350
9351
9352
9353
9354
9355   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9358   $as_echo_n "(cached) " >&6
9359 else
9360   lt_cv_prog_compiler_c_o=no
9361    $RM -r conftest 2>/dev/null
9362    mkdir conftest
9363    cd conftest
9364    mkdir out
9365    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366
9367    lt_compiler_flag="-o out/conftest2.$ac_objext"
9368    # Insert the option either (1) after the last *FLAGS variable, or
9369    # (2) before a word containing "conftest.", or (3) at the end.
9370    # Note that $ac_compile itself does not contain backslashes and begins
9371    # with a dollar sign (not a hyphen), so the echo should work correctly.
9372    lt_compile=`echo "$ac_compile" | $SED \
9373    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375    -e 's:$: $lt_compiler_flag:'`
9376    (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377    (eval "$lt_compile" 2>out/conftest.err)
9378    ac_status=$?
9379    cat out/conftest.err >&5
9380    echo "$as_me:9380: \$? = $ac_status" >&5
9381    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9382    then
9383      # The compiler can only warn and ignore the option if not recognized
9384      # So say no if there are warnings
9385      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9386      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9387      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9388        lt_cv_prog_compiler_c_o=yes
9389      fi
9390    fi
9391    chmod u+w . 2>&5
9392    $RM conftest*
9393    # SGI C++ compiler will create directory out/ii_files/ for
9394    # template instantiation
9395    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9396    $RM out/* && rmdir out
9397    cd ..
9398    $RM -r conftest
9399    $RM conftest*
9400
9401 fi
9402 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9404
9405
9406
9407
9408 hard_links="nottested"
9409 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9410   # do not overwrite the value of need_locks provided by the user
9411   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9412 $as_echo_n "checking if we can lock with hard links... " >&6; }
9413   hard_links=yes
9414   $RM conftest*
9415   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9416   touch conftest.a
9417   ln conftest.a conftest.b 2>&5 || hard_links=no
9418   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9419   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9420 $as_echo "$hard_links" >&6; }
9421   if test "$hard_links" = no; then
9422     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9423 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9424     need_locks=warn
9425   fi
9426 else
9427   need_locks=no
9428 fi
9429
9430
9431
9432
9433
9434
9435   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9437
9438   runpath_var=
9439   allow_undefined_flag=
9440   always_export_symbols=no
9441   archive_cmds=
9442   archive_expsym_cmds=
9443   compiler_needs_object=no
9444   enable_shared_with_static_runtimes=no
9445   export_dynamic_flag_spec=
9446   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9447   hardcode_automatic=no
9448   hardcode_direct=no
9449   hardcode_direct_absolute=no
9450   hardcode_libdir_flag_spec=
9451   hardcode_libdir_flag_spec_ld=
9452   hardcode_libdir_separator=
9453   hardcode_minus_L=no
9454   hardcode_shlibpath_var=unsupported
9455   inherit_rpath=no
9456   link_all_deplibs=unknown
9457   module_cmds=
9458   module_expsym_cmds=
9459   old_archive_from_new_cmds=
9460   old_archive_from_expsyms_cmds=
9461   thread_safe_flag_spec=
9462   whole_archive_flag_spec=
9463   # include_expsyms should be a list of space-separated symbols to be *always*
9464   # included in the symbol list
9465   include_expsyms=
9466   # exclude_expsyms can be an extended regexp of symbols to exclude
9467   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9468   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9469   # as well as any symbol that contains `d'.
9470   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9471   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9472   # platforms (ab)use it in PIC code, but their linkers get confused if
9473   # the symbol is explicitly referenced.  Since portable code cannot
9474   # rely on this symbol name, it's probably fine to never include it in
9475   # preloaded symbol tables.
9476   # Exclude shared library initialization/finalization symbols.
9477   extract_expsyms_cmds=
9478
9479   case $host_os in
9480   cygwin* | mingw* | pw32* | cegcc*)
9481     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9482     # When not using gcc, we currently assume that we are using
9483     # Microsoft Visual C++.
9484     if test "$GCC" != yes; then
9485       with_gnu_ld=no
9486     fi
9487     ;;
9488   interix*)
9489     # we just hope/assume this is gcc and not c89 (= MSVC++)
9490     with_gnu_ld=yes
9491     ;;
9492   openbsd*)
9493     with_gnu_ld=no
9494     ;;
9495   esac
9496
9497   ld_shlibs=yes
9498   if test "$with_gnu_ld" = yes; then
9499     # If archive_cmds runs LD, not CC, wlarc should be empty
9500     wlarc='${wl}'
9501
9502     # Set some defaults for GNU ld with shared library support. These
9503     # are reset later if shared libraries are not supported. Putting them
9504     # here allows them to be overridden if necessary.
9505     runpath_var=LD_RUN_PATH
9506     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507     export_dynamic_flag_spec='${wl}--export-dynamic'
9508     # ancient GNU ld didn't support --whole-archive et. al.
9509     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9510       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9511     else
9512       whole_archive_flag_spec=
9513     fi
9514     supports_anon_versioning=no
9515     case `$LD -v 2>&1` in
9516       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9517       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9518       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9519       *\ 2.11.*) ;; # other 2.11 versions
9520       *) supports_anon_versioning=yes ;;
9521     esac
9522
9523     # See if GNU ld supports shared libraries.
9524     case $host_os in
9525     aix[3-9]*)
9526       # On AIX/PPC, the GNU linker is very broken
9527       if test "$host_cpu" != ia64; then
9528         ld_shlibs=no
9529         cat <<_LT_EOF 1>&2
9530
9531 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9532 *** to be unable to reliably create shared libraries on AIX.
9533 *** Therefore, libtool is disabling shared libraries support.  If you
9534 *** really care for shared libraries, you may want to modify your PATH
9535 *** so that a non-GNU linker is found, and then restart.
9536
9537 _LT_EOF
9538       fi
9539       ;;
9540
9541     amigaos*)
9542       case $host_cpu in
9543       powerpc)
9544             # see comment about AmigaOS4 .so support
9545             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546             archive_expsym_cmds=''
9547         ;;
9548       m68k)
9549             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)'
9550             hardcode_libdir_flag_spec='-L$libdir'
9551             hardcode_minus_L=yes
9552         ;;
9553       esac
9554       ;;
9555
9556     beos*)
9557       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558         allow_undefined_flag=unsupported
9559         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9560         # support --undefined.  This deserves some investigation.  FIXME
9561         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562       else
9563         ld_shlibs=no
9564       fi
9565       ;;
9566
9567     cygwin* | mingw* | pw32* | cegcc*)
9568       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9569       # as there is no search path for DLLs.
9570       hardcode_libdir_flag_spec='-L$libdir'
9571       allow_undefined_flag=unsupported
9572       always_export_symbols=no
9573       enable_shared_with_static_runtimes=yes
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
9576       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9577         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9578         # If the export-symbols file already is a .def file (1st line
9579         # is EXPORTS), use it as is; otherwise, prepend...
9580         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9581           cp $export_symbols $output_objdir/$soname.def;
9582         else
9583           echo EXPORTS > $output_objdir/$soname.def;
9584           cat $export_symbols >> $output_objdir/$soname.def;
9585         fi~
9586         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9587       else
9588         ld_shlibs=no
9589       fi
9590       ;;
9591
9592     interix[3-9]*)
9593       hardcode_direct=no
9594       hardcode_shlibpath_var=no
9595       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596       export_dynamic_flag_spec='${wl}-E'
9597       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9598       # Instead, shared libraries are loaded at an image base (0x10000000 by
9599       # default) and relocated if they conflict, which is a slow very memory
9600       # consuming and fragmenting process.  To avoid this, we pick a random,
9601       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9602       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9603       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9604       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'
9605       ;;
9606
9607     gnu* | linux* | tpf* | k*bsd*-gnu)
9608       tmp_diet=no
9609       if test "$host_os" = linux-dietlibc; then
9610         case $cc_basename in
9611           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9612         esac
9613       fi
9614       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9615          && test "$tmp_diet" = no
9616       then
9617         tmp_addflag=
9618         tmp_sharedflag='-shared'
9619         case $cc_basename,$host_cpu in
9620         pgcc*)                          # Portland Group C compiler
9621           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9622           tmp_addflag=' $pic_flag'
9623           ;;
9624         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9625           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9626           tmp_addflag=' $pic_flag -Mnomain' ;;
9627         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9628           tmp_addflag=' -i_dynamic' ;;
9629         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9630           tmp_addflag=' -i_dynamic -nofor_main' ;;
9631         ifc* | ifort*)                  # Intel Fortran compiler
9632           tmp_addflag=' -nofor_main' ;;
9633         lf95*)                          # Lahey Fortran 8.1
9634           whole_archive_flag_spec=
9635           tmp_sharedflag='--shared' ;;
9636         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9637           tmp_sharedflag='-qmkshrobj'
9638           tmp_addflag= ;;
9639         esac
9640         case `$CC -V 2>&1 | sed 5q` in
9641         *Sun\ C*)                       # Sun C 5.9
9642           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9643           compiler_needs_object=yes
9644           tmp_sharedflag='-G' ;;
9645         *Sun\ F*)                       # Sun Fortran 8.3
9646           tmp_sharedflag='-G' ;;
9647         esac
9648         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649
9650         if test "x$supports_anon_versioning" = xyes; then
9651           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9652             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9653             echo "local: *; };" >> $output_objdir/$libname.ver~
9654             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9655         fi
9656
9657         case $cc_basename in
9658         xlf*)
9659           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9660           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9661           hardcode_libdir_flag_spec=
9662           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9663           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9664           if test "x$supports_anon_versioning" = xyes; then
9665             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9666               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9667               echo "local: *; };" >> $output_objdir/$libname.ver~
9668               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9669           fi
9670           ;;
9671         esac
9672       else
9673         ld_shlibs=no
9674       fi
9675       ;;
9676
9677     netbsd*)
9678       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9679         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9680         wlarc=
9681       else
9682         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9684       fi
9685       ;;
9686
9687     solaris*)
9688       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9689         ld_shlibs=no
9690         cat <<_LT_EOF 1>&2
9691
9692 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9693 *** create shared libraries on Solaris systems.  Therefore, libtool
9694 *** is disabling shared libraries support.  We urge you to upgrade GNU
9695 *** binutils to release 2.9.1 or newer.  Another option is to modify
9696 *** your PATH or compiler configuration so that the native linker is
9697 *** used, and then restart.
9698
9699 _LT_EOF
9700       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9701         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9703       else
9704         ld_shlibs=no
9705       fi
9706       ;;
9707
9708     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9709       case `$LD -v 2>&1` in
9710         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9711         ld_shlibs=no
9712         cat <<_LT_EOF 1>&2
9713
9714 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9715 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9716 *** is disabling shared libraries support.  We urge you to upgrade GNU
9717 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9718 *** your PATH or compiler configuration so that the native linker is
9719 *** used, and then restart.
9720
9721 _LT_EOF
9722         ;;
9723         *)
9724           # For security reasons, it is highly recommended that you always
9725           # use absolute paths for naming shared libraries, and exclude the
9726           # DT_RUNPATH tag from executables and libraries.  But doing so
9727           # requires that you compile everything twice, which is a pain.
9728           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9729             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9730             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9732           else
9733             ld_shlibs=no
9734           fi
9735         ;;
9736       esac
9737       ;;
9738
9739     sunos4*)
9740       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9741       wlarc=
9742       hardcode_direct=yes
9743       hardcode_shlibpath_var=no
9744       ;;
9745
9746     *)
9747       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9748         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9750       else
9751         ld_shlibs=no
9752       fi
9753       ;;
9754     esac
9755
9756     if test "$ld_shlibs" = no; then
9757       runpath_var=
9758       hardcode_libdir_flag_spec=
9759       export_dynamic_flag_spec=
9760       whole_archive_flag_spec=
9761     fi
9762   else
9763     # PORTME fill in a description of your system's linker (not GNU ld)
9764     case $host_os in
9765     aix3*)
9766       allow_undefined_flag=unsupported
9767       always_export_symbols=yes
9768       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'
9769       # Note: this linker hardcodes the directories in LIBPATH if there
9770       # are no directories specified by -L.
9771       hardcode_minus_L=yes
9772       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9773         # Neither direct hardcoding nor static linking is supported with a
9774         # broken collect2.
9775         hardcode_direct=unsupported
9776       fi
9777       ;;
9778
9779     aix[4-9]*)
9780       if test "$host_cpu" = ia64; then
9781         # On IA64, the linker does run time linking by default, so we don't
9782         # have to do anything special.
9783         aix_use_runtimelinking=no
9784         exp_sym_flag='-Bexport'
9785         no_entry_flag=""
9786       else
9787         # If we're using GNU nm, then we don't want the "-C" option.
9788         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9789         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9790           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9791         else
9792           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'
9793         fi
9794         aix_use_runtimelinking=no
9795
9796         # Test if we are trying to use run time linking or normal
9797         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9798         # need to do runtime linking.
9799         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9800           for ld_flag in $LDFLAGS; do
9801           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9802             aix_use_runtimelinking=yes
9803             break
9804           fi
9805           done
9806           ;;
9807         esac
9808
9809         exp_sym_flag='-bexport'
9810         no_entry_flag='-bnoentry'
9811       fi
9812
9813       # When large executables or shared objects are built, AIX ld can
9814       # have problems creating the table of contents.  If linking a library
9815       # or program results in "error TOC overflow" add -mminimal-toc to
9816       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9817       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9818
9819       archive_cmds=''
9820       hardcode_direct=yes
9821       hardcode_direct_absolute=yes
9822       hardcode_libdir_separator=':'
9823       link_all_deplibs=yes
9824       file_list_spec='${wl}-f,'
9825
9826       if test "$GCC" = yes; then
9827         case $host_os in aix4.[012]|aix4.[012].*)
9828         # We only want to do this on AIX 4.2 and lower, the check
9829         # below for broken collect2 doesn't work under 4.3+
9830           collect2name=`${CC} -print-prog-name=collect2`
9831           if test -f "$collect2name" &&
9832            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9833           then
9834           # We have reworked collect2
9835           :
9836           else
9837           # We have old collect2
9838           hardcode_direct=unsupported
9839           # It fails to find uninstalled libraries when the uninstalled
9840           # path is not listed in the libpath.  Setting hardcode_minus_L
9841           # to unsupported forces relinking
9842           hardcode_minus_L=yes
9843           hardcode_libdir_flag_spec='-L$libdir'
9844           hardcode_libdir_separator=
9845           fi
9846           ;;
9847         esac
9848         shared_flag='-shared'
9849         if test "$aix_use_runtimelinking" = yes; then
9850           shared_flag="$shared_flag "'${wl}-G'
9851         fi
9852       else
9853         # not using gcc
9854         if test "$host_cpu" = ia64; then
9855         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9856         # chokes on -Wl,-G. The following line is correct:
9857           shared_flag='-G'
9858         else
9859           if test "$aix_use_runtimelinking" = yes; then
9860             shared_flag='${wl}-G'
9861           else
9862             shared_flag='${wl}-bM:SRE'
9863           fi
9864         fi
9865       fi
9866
9867       export_dynamic_flag_spec='${wl}-bexpall'
9868       # It seems that -bexpall does not export symbols beginning with
9869       # underscore (_), so it is better to generate a list of symbols to export.
9870       always_export_symbols=yes
9871       if test "$aix_use_runtimelinking" = yes; then
9872         # Warning - without using the other runtime loading flags (-brtl),
9873         # -berok will link without error, but may produce a broken library.
9874         allow_undefined_flag='-berok'
9875         # Determine the default libpath from the value encoded in an
9876         # empty executable.
9877         cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883
9884 int
9885 main ()
9886 {
9887
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9899 $as_echo "$ac_try_echo") >&5
9900   (eval "$ac_link") 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } && {
9907          test -z "$ac_c_werror_flag" ||
9908          test ! -s conftest.err
9909        } && test -s conftest$ac_exeext && {
9910          test "$cross_compiling" = yes ||
9911          $as_test_x conftest$ac_exeext
9912        }; then
9913
9914 lt_aix_libpath_sed='
9915     /Import File Strings/,/^$/ {
9916         /^0/ {
9917             s/^0  *\(.*\)$/\1/
9918             p
9919         }
9920     }'
9921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9922 # Check for a 64-bit object if we didn't find anything.
9923 if test -z "$aix_libpath"; then
9924   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925 fi
9926 else
9927   $as_echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9929
9930
9931 fi
9932
9933 rm -rf conftest.dSYM
9934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9935       conftest$ac_exeext conftest.$ac_ext
9936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9937
9938         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9939         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9940       else
9941         if test "$host_cpu" = ia64; then
9942           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9943           allow_undefined_flag="-z nodefs"
9944           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"
9945         else
9946          # Determine the default libpath from the value encoded in an
9947          # empty executable.
9948          cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954
9955 int
9956 main ()
9957 {
9958
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9965 case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9970 $as_echo "$ac_try_echo") >&5
9971   (eval "$ac_link") 2>conftest.er1
9972   ac_status=$?
9973   grep -v '^ *+' conftest.er1 >conftest.err
9974   rm -f conftest.er1
9975   cat conftest.err >&5
9976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); } && {
9978          test -z "$ac_c_werror_flag" ||
9979          test ! -s conftest.err
9980        } && test -s conftest$ac_exeext && {
9981          test "$cross_compiling" = yes ||
9982          $as_test_x conftest$ac_exeext
9983        }; then
9984
9985 lt_aix_libpath_sed='
9986     /Import File Strings/,/^$/ {
9987         /^0/ {
9988             s/^0  *\(.*\)$/\1/
9989             p
9990         }
9991     }'
9992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9993 # Check for a 64-bit object if we didn't find anything.
9994 if test -z "$aix_libpath"; then
9995   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9996 fi
9997 else
9998   $as_echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10000
10001
10002 fi
10003
10004 rm -rf conftest.dSYM
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10006       conftest$ac_exeext conftest.$ac_ext
10007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10008
10009          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10010           # Warning - without using the other run time loading flags,
10011           # -berok will link without error, but may produce a broken library.
10012           no_undefined_flag=' ${wl}-bernotok'
10013           allow_undefined_flag=' ${wl}-berok'
10014           # Exported symbols can be pulled into shared objects from archives
10015           whole_archive_flag_spec='$convenience'
10016           archive_cmds_need_lc=yes
10017           # This is similar to how AIX traditionally builds its shared libraries.
10018           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'
10019         fi
10020       fi
10021       ;;
10022
10023     amigaos*)
10024       case $host_cpu in
10025       powerpc)
10026             # see comment about AmigaOS4 .so support
10027             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028             archive_expsym_cmds=''
10029         ;;
10030       m68k)
10031             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)'
10032             hardcode_libdir_flag_spec='-L$libdir'
10033             hardcode_minus_L=yes
10034         ;;
10035       esac
10036       ;;
10037
10038     bsdi[45]*)
10039       export_dynamic_flag_spec=-rdynamic
10040       ;;
10041
10042     cygwin* | mingw* | pw32* | cegcc*)
10043       # When not using gcc, we currently assume that we are using
10044       # Microsoft Visual C++.
10045       # hardcode_libdir_flag_spec is actually meaningless, as there is
10046       # no search path for DLLs.
10047       hardcode_libdir_flag_spec=' '
10048       allow_undefined_flag=unsupported
10049       # Tell ltmain to make .lib files, not .a files.
10050       libext=lib
10051       # Tell ltmain to make .dll files, not .so files.
10052       shrext_cmds=".dll"
10053       # FIXME: Setting linknames here is a bad hack.
10054       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10055       # The linker will automatically build a .lib file if we build a DLL.
10056       old_archive_from_new_cmds='true'
10057       # FIXME: Should let the user specify the lib program.
10058       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10059       fix_srcfile_path='`cygpath -w "$srcfile"`'
10060       enable_shared_with_static_runtimes=yes
10061       ;;
10062
10063     darwin* | rhapsody*)
10064
10065
10066   archive_cmds_need_lc=no
10067   hardcode_direct=no
10068   hardcode_automatic=yes
10069   hardcode_shlibpath_var=unsupported
10070   whole_archive_flag_spec=''
10071   link_all_deplibs=yes
10072   allow_undefined_flag="$_lt_dar_allow_undefined"
10073   case $cc_basename in
10074      ifort*) _lt_dar_can_shared=yes ;;
10075      *) _lt_dar_can_shared=$GCC ;;
10076   esac
10077   if test "$_lt_dar_can_shared" = "yes"; then
10078     output_verbose_link_cmd=echo
10079     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10080     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10081     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}"
10082     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}"
10083
10084   else
10085   ld_shlibs=no
10086   fi
10087
10088       ;;
10089
10090     dgux*)
10091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092       hardcode_libdir_flag_spec='-L$libdir'
10093       hardcode_shlibpath_var=no
10094       ;;
10095
10096     freebsd1*)
10097       ld_shlibs=no
10098       ;;
10099
10100     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10101     # support.  Future versions do this automatically, but an explicit c++rt0.o
10102     # does not break anything, and helps significantly (at the cost of a little
10103     # extra space).
10104     freebsd2.2*)
10105       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10106       hardcode_libdir_flag_spec='-R$libdir'
10107       hardcode_direct=yes
10108       hardcode_shlibpath_var=no
10109       ;;
10110
10111     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10112     freebsd2*)
10113       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114       hardcode_direct=yes
10115       hardcode_minus_L=yes
10116       hardcode_shlibpath_var=no
10117       ;;
10118
10119     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10120     freebsd* | dragonfly*)
10121       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10122       hardcode_libdir_flag_spec='-R$libdir'
10123       hardcode_direct=yes
10124       hardcode_shlibpath_var=no
10125       ;;
10126
10127     hpux9*)
10128       if test "$GCC" = yes; then
10129         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10130       else
10131         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'
10132       fi
10133       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10134       hardcode_libdir_separator=:
10135       hardcode_direct=yes
10136
10137       # hardcode_minus_L: Not really in the search PATH,
10138       # but as the default location of the library.
10139       hardcode_minus_L=yes
10140       export_dynamic_flag_spec='${wl}-E'
10141       ;;
10142
10143     hpux10*)
10144       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10145         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10146       else
10147         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10148       fi
10149       if test "$with_gnu_ld" = no; then
10150         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10151         hardcode_libdir_flag_spec_ld='+b $libdir'
10152         hardcode_libdir_separator=:
10153         hardcode_direct=yes
10154         hardcode_direct_absolute=yes
10155         export_dynamic_flag_spec='${wl}-E'
10156         # hardcode_minus_L: Not really in the search PATH,
10157         # but as the default location of the library.
10158         hardcode_minus_L=yes
10159       fi
10160       ;;
10161
10162     hpux11*)
10163       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10164         case $host_cpu in
10165         hppa*64*)
10166           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10167           ;;
10168         ia64*)
10169           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10170           ;;
10171         *)
10172           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10173           ;;
10174         esac
10175       else
10176         case $host_cpu in
10177         hppa*64*)
10178           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10179           ;;
10180         ia64*)
10181           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10182           ;;
10183         *)
10184           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10185           ;;
10186         esac
10187       fi
10188       if test "$with_gnu_ld" = no; then
10189         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10190         hardcode_libdir_separator=:
10191
10192         case $host_cpu in
10193         hppa*64*|ia64*)
10194           hardcode_direct=no
10195           hardcode_shlibpath_var=no
10196           ;;
10197         *)
10198           hardcode_direct=yes
10199           hardcode_direct_absolute=yes
10200           export_dynamic_flag_spec='${wl}-E'
10201
10202           # hardcode_minus_L: Not really in the search PATH,
10203           # but as the default location of the library.
10204           hardcode_minus_L=yes
10205           ;;
10206         esac
10207       fi
10208       ;;
10209
10210     irix5* | irix6* | nonstopux*)
10211       if test "$GCC" = yes; then
10212         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10213         # Try to use the -exported_symbol ld option, if it does not
10214         # work, assume that -exports_file does not work either and
10215         # implicitly export all symbols.
10216         save_LDFLAGS="$LDFLAGS"
10217         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10218         cat >conftest.$ac_ext <<_ACEOF
10219 int foo(void) {}
10220 _ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225   *) ac_try_echo=$ac_try;;
10226 esac
10227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228 $as_echo "$ac_try_echo") >&5
10229   (eval "$ac_link") 2>conftest.er1
10230   ac_status=$?
10231   grep -v '^ *+' conftest.er1 >conftest.err
10232   rm -f conftest.er1
10233   cat conftest.err >&5
10234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } && {
10236          test -z "$ac_c_werror_flag" ||
10237          test ! -s conftest.err
10238        } && test -s conftest$ac_exeext && {
10239          test "$cross_compiling" = yes ||
10240          $as_test_x conftest$ac_exeext
10241        }; then
10242   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10243
10244 else
10245   $as_echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248
10249 fi
10250
10251 rm -rf conftest.dSYM
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253       conftest$ac_exeext conftest.$ac_ext
10254         LDFLAGS="$save_LDFLAGS"
10255       else
10256         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10257         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10258       fi
10259       archive_cmds_need_lc='no'
10260       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10261       hardcode_libdir_separator=:
10262       inherit_rpath=yes
10263       link_all_deplibs=yes
10264       ;;
10265
10266     netbsd*)
10267       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10268         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10269       else
10270         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10271       fi
10272       hardcode_libdir_flag_spec='-R$libdir'
10273       hardcode_direct=yes
10274       hardcode_shlibpath_var=no
10275       ;;
10276
10277     newsos6)
10278       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279       hardcode_direct=yes
10280       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281       hardcode_libdir_separator=:
10282       hardcode_shlibpath_var=no
10283       ;;
10284
10285     *nto* | *qnx*)
10286       ;;
10287
10288     openbsd*)
10289       if test -f /usr/libexec/ld.so; then
10290         hardcode_direct=yes
10291         hardcode_shlibpath_var=no
10292         hardcode_direct_absolute=yes
10293         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10294           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10295           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10296           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10297           export_dynamic_flag_spec='${wl}-E'
10298         else
10299           case $host_os in
10300            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10301              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302              hardcode_libdir_flag_spec='-R$libdir'
10303              ;;
10304            *)
10305              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10306              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10307              ;;
10308           esac
10309         fi
10310       else
10311         ld_shlibs=no
10312       fi
10313       ;;
10314
10315     os2*)
10316       hardcode_libdir_flag_spec='-L$libdir'
10317       hardcode_minus_L=yes
10318       allow_undefined_flag=unsupported
10319       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'
10320       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10321       ;;
10322
10323     osf3*)
10324       if test "$GCC" = yes; then
10325         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10326         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10327       else
10328         allow_undefined_flag=' -expect_unresolved \*'
10329         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10330       fi
10331       archive_cmds_need_lc='no'
10332       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333       hardcode_libdir_separator=:
10334       ;;
10335
10336     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10337       if test "$GCC" = yes; then
10338         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10339         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10340         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341       else
10342         allow_undefined_flag=' -expect_unresolved \*'
10343         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10344         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~
10345         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10346
10347         # Both c and cxx compiler support -rpath directly
10348         hardcode_libdir_flag_spec='-rpath $libdir'
10349       fi
10350       archive_cmds_need_lc='no'
10351       hardcode_libdir_separator=:
10352       ;;
10353
10354     solaris*)
10355       no_undefined_flag=' -z defs'
10356       if test "$GCC" = yes; then
10357         wlarc='${wl}'
10358         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10359         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10361       else
10362         case `$CC -V 2>&1` in
10363         *"Compilers 5.0"*)
10364           wlarc=''
10365           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10367           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10368           ;;
10369         *)
10370           wlarc='${wl}'
10371           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10372           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10373           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10374           ;;
10375         esac
10376       fi
10377       hardcode_libdir_flag_spec='-R$libdir'
10378       hardcode_shlibpath_var=no
10379       case $host_os in
10380       solaris2.[0-5] | solaris2.[0-5].*) ;;
10381       *)
10382         # The compiler driver will combine and reorder linker options,
10383         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10384         # but is careful enough not to reorder.
10385         # Supported since Solaris 2.6 (maybe 2.5.1?)
10386         if test "$GCC" = yes; then
10387           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10388         else
10389           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10390         fi
10391         ;;
10392       esac
10393       link_all_deplibs=yes
10394       ;;
10395
10396     sunos4*)
10397       if test "x$host_vendor" = xsequent; then
10398         # Use $CC to link under sequent, because it throws in some extra .o
10399         # files that make .init and .fini sections work.
10400         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10401       else
10402         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10403       fi
10404       hardcode_libdir_flag_spec='-L$libdir'
10405       hardcode_direct=yes
10406       hardcode_minus_L=yes
10407       hardcode_shlibpath_var=no
10408       ;;
10409
10410     sysv4)
10411       case $host_vendor in
10412         sni)
10413           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414           hardcode_direct=yes # is this really true???
10415         ;;
10416         siemens)
10417           ## LD is ld it makes a PLAMLIB
10418           ## CC just makes a GrossModule.
10419           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10420           reload_cmds='$CC -r -o $output$reload_objs'
10421           hardcode_direct=no
10422         ;;
10423         motorola)
10424           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10426         ;;
10427       esac
10428       runpath_var='LD_RUN_PATH'
10429       hardcode_shlibpath_var=no
10430       ;;
10431
10432     sysv4.3*)
10433       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434       hardcode_shlibpath_var=no
10435       export_dynamic_flag_spec='-Bexport'
10436       ;;
10437
10438     sysv4*MP*)
10439       if test -d /usr/nec; then
10440         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441         hardcode_shlibpath_var=no
10442         runpath_var=LD_RUN_PATH
10443         hardcode_runpath_var=yes
10444         ld_shlibs=yes
10445       fi
10446       ;;
10447
10448     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10449       no_undefined_flag='${wl}-z,text'
10450       archive_cmds_need_lc=no
10451       hardcode_shlibpath_var=no
10452       runpath_var='LD_RUN_PATH'
10453
10454       if test "$GCC" = yes; then
10455         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457       else
10458         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460       fi
10461       ;;
10462
10463     sysv5* | sco3.2v5* | sco5v6*)
10464       # Note: We can NOT use -z defs as we might desire, because we do not
10465       # link with -lc, and that would cause any symbols used from libc to
10466       # always be unresolved, which means just about no library would
10467       # ever link correctly.  If we're not using GNU ld we use -z text
10468       # though, which does catch some bad symbols but isn't as heavy-handed
10469       # as -z defs.
10470       no_undefined_flag='${wl}-z,text'
10471       allow_undefined_flag='${wl}-z,nodefs'
10472       archive_cmds_need_lc=no
10473       hardcode_shlibpath_var=no
10474       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10475       hardcode_libdir_separator=':'
10476       link_all_deplibs=yes
10477       export_dynamic_flag_spec='${wl}-Bexport'
10478       runpath_var='LD_RUN_PATH'
10479
10480       if test "$GCC" = yes; then
10481         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483       else
10484         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486       fi
10487       ;;
10488
10489     uts4*)
10490       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491       hardcode_libdir_flag_spec='-L$libdir'
10492       hardcode_shlibpath_var=no
10493       ;;
10494
10495     *)
10496       ld_shlibs=no
10497       ;;
10498     esac
10499
10500     if test x$host_vendor = xsni; then
10501       case $host in
10502       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10503         export_dynamic_flag_spec='${wl}-Blargedynsym'
10504         ;;
10505       esac
10506     fi
10507   fi
10508
10509 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10510 $as_echo "$ld_shlibs" >&6; }
10511 test "$ld_shlibs" = no && can_build_shared=no
10512
10513 with_gnu_ld=$with_gnu_ld
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529 #
10530 # Do we need to explicitly link libc?
10531 #
10532 case "x$archive_cmds_need_lc" in
10533 x|xyes)
10534   # Assume -lc should be added
10535   archive_cmds_need_lc=yes
10536
10537   if test "$enable_shared" = yes && test "$GCC" = yes; then
10538     case $archive_cmds in
10539     *'~'*)
10540       # FIXME: we may have to deal with multi-command sequences.
10541       ;;
10542     '$CC '*)
10543       # Test whether the compiler implicitly links with -lc since on some
10544       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10545       # to ld, don't add -lc before -lgcc.
10546       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10547 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10548       $RM conftest*
10549       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10550
10551       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552   (eval $ac_compile) 2>&5
10553   ac_status=$?
10554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } 2>conftest.err; then
10556         soname=conftest
10557         lib=conftest
10558         libobjs=conftest.$ac_objext
10559         deplibs=
10560         wl=$lt_prog_compiler_wl
10561         pic_flag=$lt_prog_compiler_pic
10562         compiler_flags=-v
10563         linker_flags=-v
10564         verstring=
10565         output_objdir=.
10566         libname=conftest
10567         lt_save_allow_undefined_flag=$allow_undefined_flag
10568         allow_undefined_flag=
10569         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10570   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10571   ac_status=$?
10572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); }
10574         then
10575           archive_cmds_need_lc=no
10576         else
10577           archive_cmds_need_lc=yes
10578         fi
10579         allow_undefined_flag=$lt_save_allow_undefined_flag
10580       else
10581         cat conftest.err 1>&5
10582       fi
10583       $RM conftest*
10584       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10585 $as_echo "$archive_cmds_need_lc" >&6; }
10586       ;;
10587     esac
10588   fi
10589   ;;
10590 esac
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10750
10751 if test "$GCC" = yes; then
10752   case $host_os in
10753     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10754     *) lt_awk_arg="/^libraries:/" ;;
10755   esac
10756   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10757   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10758     # if the path contains ";" then we assume it to be the separator
10759     # otherwise default to the standard path separator (i.e. ":") - it is
10760     # assumed that no part of a normal pathname contains ";" but that should
10761     # okay in the real world where ";" in dirpaths is itself problematic.
10762     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10763   else
10764     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10765   fi
10766   # Ok, now we have the path, separated by spaces, we can step through it
10767   # and add multilib dir if necessary.
10768   lt_tmp_lt_search_path_spec=
10769   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10770   for lt_sys_path in $lt_search_path_spec; do
10771     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10772       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10773     else
10774       test -d "$lt_sys_path" && \
10775         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10776     fi
10777   done
10778   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10779 BEGIN {RS=" "; FS="/|\n";} {
10780   lt_foo="";
10781   lt_count=0;
10782   for (lt_i = NF; lt_i > 0; lt_i--) {
10783     if ($lt_i != "" && $lt_i != ".") {
10784       if ($lt_i == "..") {
10785         lt_count++;
10786       } else {
10787         if (lt_count == 0) {
10788           lt_foo="/" $lt_i lt_foo;
10789         } else {
10790           lt_count--;
10791         }
10792       }
10793     }
10794   }
10795   if (lt_foo != "") { lt_freq[lt_foo]++; }
10796   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10797 }'`
10798   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10799 else
10800   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10801 fi
10802 library_names_spec=
10803 libname_spec='lib$name'
10804 soname_spec=
10805 shrext_cmds=".so"
10806 postinstall_cmds=
10807 postuninstall_cmds=
10808 finish_cmds=
10809 finish_eval=
10810 shlibpath_var=
10811 shlibpath_overrides_runpath=unknown
10812 version_type=none
10813 dynamic_linker="$host_os ld.so"
10814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10815 need_lib_prefix=unknown
10816 hardcode_into_libs=no
10817
10818 # when you set need_version to no, make sure it does not cause -set_version
10819 # flags to be left without arguments
10820 need_version=unknown
10821
10822 case $host_os in
10823 aix3*)
10824   version_type=linux
10825   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10826   shlibpath_var=LIBPATH
10827
10828   # AIX 3 has no versioning support, so we append a major version to the name.
10829   soname_spec='${libname}${release}${shared_ext}$major'
10830   ;;
10831
10832 aix[4-9]*)
10833   version_type=linux
10834   need_lib_prefix=no
10835   need_version=no
10836   hardcode_into_libs=yes
10837   if test "$host_cpu" = ia64; then
10838     # AIX 5 supports IA64
10839     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10840     shlibpath_var=LD_LIBRARY_PATH
10841   else
10842     # With GCC up to 2.95.x, collect2 would create an import file
10843     # for dependence libraries.  The import file would start with
10844     # the line `#! .'.  This would cause the generated library to
10845     # depend on `.', always an invalid library.  This was fixed in
10846     # development snapshots of GCC prior to 3.0.
10847     case $host_os in
10848       aix4 | aix4.[01] | aix4.[01].*)
10849       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10850            echo ' yes '
10851            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10852         :
10853       else
10854         can_build_shared=no
10855       fi
10856       ;;
10857     esac
10858     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10859     # soname into executable. Probably we can add versioning support to
10860     # collect2, so additional links can be useful in future.
10861     if test "$aix_use_runtimelinking" = yes; then
10862       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10863       # instead of lib<name>.a to let people know that these are not
10864       # typical AIX shared libraries.
10865       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866     else
10867       # We preserve .a as extension for shared libraries through AIX4.2
10868       # and later when we are not doing run time linking.
10869       library_names_spec='${libname}${release}.a $libname.a'
10870       soname_spec='${libname}${release}${shared_ext}$major'
10871     fi
10872     shlibpath_var=LIBPATH
10873   fi
10874   ;;
10875
10876 amigaos*)
10877   case $host_cpu in
10878   powerpc)
10879     # Since July 2007 AmigaOS4 officially supports .so libraries.
10880     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882     ;;
10883   m68k)
10884     library_names_spec='$libname.ixlibrary $libname.a'
10885     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10886     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10887     ;;
10888   esac
10889   ;;
10890
10891 beos*)
10892   library_names_spec='${libname}${shared_ext}'
10893   dynamic_linker="$host_os ld.so"
10894   shlibpath_var=LIBRARY_PATH
10895   ;;
10896
10897 bsdi[45]*)
10898   version_type=linux
10899   need_version=no
10900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901   soname_spec='${libname}${release}${shared_ext}$major'
10902   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10903   shlibpath_var=LD_LIBRARY_PATH
10904   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10905   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10906   # the default ld.so.conf also contains /usr/contrib/lib and
10907   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10908   # libtool to hard-code these into programs
10909   ;;
10910
10911 cygwin* | mingw* | pw32* | cegcc*)
10912   version_type=windows
10913   shrext_cmds=".dll"
10914   need_version=no
10915   need_lib_prefix=no
10916
10917   case $GCC,$host_os in
10918   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10919     library_names_spec='$libname.dll.a'
10920     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10921     postinstall_cmds='base_file=`basename \${file}`~
10922       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10923       dldir=$destdir/`dirname \$dlpath`~
10924       test -d \$dldir || mkdir -p \$dldir~
10925       $install_prog $dir/$dlname \$dldir/$dlname~
10926       chmod a+x \$dldir/$dlname~
10927       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10928         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10929       fi'
10930     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10931       dlpath=$dir/\$dldll~
10932        $RM \$dlpath'
10933     shlibpath_overrides_runpath=yes
10934
10935     case $host_os in
10936     cygwin*)
10937       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10938       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10939       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10940       ;;
10941     mingw* | cegcc*)
10942       # MinGW DLLs use traditional 'lib' prefix
10943       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10944       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10945       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10946         # It is most probably a Windows format PATH printed by
10947         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10948         # path with ; separators, and with drive letters. We can handle the
10949         # drive letters (cygwin fileutils understands them), so leave them,
10950         # especially as we might pass files found there to a mingw objdump,
10951         # which wouldn't understand a cygwinified path. Ahh.
10952         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10953       else
10954         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10955       fi
10956       ;;
10957     pw32*)
10958       # pw32 DLLs use 'pw' prefix rather than 'lib'
10959       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10960       ;;
10961     esac
10962     ;;
10963
10964   *)
10965     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10966     ;;
10967   esac
10968   dynamic_linker='Win32 ld.exe'
10969   # FIXME: first we should search . and the directory the executable is in
10970   shlibpath_var=PATH
10971   ;;
10972
10973 darwin* | rhapsody*)
10974   dynamic_linker="$host_os dyld"
10975   version_type=darwin
10976   need_lib_prefix=no
10977   need_version=no
10978   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10979   soname_spec='${libname}${release}${major}$shared_ext'
10980   shlibpath_overrides_runpath=yes
10981   shlibpath_var=DYLD_LIBRARY_PATH
10982   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10983
10984   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10985   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10986   ;;
10987
10988 dgux*)
10989   version_type=linux
10990   need_lib_prefix=no
10991   need_version=no
10992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10993   soname_spec='${libname}${release}${shared_ext}$major'
10994   shlibpath_var=LD_LIBRARY_PATH
10995   ;;
10996
10997 freebsd1*)
10998   dynamic_linker=no
10999   ;;
11000
11001 freebsd* | dragonfly*)
11002   # DragonFly does not have aout.  When/if they implement a new
11003   # versioning mechanism, adjust this.
11004   if test -x /usr/bin/objformat; then
11005     objformat=`/usr/bin/objformat`
11006   else
11007     case $host_os in
11008     freebsd[123]*) objformat=aout ;;
11009     *) objformat=elf ;;
11010     esac
11011   fi
11012   version_type=freebsd-$objformat
11013   case $version_type in
11014     freebsd-elf*)
11015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11016       need_version=no
11017       need_lib_prefix=no
11018       ;;
11019     freebsd-*)
11020       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11021       need_version=yes
11022       ;;
11023   esac
11024   shlibpath_var=LD_LIBRARY_PATH
11025   case $host_os in
11026   freebsd2*)
11027     shlibpath_overrides_runpath=yes
11028     ;;
11029   freebsd3.[01]* | freebsdelf3.[01]*)
11030     shlibpath_overrides_runpath=yes
11031     hardcode_into_libs=yes
11032     ;;
11033   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11034   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11035     shlibpath_overrides_runpath=no
11036     hardcode_into_libs=yes
11037     ;;
11038   *) # from 4.6 on, and DragonFly
11039     shlibpath_overrides_runpath=yes
11040     hardcode_into_libs=yes
11041     ;;
11042   esac
11043   ;;
11044
11045 gnu*)
11046   version_type=linux
11047   need_lib_prefix=no
11048   need_version=no
11049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11050   soname_spec='${libname}${release}${shared_ext}$major'
11051   shlibpath_var=LD_LIBRARY_PATH
11052   hardcode_into_libs=yes
11053   ;;
11054
11055 hpux9* | hpux10* | hpux11*)
11056   # Give a soname corresponding to the major version so that dld.sl refuses to
11057   # link against other versions.
11058   version_type=sunos
11059   need_lib_prefix=no
11060   need_version=no
11061   case $host_cpu in
11062   ia64*)
11063     shrext_cmds='.so'
11064     hardcode_into_libs=yes
11065     dynamic_linker="$host_os dld.so"
11066     shlibpath_var=LD_LIBRARY_PATH
11067     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069     soname_spec='${libname}${release}${shared_ext}$major'
11070     if test "X$HPUX_IA64_MODE" = X32; then
11071       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11072     else
11073       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11074     fi
11075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11076     ;;
11077   hppa*64*)
11078     shrext_cmds='.sl'
11079     hardcode_into_libs=yes
11080     dynamic_linker="$host_os dld.sl"
11081     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11082     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084     soname_spec='${libname}${release}${shared_ext}$major'
11085     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11086     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11087     ;;
11088   *)
11089     shrext_cmds='.sl'
11090     dynamic_linker="$host_os dld.sl"
11091     shlibpath_var=SHLIB_PATH
11092     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094     soname_spec='${libname}${release}${shared_ext}$major'
11095     ;;
11096   esac
11097   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11098   postinstall_cmds='chmod 555 $lib'
11099   ;;
11100
11101 interix[3-9]*)
11102   version_type=linux
11103   need_lib_prefix=no
11104   need_version=no
11105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11106   soname_spec='${libname}${release}${shared_ext}$major'
11107   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=no
11110   hardcode_into_libs=yes
11111   ;;
11112
11113 irix5* | irix6* | nonstopux*)
11114   case $host_os in
11115     nonstopux*) version_type=nonstopux ;;
11116     *)
11117         if test "$lt_cv_prog_gnu_ld" = yes; then
11118                 version_type=linux
11119         else
11120                 version_type=irix
11121         fi ;;
11122   esac
11123   need_lib_prefix=no
11124   need_version=no
11125   soname_spec='${libname}${release}${shared_ext}$major'
11126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11127   case $host_os in
11128   irix5* | nonstopux*)
11129     libsuff= shlibsuff=
11130     ;;
11131   *)
11132     case $LD in # libtool.m4 will add one of these switches to LD
11133     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11134       libsuff= shlibsuff= libmagic=32-bit;;
11135     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11136       libsuff=32 shlibsuff=N32 libmagic=N32;;
11137     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11138       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11139     *) libsuff= shlibsuff= libmagic=never-match;;
11140     esac
11141     ;;
11142   esac
11143   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11144   shlibpath_overrides_runpath=no
11145   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11146   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11147   hardcode_into_libs=yes
11148   ;;
11149
11150 # No shared lib support for Linux oldld, aout, or coff.
11151 linux*oldld* | linux*aout* | linux*coff*)
11152   dynamic_linker=no
11153   ;;
11154
11155 # This must be Linux ELF.
11156 linux* | k*bsd*-gnu)
11157   version_type=linux
11158   need_lib_prefix=no
11159   need_version=no
11160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161   soname_spec='${libname}${release}${shared_ext}$major'
11162   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11163   shlibpath_var=LD_LIBRARY_PATH
11164   shlibpath_overrides_runpath=no
11165   # Some binutils ld are patched to set DT_RUNPATH
11166   save_LDFLAGS=$LDFLAGS
11167   save_libdir=$libdir
11168   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11169        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11170   cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h.  */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h.  */
11176
11177 int
11178 main ()
11179 {
11180
11181   ;
11182   return 0;
11183 }
11184 _ACEOF
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (ac_try="$ac_link"
11187 case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193   (eval "$ac_link") 2>conftest.er1
11194   ac_status=$?
11195   grep -v '^ *+' conftest.er1 >conftest.err
11196   rm -f conftest.er1
11197   cat conftest.err >&5
11198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } && {
11200          test -z "$ac_c_werror_flag" ||
11201          test ! -s conftest.err
11202        } && test -s conftest$ac_exeext && {
11203          test "$cross_compiling" = yes ||
11204          $as_test_x conftest$ac_exeext
11205        }; then
11206   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11207   shlibpath_overrides_runpath=yes
11208 fi
11209
11210 else
11211   $as_echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214
11215 fi
11216
11217 rm -rf conftest.dSYM
11218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11219       conftest$ac_exeext conftest.$ac_ext
11220   LDFLAGS=$save_LDFLAGS
11221   libdir=$save_libdir
11222
11223   # This implies no fast_install, which is unacceptable.
11224   # Some rework will be needed to allow for fast_install
11225   # before this can be enabled.
11226   hardcode_into_libs=yes
11227
11228   # Add ABI-specific directories to the system library path.
11229   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11230
11231   # Append ld.so.conf contents to the search path
11232   if test -f /etc/ld.so.conf; then
11233     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11234     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11235   fi
11236
11237   # We used to test for /lib/ld.so.1 and disable shared libraries on
11238   # powerpc, because MkLinux only supported shared libraries with the
11239   # GNU dynamic linker.  Since this was broken with cross compilers,
11240   # most powerpc-linux boxes support dynamic linking these days and
11241   # people can always --disable-shared, the test was removed, and we
11242   # assume the GNU/Linux dynamic linker is in use.
11243   dynamic_linker='GNU/Linux ld.so'
11244   ;;
11245
11246 netbsd*)
11247   version_type=sunos
11248   need_lib_prefix=no
11249   need_version=no
11250   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11252     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11253     dynamic_linker='NetBSD (a.out) ld.so'
11254   else
11255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11256     soname_spec='${libname}${release}${shared_ext}$major'
11257     dynamic_linker='NetBSD ld.elf_so'
11258   fi
11259   shlibpath_var=LD_LIBRARY_PATH
11260   shlibpath_overrides_runpath=yes
11261   hardcode_into_libs=yes
11262   ;;
11263
11264 newsos6)
11265   version_type=linux
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267   shlibpath_var=LD_LIBRARY_PATH
11268   shlibpath_overrides_runpath=yes
11269   ;;
11270
11271 *nto* | *qnx*)
11272   version_type=qnx
11273   need_lib_prefix=no
11274   need_version=no
11275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276   soname_spec='${libname}${release}${shared_ext}$major'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   shlibpath_overrides_runpath=no
11279   hardcode_into_libs=yes
11280   dynamic_linker='ldqnx.so'
11281   ;;
11282
11283 openbsd*)
11284   version_type=sunos
11285   sys_lib_dlsearch_path_spec="/usr/lib"
11286   need_lib_prefix=no
11287   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11288   case $host_os in
11289     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11290     *)                          need_version=no  ;;
11291   esac
11292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11294   shlibpath_var=LD_LIBRARY_PATH
11295   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11296     case $host_os in
11297       openbsd2.[89] | openbsd2.[89].*)
11298         shlibpath_overrides_runpath=no
11299         ;;
11300       *)
11301         shlibpath_overrides_runpath=yes
11302         ;;
11303       esac
11304   else
11305     shlibpath_overrides_runpath=yes
11306   fi
11307   ;;
11308
11309 os2*)
11310   libname_spec='$name'
11311   shrext_cmds=".dll"
11312   need_lib_prefix=no
11313   library_names_spec='$libname${shared_ext} $libname.a'
11314   dynamic_linker='OS/2 ld.exe'
11315   shlibpath_var=LIBPATH
11316   ;;
11317
11318 osf3* | osf4* | osf5*)
11319   version_type=osf
11320   need_lib_prefix=no
11321   need_version=no
11322   soname_spec='${libname}${release}${shared_ext}$major'
11323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324   shlibpath_var=LD_LIBRARY_PATH
11325   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11326   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11327   ;;
11328
11329 rdos*)
11330   dynamic_linker=no
11331   ;;
11332
11333 solaris*)
11334   version_type=linux
11335   need_lib_prefix=no
11336   need_version=no
11337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338   soname_spec='${libname}${release}${shared_ext}$major'
11339   shlibpath_var=LD_LIBRARY_PATH
11340   shlibpath_overrides_runpath=yes
11341   hardcode_into_libs=yes
11342   # ldd complains unless libraries are executable
11343   postinstall_cmds='chmod +x $lib'
11344   ;;
11345
11346 sunos4*)
11347   version_type=sunos
11348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11349   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11350   shlibpath_var=LD_LIBRARY_PATH
11351   shlibpath_overrides_runpath=yes
11352   if test "$with_gnu_ld" = yes; then
11353     need_lib_prefix=no
11354   fi
11355   need_version=yes
11356   ;;
11357
11358 sysv4 | sysv4.3*)
11359   version_type=linux
11360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361   soname_spec='${libname}${release}${shared_ext}$major'
11362   shlibpath_var=LD_LIBRARY_PATH
11363   case $host_vendor in
11364     sni)
11365       shlibpath_overrides_runpath=no
11366       need_lib_prefix=no
11367       runpath_var=LD_RUN_PATH
11368       ;;
11369     siemens)
11370       need_lib_prefix=no
11371       ;;
11372     motorola)
11373       need_lib_prefix=no
11374       need_version=no
11375       shlibpath_overrides_runpath=no
11376       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11377       ;;
11378   esac
11379   ;;
11380
11381 sysv4*MP*)
11382   if test -d /usr/nec ;then
11383     version_type=linux
11384     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11385     soname_spec='$libname${shared_ext}.$major'
11386     shlibpath_var=LD_LIBRARY_PATH
11387   fi
11388   ;;
11389
11390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11391   version_type=freebsd-elf
11392   need_lib_prefix=no
11393   need_version=no
11394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11395   soname_spec='${libname}${release}${shared_ext}$major'
11396   shlibpath_var=LD_LIBRARY_PATH
11397   shlibpath_overrides_runpath=yes
11398   hardcode_into_libs=yes
11399   if test "$with_gnu_ld" = yes; then
11400     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11401   else
11402     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11403     case $host_os in
11404       sco3.2v5*)
11405         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11406         ;;
11407     esac
11408   fi
11409   sys_lib_dlsearch_path_spec='/usr/lib'
11410   ;;
11411
11412 tpf*)
11413   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11414   version_type=linux
11415   need_lib_prefix=no
11416   need_version=no
11417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418   shlibpath_var=LD_LIBRARY_PATH
11419   shlibpath_overrides_runpath=no
11420   hardcode_into_libs=yes
11421   ;;
11422
11423 uts4*)
11424   version_type=linux
11425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426   soname_spec='${libname}${release}${shared_ext}$major'
11427   shlibpath_var=LD_LIBRARY_PATH
11428   ;;
11429
11430 *)
11431   dynamic_linker=no
11432   ;;
11433 esac
11434 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11435 $as_echo "$dynamic_linker" >&6; }
11436 test "$dynamic_linker" = no && can_build_shared=no
11437
11438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11439 if test "$GCC" = yes; then
11440   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11441 fi
11442
11443 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11444   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11445 fi
11446 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11447   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11448 fi
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11538 hardcode_action=
11539 if test -n "$hardcode_libdir_flag_spec" ||
11540    test -n "$runpath_var" ||
11541    test "X$hardcode_automatic" = "Xyes" ; then
11542
11543   # We can hardcode non-existent directories.
11544   if test "$hardcode_direct" != no &&
11545      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11546      # have to relink, otherwise we might link with an installed library
11547      # when we should be linking with a yet-to-be-installed one
11548      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11549      test "$hardcode_minus_L" != no; then
11550     # Linking always hardcodes the temporary library directory.
11551     hardcode_action=relink
11552   else
11553     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11554     hardcode_action=immediate
11555   fi
11556 else
11557   # We cannot hardcode anything, or else we can only hardcode existing
11558   # directories.
11559   hardcode_action=unsupported
11560 fi
11561 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11562 $as_echo "$hardcode_action" >&6; }
11563
11564 if test "$hardcode_action" = relink ||
11565    test "$inherit_rpath" = yes; then
11566   # Fast installation is not supported
11567   enable_fast_install=no
11568 elif test "$shlibpath_overrides_runpath" = yes ||
11569      test "$enable_shared" = no; then
11570   # Fast installation is not necessary
11571   enable_fast_install=needless
11572 fi
11573
11574
11575
11576
11577
11578
11579   if test "x$enable_dlopen" != xyes; then
11580   enable_dlopen=unknown
11581   enable_dlopen_self=unknown
11582   enable_dlopen_self_static=unknown
11583 else
11584   lt_cv_dlopen=no
11585   lt_cv_dlopen_libs=
11586
11587   case $host_os in
11588   beos*)
11589     lt_cv_dlopen="load_add_on"
11590     lt_cv_dlopen_libs=
11591     lt_cv_dlopen_self=yes
11592     ;;
11593
11594   mingw* | pw32* | cegcc*)
11595     lt_cv_dlopen="LoadLibrary"
11596     lt_cv_dlopen_libs=
11597     ;;
11598
11599   cygwin*)
11600     lt_cv_dlopen="dlopen"
11601     lt_cv_dlopen_libs=
11602     ;;
11603
11604   darwin*)
11605   # if libdl is installed we need to link against it
11606     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11609   $as_echo_n "(cached) " >&6
11610 else
11611   ac_check_lib_save_LIBS=$LIBS
11612 LIBS="-ldl  $LIBS"
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h.  */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h.  */
11619
11620 /* Override any GCC internal prototype to avoid an error.
11621    Use char because int might match the return type of a GCC
11622    builtin and then its argument prototype would still apply.  */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char dlopen ();
11627 int
11628 main ()
11629 {
11630 return dlopen ();
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (ac_try="$ac_link"
11637 case "(($ac_try" in
11638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639   *) ac_try_echo=$ac_try;;
11640 esac
11641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11642 $as_echo "$ac_try_echo") >&5
11643   (eval "$ac_link") 2>conftest.er1
11644   ac_status=$?
11645   grep -v '^ *+' conftest.er1 >conftest.err
11646   rm -f conftest.er1
11647   cat conftest.err >&5
11648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } && {
11650          test -z "$ac_c_werror_flag" ||
11651          test ! -s conftest.err
11652        } && test -s conftest$ac_exeext && {
11653          test "$cross_compiling" = yes ||
11654          $as_test_x conftest$ac_exeext
11655        }; then
11656   ac_cv_lib_dl_dlopen=yes
11657 else
11658   $as_echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661         ac_cv_lib_dl_dlopen=no
11662 fi
11663
11664 rm -rf conftest.dSYM
11665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11666       conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11671 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11672   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11673 else
11674
11675     lt_cv_dlopen="dyld"
11676     lt_cv_dlopen_libs=
11677     lt_cv_dlopen_self=yes
11678
11679 fi
11680
11681     ;;
11682
11683   *)
11684     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11685 $as_echo_n "checking for shl_load... " >&6; }
11686 if test "${ac_cv_func_shl_load+set}" = set; then
11687   $as_echo_n "(cached) " >&6
11688 else
11689   cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h.  */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h.  */
11695 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11697 #define shl_load innocuous_shl_load
11698
11699 /* System header to define __stub macros and hopefully few prototypes,
11700     which can conflict with char shl_load (); below.
11701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702     <limits.h> exists even on freestanding compilers.  */
11703
11704 #ifdef __STDC__
11705 # include <limits.h>
11706 #else
11707 # include <assert.h>
11708 #endif
11709
11710 #undef shl_load
11711
11712 /* Override any GCC internal prototype to avoid an error.
11713    Use char because int might match the return type of a GCC
11714    builtin and then its argument prototype would still apply.  */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char shl_load ();
11719 /* The GNU C library defines this for functions which it implements
11720     to always fail with ENOSYS.  Some functions are actually named
11721     something starting with __ and the normal name is an alias.  */
11722 #if defined __stub_shl_load || defined __stub___shl_load
11723 choke me
11724 #endif
11725
11726 int
11727 main ()
11728 {
11729 return shl_load ();
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (ac_try="$ac_link"
11736 case "(($ac_try" in
11737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738   *) ac_try_echo=$ac_try;;
11739 esac
11740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741 $as_echo "$ac_try_echo") >&5
11742   (eval "$ac_link") 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } && {
11749          test -z "$ac_c_werror_flag" ||
11750          test ! -s conftest.err
11751        } && test -s conftest$ac_exeext && {
11752          test "$cross_compiling" = yes ||
11753          $as_test_x conftest$ac_exeext
11754        }; then
11755   ac_cv_func_shl_load=yes
11756 else
11757   $as_echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760         ac_cv_func_shl_load=no
11761 fi
11762
11763 rm -rf conftest.dSYM
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765       conftest$ac_exeext conftest.$ac_ext
11766 fi
11767 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11768 $as_echo "$ac_cv_func_shl_load" >&6; }
11769 if test "x$ac_cv_func_shl_load" = x""yes; then
11770   lt_cv_dlopen="shl_load"
11771 else
11772   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11773 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11774 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11775   $as_echo_n "(cached) " >&6
11776 else
11777   ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-ldld  $LIBS"
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h.  */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h.  */
11785
11786 /* Override any GCC internal prototype to avoid an error.
11787    Use char because int might match the return type of a GCC
11788    builtin and then its argument prototype would still apply.  */
11789 #ifdef __cplusplus
11790 extern "C"
11791 #endif
11792 char shl_load ();
11793 int
11794 main ()
11795 {
11796 return shl_load ();
11797   ;
11798   return 0;
11799 }
11800 _ACEOF
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (ac_try="$ac_link"
11803 case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11808 $as_echo "$ac_try_echo") >&5
11809   (eval "$ac_link") 2>conftest.er1
11810   ac_status=$?
11811   grep -v '^ *+' conftest.er1 >conftest.err
11812   rm -f conftest.er1
11813   cat conftest.err >&5
11814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } && {
11816          test -z "$ac_c_werror_flag" ||
11817          test ! -s conftest.err
11818        } && test -s conftest$ac_exeext && {
11819          test "$cross_compiling" = yes ||
11820          $as_test_x conftest$ac_exeext
11821        }; then
11822   ac_cv_lib_dld_shl_load=yes
11823 else
11824   $as_echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         ac_cv_lib_dld_shl_load=no
11828 fi
11829
11830 rm -rf conftest.dSYM
11831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11832       conftest$ac_exeext conftest.$ac_ext
11833 LIBS=$ac_check_lib_save_LIBS
11834 fi
11835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11836 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11837 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11838   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11839 else
11840   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11841 $as_echo_n "checking for dlopen... " >&6; }
11842 if test "${ac_cv_func_dlopen+set}" = set; then
11843   $as_echo_n "(cached) " >&6
11844 else
11845   cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h.  */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h.  */
11851 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11853 #define dlopen innocuous_dlopen
11854
11855 /* System header to define __stub macros and hopefully few prototypes,
11856     which can conflict with char dlopen (); below.
11857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11858     <limits.h> exists even on freestanding compilers.  */
11859
11860 #ifdef __STDC__
11861 # include <limits.h>
11862 #else
11863 # include <assert.h>
11864 #endif
11865
11866 #undef dlopen
11867
11868 /* Override any GCC internal prototype to avoid an error.
11869    Use char because int might match the return type of a GCC
11870    builtin and then its argument prototype would still apply.  */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 char dlopen ();
11875 /* The GNU C library defines this for functions which it implements
11876     to always fail with ENOSYS.  Some functions are actually named
11877     something starting with __ and the normal name is an alias.  */
11878 #if defined __stub_dlopen || defined __stub___dlopen
11879 choke me
11880 #endif
11881
11882 int
11883 main ()
11884 {
11885 return dlopen ();
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 rm -f conftest.$ac_objext conftest$ac_exeext
11891 if { (ac_try="$ac_link"
11892 case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11897 $as_echo "$ac_try_echo") >&5
11898   (eval "$ac_link") 2>conftest.er1
11899   ac_status=$?
11900   grep -v '^ *+' conftest.er1 >conftest.err
11901   rm -f conftest.er1
11902   cat conftest.err >&5
11903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } && {
11905          test -z "$ac_c_werror_flag" ||
11906          test ! -s conftest.err
11907        } && test -s conftest$ac_exeext && {
11908          test "$cross_compiling" = yes ||
11909          $as_test_x conftest$ac_exeext
11910        }; then
11911   ac_cv_func_dlopen=yes
11912 else
11913   $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916         ac_cv_func_dlopen=no
11917 fi
11918
11919 rm -rf conftest.dSYM
11920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11921       conftest$ac_exeext conftest.$ac_ext
11922 fi
11923 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11924 $as_echo "$ac_cv_func_dlopen" >&6; }
11925 if test "x$ac_cv_func_dlopen" = x""yes; then
11926   lt_cv_dlopen="dlopen"
11927 else
11928   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11929 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11931   $as_echo_n "(cached) " >&6
11932 else
11933   ac_check_lib_save_LIBS=$LIBS
11934 LIBS="-ldl  $LIBS"
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941
11942 /* Override any GCC internal prototype to avoid an error.
11943    Use char because int might match the return type of a GCC
11944    builtin and then its argument prototype would still apply.  */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char dlopen ();
11949 int
11950 main ()
11951 {
11952 return dlopen ();
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (ac_try="$ac_link"
11959 case "(($ac_try" in
11960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961   *) ac_try_echo=$ac_try;;
11962 esac
11963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11964 $as_echo "$ac_try_echo") >&5
11965   (eval "$ac_link") 2>conftest.er1
11966   ac_status=$?
11967   grep -v '^ *+' conftest.er1 >conftest.err
11968   rm -f conftest.er1
11969   cat conftest.err >&5
11970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); } && {
11972          test -z "$ac_c_werror_flag" ||
11973          test ! -s conftest.err
11974        } && test -s conftest$ac_exeext && {
11975          test "$cross_compiling" = yes ||
11976          $as_test_x conftest$ac_exeext
11977        }; then
11978   ac_cv_lib_dl_dlopen=yes
11979 else
11980   $as_echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983         ac_cv_lib_dl_dlopen=no
11984 fi
11985
11986 rm -rf conftest.dSYM
11987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11988       conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11990 fi
11991 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11992 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11993 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11994   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11995 else
11996   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11997 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11999   $as_echo_n "(cached) " >&6
12000 else
12001   ac_check_lib_save_LIBS=$LIBS
12002 LIBS="-lsvld  $LIBS"
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009
12010 /* Override any GCC internal prototype to avoid an error.
12011    Use char because int might match the return type of a GCC
12012    builtin and then its argument prototype would still apply.  */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char dlopen ();
12017 int
12018 main ()
12019 {
12020 return dlopen ();
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033   (eval "$ac_link") 2>conftest.er1
12034   ac_status=$?
12035   grep -v '^ *+' conftest.er1 >conftest.err
12036   rm -f conftest.er1
12037   cat conftest.err >&5
12038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); } && {
12040          test -z "$ac_c_werror_flag" ||
12041          test ! -s conftest.err
12042        } && test -s conftest$ac_exeext && {
12043          test "$cross_compiling" = yes ||
12044          $as_test_x conftest$ac_exeext
12045        }; then
12046   ac_cv_lib_svld_dlopen=yes
12047 else
12048   $as_echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051         ac_cv_lib_svld_dlopen=no
12052 fi
12053
12054 rm -rf conftest.dSYM
12055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12056       conftest$ac_exeext conftest.$ac_ext
12057 LIBS=$ac_check_lib_save_LIBS
12058 fi
12059 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12060 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12061 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12062   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12063 else
12064   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12065 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12066 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12067   $as_echo_n "(cached) " >&6
12068 else
12069   ac_check_lib_save_LIBS=$LIBS
12070 LIBS="-ldld  $LIBS"
12071 cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h.  */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h.  */
12077
12078 /* Override any GCC internal prototype to avoid an error.
12079    Use char because int might match the return type of a GCC
12080    builtin and then its argument prototype would still apply.  */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 char dld_link ();
12085 int
12086 main ()
12087 {
12088 return dld_link ();
12089   ;
12090   return 0;
12091 }
12092 _ACEOF
12093 rm -f conftest.$ac_objext conftest$ac_exeext
12094 if { (ac_try="$ac_link"
12095 case "(($ac_try" in
12096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097   *) ac_try_echo=$ac_try;;
12098 esac
12099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101   (eval "$ac_link") 2>conftest.er1
12102   ac_status=$?
12103   grep -v '^ *+' conftest.er1 >conftest.err
12104   rm -f conftest.er1
12105   cat conftest.err >&5
12106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); } && {
12108          test -z "$ac_c_werror_flag" ||
12109          test ! -s conftest.err
12110        } && test -s conftest$ac_exeext && {
12111          test "$cross_compiling" = yes ||
12112          $as_test_x conftest$ac_exeext
12113        }; then
12114   ac_cv_lib_dld_dld_link=yes
12115 else
12116   $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119         ac_cv_lib_dld_dld_link=no
12120 fi
12121
12122 rm -rf conftest.dSYM
12123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12124       conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12126 fi
12127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12128 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12129 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12130   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12131 fi
12132
12133
12134 fi
12135
12136
12137 fi
12138
12139
12140 fi
12141
12142
12143 fi
12144
12145
12146 fi
12147
12148     ;;
12149   esac
12150
12151   if test "x$lt_cv_dlopen" != xno; then
12152     enable_dlopen=yes
12153   else
12154     enable_dlopen=no
12155   fi
12156
12157   case $lt_cv_dlopen in
12158   dlopen)
12159     save_CPPFLAGS="$CPPFLAGS"
12160     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12161
12162     save_LDFLAGS="$LDFLAGS"
12163     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12164
12165     save_LIBS="$LIBS"
12166     LIBS="$lt_cv_dlopen_libs $LIBS"
12167
12168     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12169 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12170 if test "${lt_cv_dlopen_self+set}" = set; then
12171   $as_echo_n "(cached) " >&6
12172 else
12173           if test "$cross_compiling" = yes; then :
12174   lt_cv_dlopen_self=cross
12175 else
12176   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12177   lt_status=$lt_dlunknown
12178   cat > conftest.$ac_ext <<_LT_EOF
12179 #line 12179 "configure"
12180 #include "confdefs.h"
12181
12182 #if HAVE_DLFCN_H
12183 #include <dlfcn.h>
12184 #endif
12185
12186 #include <stdio.h>
12187
12188 #ifdef RTLD_GLOBAL
12189 #  define LT_DLGLOBAL           RTLD_GLOBAL
12190 #else
12191 #  ifdef DL_GLOBAL
12192 #    define LT_DLGLOBAL         DL_GLOBAL
12193 #  else
12194 #    define LT_DLGLOBAL         0
12195 #  endif
12196 #endif
12197
12198 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12199    find out it does not work in some platform. */
12200 #ifndef LT_DLLAZY_OR_NOW
12201 #  ifdef RTLD_LAZY
12202 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12203 #  else
12204 #    ifdef DL_LAZY
12205 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12206 #    else
12207 #      ifdef RTLD_NOW
12208 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12209 #      else
12210 #        ifdef DL_NOW
12211 #          define LT_DLLAZY_OR_NOW      DL_NOW
12212 #        else
12213 #          define LT_DLLAZY_OR_NOW      0
12214 #        endif
12215 #      endif
12216 #    endif
12217 #  endif
12218 #endif
12219
12220 void fnord() { int i=42;}
12221 int main ()
12222 {
12223   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12224   int status = $lt_dlunknown;
12225
12226   if (self)
12227     {
12228       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12229       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12230       /* dlclose (self); */
12231     }
12232   else
12233     puts (dlerror ());
12234
12235   return status;
12236 }
12237 _LT_EOF
12238   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12239   (eval $ac_link) 2>&5
12240   ac_status=$?
12241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12243     (./conftest; exit; ) >&5 2>/dev/null
12244     lt_status=$?
12245     case x$lt_status in
12246       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12247       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12248       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12249     esac
12250   else :
12251     # compilation failed
12252     lt_cv_dlopen_self=no
12253   fi
12254 fi
12255 rm -fr conftest*
12256
12257
12258 fi
12259 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12260 $as_echo "$lt_cv_dlopen_self" >&6; }
12261
12262     if test "x$lt_cv_dlopen_self" = xyes; then
12263       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12264       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12265 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12266 if test "${lt_cv_dlopen_self_static+set}" = set; then
12267   $as_echo_n "(cached) " >&6
12268 else
12269           if test "$cross_compiling" = yes; then :
12270   lt_cv_dlopen_self_static=cross
12271 else
12272   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12273   lt_status=$lt_dlunknown
12274   cat > conftest.$ac_ext <<_LT_EOF
12275 #line 12275 "configure"
12276 #include "confdefs.h"
12277
12278 #if HAVE_DLFCN_H
12279 #include <dlfcn.h>
12280 #endif
12281
12282 #include <stdio.h>
12283
12284 #ifdef RTLD_GLOBAL
12285 #  define LT_DLGLOBAL           RTLD_GLOBAL
12286 #else
12287 #  ifdef DL_GLOBAL
12288 #    define LT_DLGLOBAL         DL_GLOBAL
12289 #  else
12290 #    define LT_DLGLOBAL         0
12291 #  endif
12292 #endif
12293
12294 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12295    find out it does not work in some platform. */
12296 #ifndef LT_DLLAZY_OR_NOW
12297 #  ifdef RTLD_LAZY
12298 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12299 #  else
12300 #    ifdef DL_LAZY
12301 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12302 #    else
12303 #      ifdef RTLD_NOW
12304 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12305 #      else
12306 #        ifdef DL_NOW
12307 #          define LT_DLLAZY_OR_NOW      DL_NOW
12308 #        else
12309 #          define LT_DLLAZY_OR_NOW      0
12310 #        endif
12311 #      endif
12312 #    endif
12313 #  endif
12314 #endif
12315
12316 void fnord() { int i=42;}
12317 int main ()
12318 {
12319   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12320   int status = $lt_dlunknown;
12321
12322   if (self)
12323     {
12324       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12325       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12326       /* dlclose (self); */
12327     }
12328   else
12329     puts (dlerror ());
12330
12331   return status;
12332 }
12333 _LT_EOF
12334   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335   (eval $ac_link) 2>&5
12336   ac_status=$?
12337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12339     (./conftest; exit; ) >&5 2>/dev/null
12340     lt_status=$?
12341     case x$lt_status in
12342       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12343       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12344       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12345     esac
12346   else :
12347     # compilation failed
12348     lt_cv_dlopen_self_static=no
12349   fi
12350 fi
12351 rm -fr conftest*
12352
12353
12354 fi
12355 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12356 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12357     fi
12358
12359     CPPFLAGS="$save_CPPFLAGS"
12360     LDFLAGS="$save_LDFLAGS"
12361     LIBS="$save_LIBS"
12362     ;;
12363   esac
12364
12365   case $lt_cv_dlopen_self in
12366   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12367   *) enable_dlopen_self=unknown ;;
12368   esac
12369
12370   case $lt_cv_dlopen_self_static in
12371   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12372   *) enable_dlopen_self_static=unknown ;;
12373   esac
12374 fi
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392 striplib=
12393 old_striplib=
12394 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12395 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12396 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12397   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12398   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12399   { $as_echo "$as_me:$LINENO: result: yes" >&5
12400 $as_echo "yes" >&6; }
12401 else
12402 # FIXME - insert some real tests, host_os isn't really good enough
12403   case $host_os in
12404   darwin*)
12405     if test -n "$STRIP" ; then
12406       striplib="$STRIP -x"
12407       old_striplib="$STRIP -S"
12408       { $as_echo "$as_me:$LINENO: result: yes" >&5
12409 $as_echo "yes" >&6; }
12410     else
12411       { $as_echo "$as_me:$LINENO: result: no" >&5
12412 $as_echo "no" >&6; }
12413     fi
12414     ;;
12415   *)
12416     { $as_echo "$as_me:$LINENO: result: no" >&5
12417 $as_echo "no" >&6; }
12418     ;;
12419   esac
12420 fi
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433   # Report which library types will actually be built
12434   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12435 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12436   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12437 $as_echo "$can_build_shared" >&6; }
12438
12439   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12440 $as_echo_n "checking whether to build shared libraries... " >&6; }
12441   test "$can_build_shared" = "no" && enable_shared=no
12442
12443   # On AIX, shared libraries and static libraries use the same namespace, and
12444   # are all built from PIC.
12445   case $host_os in
12446   aix3*)
12447     test "$enable_shared" = yes && enable_static=no
12448     if test -n "$RANLIB"; then
12449       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12450       postinstall_cmds='$RANLIB $lib'
12451     fi
12452     ;;
12453
12454   aix[4-9]*)
12455     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12456       test "$enable_shared" = yes && enable_static=no
12457     fi
12458     ;;
12459   esac
12460   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12461 $as_echo "$enable_shared" >&6; }
12462
12463   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12464 $as_echo_n "checking whether to build static libraries... " >&6; }
12465   # Make sure either enable_shared or enable_static is yes.
12466   test "$enable_shared" = yes || enable_static=yes
12467   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12468 $as_echo "$enable_static" >&6; }
12469
12470
12471
12472
12473 fi
12474 ac_ext=c
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
12480 CC="$lt_save_CC"
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494         ac_config_commands="$ac_config_commands libtool"
12495
12496
12497
12498
12499 # Only expand once:
12500
12501
12502
12503 # Check whether --enable-optimization was given.
12504 if test "${enable_optimization+set}" = set; then
12505   enableval=$enable_optimization;
12506         if (test "${enableval}" = "no"); then
12507                 CFLAGS="$CFLAGS -O0"
12508         fi
12509
12510 fi
12511
12512
12513 # Check whether --enable-debug was given.
12514 if test "${enable_debug+set}" = set; then
12515   enableval=$enable_debug;
12516         if (test "${enableval}" = "yes" &&
12517                                 test "${ac_cv_prog_cc_g}" = "yes"); then
12518                 CFLAGS="$CFLAGS -g"
12519         fi
12520
12521 fi
12522
12523
12524 # Check whether --enable-test was given.
12525 if test "${enable_test+set}" = set; then
12526   enableval=$enable_test; enable_test=${enableval}
12527 fi
12528
12529  if test "${enable_test}" = "yes"; then
12530   TEST_TRUE=
12531   TEST_FALSE='#'
12532 else
12533   TEST_TRUE='#'
12534   TEST_FALSE=
12535 fi
12536
12537
12538 # Check whether --enable-pie was given.
12539 if test "${enable_pie+set}" = set; then
12540   enableval=$enable_pie;
12541         if (test "${enableval}" = "yes" &&
12542                                 test "${ac_cv_prog_cc_pie}" = "yes"); then
12543                 CFLAGS="$CFLAGS -fPIE"
12544                 LDFLAGS="$LDFLAGS -pie"
12545         fi
12546
12547 fi
12548
12549
12550 # Check whether --enable-threads was given.
12551 if test "${enable_threads+set}" = set; then
12552   enableval=$enable_threads; enable_threads=${enableval}
12553 fi
12554
12555
12556 { $as_echo "$as_me:$LINENO: checking for signalfd" >&5
12557 $as_echo_n "checking for signalfd... " >&6; }
12558 if test "${ac_cv_func_signalfd+set}" = set; then
12559   $as_echo_n "(cached) " >&6
12560 else
12561   cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 /* Define signalfd to an innocuous variant, in case <limits.h> declares signalfd.
12568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12569 #define signalfd innocuous_signalfd
12570
12571 /* System header to define __stub macros and hopefully few prototypes,
12572     which can conflict with char signalfd (); below.
12573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12574     <limits.h> exists even on freestanding compilers.  */
12575
12576 #ifdef __STDC__
12577 # include <limits.h>
12578 #else
12579 # include <assert.h>
12580 #endif
12581
12582 #undef signalfd
12583
12584 /* Override any GCC internal prototype to avoid an error.
12585    Use char because int might match the return type of a GCC
12586    builtin and then its argument prototype would still apply.  */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char signalfd ();
12591 /* The GNU C library defines this for functions which it implements
12592     to always fail with ENOSYS.  Some functions are actually named
12593     something starting with __ and the normal name is an alias.  */
12594 #if defined __stub_signalfd || defined __stub___signalfd
12595 choke me
12596 #endif
12597
12598 int
12599 main ()
12600 {
12601 return signalfd ();
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12613 $as_echo "$ac_try_echo") >&5
12614   (eval "$ac_link") 2>conftest.er1
12615   ac_status=$?
12616   grep -v '^ *+' conftest.er1 >conftest.err
12617   rm -f conftest.er1
12618   cat conftest.err >&5
12619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); } && {
12621          test -z "$ac_c_werror_flag" ||
12622          test ! -s conftest.err
12623        } && test -s conftest$ac_exeext && {
12624          test "$cross_compiling" = yes ||
12625          $as_test_x conftest$ac_exeext
12626        }; then
12627   ac_cv_func_signalfd=yes
12628 else
12629   $as_echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632         ac_cv_func_signalfd=no
12633 fi
12634
12635 rm -rf conftest.dSYM
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637       conftest$ac_exeext conftest.$ac_ext
12638 fi
12639 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_signalfd" >&5
12640 $as_echo "$ac_cv_func_signalfd" >&6; }
12641 if test "x$ac_cv_func_signalfd" = x""yes; then
12642   dummy=yes
12643 else
12644   { { $as_echo "$as_me:$LINENO: error: signalfd support is required" >&5
12645 $as_echo "$as_me: error: signalfd support is required" >&2;}
12646    { (exit 1); exit 1; }; }
12647 fi
12648
12649
12650 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12653   $as_echo_n "(cached) " >&6
12654 else
12655   ac_check_lib_save_LIBS=$LIBS
12656 LIBS="-ldl  $LIBS"
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h.  */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h.  */
12663
12664 /* Override any GCC internal prototype to avoid an error.
12665    Use char because int might match the return type of a GCC
12666    builtin and then its argument prototype would still apply.  */
12667 #ifdef __cplusplus
12668 extern "C"
12669 #endif
12670 char dlopen ();
12671 int
12672 main ()
12673 {
12674 return dlopen ();
12675   ;
12676   return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (ac_try="$ac_link"
12681 case "(($ac_try" in
12682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683   *) ac_try_echo=$ac_try;;
12684 esac
12685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686 $as_echo "$ac_try_echo") >&5
12687   (eval "$ac_link") 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } && {
12694          test -z "$ac_c_werror_flag" ||
12695          test ! -s conftest.err
12696        } && test -s conftest$ac_exeext && {
12697          test "$cross_compiling" = yes ||
12698          $as_test_x conftest$ac_exeext
12699        }; then
12700   ac_cv_lib_dl_dlopen=yes
12701 else
12702   $as_echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705         ac_cv_lib_dl_dlopen=no
12706 fi
12707
12708 rm -rf conftest.dSYM
12709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12710       conftest$ac_exeext conftest.$ac_ext
12711 LIBS=$ac_check_lib_save_LIBS
12712 fi
12713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12714 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12715 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12716   dummy=yes
12717 else
12718   { { $as_echo "$as_me:$LINENO: error: dynamic linking loader is required" >&5
12719 $as_echo "$as_me: error: dynamic linking loader is required" >&2;}
12720    { (exit 1); exit 1; }; }
12721 fi
12722
12723
12724
12725 pkg_failed=no
12726 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
12727 $as_echo_n "checking for GLIB... " >&6; }
12728
12729 if test -n "$GLIB_CFLAGS"; then
12730     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12731  elif test -n "$PKG_CONFIG"; then
12732     if test -n "$PKG_CONFIG" && \
12733     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22\"") >&5
12734   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22") 2>&5
12735   ac_status=$?
12736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); }; then
12738   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.22" 2>/dev/null`
12739 else
12740   pkg_failed=yes
12741 fi
12742  else
12743     pkg_failed=untried
12744 fi
12745 if test -n "$GLIB_LIBS"; then
12746     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12747  elif test -n "$PKG_CONFIG"; then
12748     if test -n "$PKG_CONFIG" && \
12749     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22\"") >&5
12750   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22") 2>&5
12751   ac_status=$?
12752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; then
12754   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.22" 2>/dev/null`
12755 else
12756   pkg_failed=yes
12757 fi
12758  else
12759     pkg_failed=untried
12760 fi
12761
12762
12763
12764 if test $pkg_failed = yes; then
12765
12766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12767         _pkg_short_errors_supported=yes
12768 else
12769         _pkg_short_errors_supported=no
12770 fi
12771         if test $_pkg_short_errors_supported = yes; then
12772                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.22" 2>&1`
12773         else
12774                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.22" 2>&1`
12775         fi
12776         # Put the nasty error message in config.log where it belongs
12777         echo "$GLIB_PKG_ERRORS" >&5
12778
12779         { $as_echo "$as_me:$LINENO: result: no" >&5
12780 $as_echo "no" >&6; }
12781                 { { $as_echo "$as_me:$LINENO: error: GLib >= 2.22 is required" >&5
12782 $as_echo "$as_me: error: GLib >= 2.22 is required" >&2;}
12783    { (exit 1); exit 1; }; }
12784 elif test $pkg_failed = untried; then
12785         { { $as_echo "$as_me:$LINENO: error: GLib >= 2.22 is required" >&5
12786 $as_echo "$as_me: error: GLib >= 2.22 is required" >&2;}
12787    { (exit 1); exit 1; }; }
12788 else
12789         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12790         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12791         { $as_echo "$as_me:$LINENO: result: yes" >&5
12792 $as_echo "yes" >&6; }
12793         dummy=yes
12794 fi
12795
12796
12797
12798 if (test "${enable_threads}" = "yes"); then
12799
12800 cat >>confdefs.h <<\_ACEOF
12801 #define NEED_THREADS 1
12802 _ACEOF
12803
12804
12805 pkg_failed=no
12806 { $as_echo "$as_me:$LINENO: checking for GTHREAD" >&5
12807 $as_echo_n "checking for GTHREAD... " >&6; }
12808
12809 if test -n "$GTHREAD_CFLAGS"; then
12810     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12811  elif test -n "$PKG_CONFIG"; then
12812     if test -n "$PKG_CONFIG" && \
12813     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\"") >&5
12814   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12815   ac_status=$?
12816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; then
12818   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
12819 else
12820   pkg_failed=yes
12821 fi
12822  else
12823     pkg_failed=untried
12824 fi
12825 if test -n "$GTHREAD_LIBS"; then
12826     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12827  elif test -n "$PKG_CONFIG"; then
12828     if test -n "$PKG_CONFIG" && \
12829     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\"") >&5
12830   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12831   ac_status=$?
12832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; then
12834   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
12835 else
12836   pkg_failed=yes
12837 fi
12838  else
12839     pkg_failed=untried
12840 fi
12841
12842
12843
12844 if test $pkg_failed = yes; then
12845
12846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12847         _pkg_short_errors_supported=yes
12848 else
12849         _pkg_short_errors_supported=no
12850 fi
12851         if test $_pkg_short_errors_supported = yes; then
12852                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0 >= 2.16" 2>&1`
12853         else
12854                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0 >= 2.16" 2>&1`
12855         fi
12856         # Put the nasty error message in config.log where it belongs
12857         echo "$GTHREAD_PKG_ERRORS" >&5
12858
12859         { $as_echo "$as_me:$LINENO: result: no" >&5
12860 $as_echo "no" >&6; }
12861                 { { $as_echo "$as_me:$LINENO: error: GThread >= 2.16 is required" >&5
12862 $as_echo "$as_me: error: GThread >= 2.16 is required" >&2;}
12863    { (exit 1); exit 1; }; }
12864 elif test $pkg_failed = untried; then
12865         { { $as_echo "$as_me:$LINENO: error: GThread >= 2.16 is required" >&5
12866 $as_echo "$as_me: error: GThread >= 2.16 is required" >&2;}
12867    { (exit 1); exit 1; }; }
12868 else
12869         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12870         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12871         { $as_echo "$as_me:$LINENO: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873         dummy=yes
12874 fi
12875         GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
12876         GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
12877 fi
12878
12879
12880 pkg_failed=no
12881 { $as_echo "$as_me:$LINENO: checking for DBUS" >&5
12882 $as_echo_n "checking for DBUS... " >&6; }
12883
12884 if test -n "$DBUS_CFLAGS"; then
12885     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12886  elif test -n "$PKG_CONFIG"; then
12887     if test -n "$PKG_CONFIG" && \
12888     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0\"") >&5
12889   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0") 2>&5
12890   ac_status=$?
12891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; then
12893   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>/dev/null`
12894 else
12895   pkg_failed=yes
12896 fi
12897  else
12898     pkg_failed=untried
12899 fi
12900 if test -n "$DBUS_LIBS"; then
12901     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12902  elif test -n "$PKG_CONFIG"; then
12903     if test -n "$PKG_CONFIG" && \
12904     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0\"") >&5
12905   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0") 2>&5
12906   ac_status=$?
12907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; then
12909   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>/dev/null`
12910 else
12911   pkg_failed=yes
12912 fi
12913  else
12914     pkg_failed=untried
12915 fi
12916
12917
12918
12919 if test $pkg_failed = yes; then
12920
12921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12922         _pkg_short_errors_supported=yes
12923 else
12924         _pkg_short_errors_supported=no
12925 fi
12926         if test $_pkg_short_errors_supported = yes; then
12927                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.0" 2>&1`
12928         else
12929                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.0" 2>&1`
12930         fi
12931         # Put the nasty error message in config.log where it belongs
12932         echo "$DBUS_PKG_ERRORS" >&5
12933
12934         { $as_echo "$as_me:$LINENO: result: no" >&5
12935 $as_echo "no" >&6; }
12936                 { { $as_echo "$as_me:$LINENO: error: D-Bus >= 1.0 is required" >&5
12937 $as_echo "$as_me: error: D-Bus >= 1.0 is required" >&2;}
12938    { (exit 1); exit 1; }; }
12939 elif test $pkg_failed = untried; then
12940         { { $as_echo "$as_me:$LINENO: error: D-Bus >= 1.0 is required" >&5
12941 $as_echo "$as_me: error: D-Bus >= 1.0 is required" >&2;}
12942    { (exit 1); exit 1; }; }
12943 else
12944         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12945         DBUS_LIBS=$pkg_cv_DBUS_LIBS
12946         { $as_echo "$as_me:$LINENO: result: yes" >&5
12947 $as_echo "yes" >&6; }
12948         dummy=yes
12949 fi
12950 saved_CFLAGS="$CFLAGS"
12951 saved_LIBS="$LIBS"
12952 CFLAGS="$CFLAGS $DBUS_CFLAGS"
12953 LIBS="$LIBS $DBUS_LIBS"
12954 { $as_echo "$as_me:$LINENO: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
12955 $as_echo_n "checking for dbus_watch_get_unix_fd in -ldbus-1... " >&6; }
12956 if test "${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+set}" = set; then
12957   $as_echo_n "(cached) " >&6
12958 else
12959   ac_check_lib_save_LIBS=$LIBS
12960 LIBS="-ldbus-1  $LIBS"
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967
12968 /* Override any GCC internal prototype to avoid an error.
12969    Use char because int might match the return type of a GCC
12970    builtin and then its argument prototype would still apply.  */
12971 #ifdef __cplusplus
12972 extern "C"
12973 #endif
12974 char dbus_watch_get_unix_fd ();
12975 int
12976 main ()
12977 {
12978 return dbus_watch_get_unix_fd ();
12979   ;
12980   return 0;
12981 }
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12990 $as_echo "$ac_try_echo") >&5
12991   (eval "$ac_link") 2>conftest.er1
12992   ac_status=$?
12993   grep -v '^ *+' conftest.er1 >conftest.err
12994   rm -f conftest.er1
12995   cat conftest.err >&5
12996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } && {
12998          test -z "$ac_c_werror_flag" ||
12999          test ! -s conftest.err
13000        } && test -s conftest$ac_exeext && {
13001          test "$cross_compiling" = yes ||
13002          $as_test_x conftest$ac_exeext
13003        }; then
13004   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
13005 else
13006   $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009         ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
13010 fi
13011
13012 rm -rf conftest.dSYM
13013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13014       conftest$ac_exeext conftest.$ac_ext
13015 LIBS=$ac_check_lib_save_LIBS
13016 fi
13017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
13018 $as_echo "$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
13019 if test "x$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" = x""yes; then
13020   dummy=yes
13021 else
13022
13023 cat >>confdefs.h <<\_ACEOF
13024 #define NEED_DBUS_WATCH_GET_UNIX_FD 1
13025 _ACEOF
13026
13027 fi
13028
13029 { $as_echo "$as_me:$LINENO: checking for dbus_connection_can_send_type in -ldbus-1" >&5
13030 $as_echo_n "checking for dbus_connection_can_send_type in -ldbus-1... " >&6; }
13031 if test "${ac_cv_lib_dbus_1_dbus_connection_can_send_type+set}" = set; then
13032   $as_echo_n "(cached) " >&6
13033 else
13034   ac_check_lib_save_LIBS=$LIBS
13035 LIBS="-ldbus-1  $LIBS"
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042
13043 /* Override any GCC internal prototype to avoid an error.
13044    Use char because int might match the return type of a GCC
13045    builtin and then its argument prototype would still apply.  */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char dbus_connection_can_send_type ();
13050 int
13051 main ()
13052 {
13053 return dbus_connection_can_send_type ();
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (ac_try="$ac_link"
13060 case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13065 $as_echo "$ac_try_echo") >&5
13066   (eval "$ac_link") 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } && {
13073          test -z "$ac_c_werror_flag" ||
13074          test ! -s conftest.err
13075        } && test -s conftest$ac_exeext && {
13076          test "$cross_compiling" = yes ||
13077          $as_test_x conftest$ac_exeext
13078        }; then
13079   ac_cv_lib_dbus_1_dbus_connection_can_send_type=yes
13080 else
13081   $as_echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13083
13084         ac_cv_lib_dbus_1_dbus_connection_can_send_type=no
13085 fi
13086
13087 rm -rf conftest.dSYM
13088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13089       conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_check_lib_save_LIBS
13091 fi
13092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_can_send_type" >&5
13093 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_can_send_type" >&6; }
13094 if test "x$ac_cv_lib_dbus_1_dbus_connection_can_send_type" = x""yes; then
13095   dummy=yes
13096 else
13097
13098 cat >>confdefs.h <<\_ACEOF
13099 #define NEED_DBUS_CONNECTION_CAN_SEND_TYPE 1
13100 _ACEOF
13101
13102 fi
13103
13104 CFLAGS="$saved_CFLAGS"
13105 LIBS="$saved_LIBS"
13106
13107
13108
13109
13110 # Check whether --with-dbusconfdir was given.
13111 if test "${with_dbusconfdir+set}" = set; then
13112   withval=$with_dbusconfdir; path_dbusconf=${withval}
13113 else
13114   path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
13115 fi
13116
13117 if (test -z "${path_dbusconf}"); then
13118         DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
13119 else
13120         DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
13121 fi
13122
13123
13124
13125 # Check whether --with-dbusdatadir was given.
13126 if test "${with_dbusdatadir+set}" = set; then
13127   withval=$with_dbusdatadir; path_dbusdata=${withval}
13128 else
13129   path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
13130 fi
13131
13132 if (test -z "${path_dbusdata}"); then
13133         DBUS_DATADIR="${datadir}/dbus-1/system-services"
13134 else
13135         DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
13136 fi
13137
13138
13139
13140 # Check whether --with-systemdunitdir was given.
13141 if test "${with_systemdunitdir+set}" = set; then
13142   withval=$with_systemdunitdir; path_systemdunit=${withval}
13143 else
13144   path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
13145 fi
13146
13147 if (test -n "${path_systemdunit}"); then
13148         SYSTEMD_UNITDIR="${path_systemdunit}"
13149
13150 fi
13151  if test -n "${path_systemdunit}"; then
13152   SYSTEMD_TRUE=
13153   SYSTEMD_FALSE='#'
13154 else
13155   SYSTEMD_TRUE='#'
13156   SYSTEMD_FALSE=
13157 fi
13158
13159
13160 # Check whether --enable-capng was given.
13161 if test "${enable_capng+set}" = set; then
13162   enableval=$enable_capng; enable_capng=${enableval}
13163 fi
13164
13165 if (test "${enable_capng}" = "yes"); then
13166
13167 pkg_failed=no
13168 { $as_echo "$as_me:$LINENO: checking for CAPNG" >&5
13169 $as_echo_n "checking for CAPNG... " >&6; }
13170
13171 if test -n "$CAPNG_CFLAGS"; then
13172     pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS"
13173  elif test -n "$PKG_CONFIG"; then
13174     if test -n "$PKG_CONFIG" && \
13175     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcap-ng\"") >&5
13176   ($PKG_CONFIG --exists --print-errors "libcap-ng") 2>&5
13177   ac_status=$?
13178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; then
13180   pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng" 2>/dev/null`
13181 else
13182   pkg_failed=yes
13183 fi
13184  else
13185     pkg_failed=untried
13186 fi
13187 if test -n "$CAPNG_LIBS"; then
13188     pkg_cv_CAPNG_LIBS="$CAPNG_LIBS"
13189  elif test -n "$PKG_CONFIG"; then
13190     if test -n "$PKG_CONFIG" && \
13191     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcap-ng\"") >&5
13192   ($PKG_CONFIG --exists --print-errors "libcap-ng") 2>&5
13193   ac_status=$?
13194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }; then
13196   pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng" 2>/dev/null`
13197 else
13198   pkg_failed=yes
13199 fi
13200  else
13201     pkg_failed=untried
13202 fi
13203
13204
13205
13206 if test $pkg_failed = yes; then
13207
13208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13209         _pkg_short_errors_supported=yes
13210 else
13211         _pkg_short_errors_supported=no
13212 fi
13213         if test $_pkg_short_errors_supported = yes; then
13214                 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcap-ng" 2>&1`
13215         else
13216                 CAPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcap-ng" 2>&1`
13217         fi
13218         # Put the nasty error message in config.log where it belongs
13219         echo "$CAPNG_PKG_ERRORS" >&5
13220
13221         { $as_echo "$as_me:$LINENO: result: no" >&5
13222 $as_echo "no" >&6; }
13223                 { { $as_echo "$as_me:$LINENO: error: Capabilities library is required" >&5
13224 $as_echo "$as_me: error: Capabilities library is required" >&2;}
13225    { (exit 1); exit 1; }; }
13226 elif test $pkg_failed = untried; then
13227         { { $as_echo "$as_me:$LINENO: error: Capabilities library is required" >&5
13228 $as_echo "$as_me: error: Capabilities library is required" >&2;}
13229    { (exit 1); exit 1; }; }
13230 else
13231         CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS
13232         CAPNG_LIBS=$pkg_cv_CAPNG_LIBS
13233         { $as_echo "$as_me:$LINENO: result: yes" >&5
13234 $as_echo "yes" >&6; }
13235         dummy=yes
13236 fi
13237
13238
13239
13240 cat >>confdefs.h <<\_ACEOF
13241 #define HAVE_CAPNG 1
13242 _ACEOF
13243
13244 fi
13245
13246 # Check whether --enable-udev was given.
13247 if test "${enable_udev+set}" = set; then
13248   enableval=$enable_udev; enable_udev=${enableval}
13249 fi
13250
13251 if (test "${enable_udev}" != "no"); then
13252
13253 pkg_failed=no
13254 { $as_echo "$as_me:$LINENO: checking for UDEV" >&5
13255 $as_echo_n "checking for UDEV... " >&6; }
13256
13257 if test -n "$UDEV_CFLAGS"; then
13258     pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
13259  elif test -n "$PKG_CONFIG"; then
13260     if test -n "$PKG_CONFIG" && \
13261     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\"") >&5
13262   ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13263   ac_status=$?
13264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; then
13266   pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
13267 else
13268   pkg_failed=yes
13269 fi
13270  else
13271     pkg_failed=untried
13272 fi
13273 if test -n "$UDEV_LIBS"; then
13274     pkg_cv_UDEV_LIBS="$UDEV_LIBS"
13275  elif test -n "$PKG_CONFIG"; then
13276     if test -n "$PKG_CONFIG" && \
13277     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\"") >&5
13278   ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13279   ac_status=$?
13280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; then
13282   pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
13283 else
13284   pkg_failed=yes
13285 fi
13286  else
13287     pkg_failed=untried
13288 fi
13289
13290
13291
13292 if test $pkg_failed = yes; then
13293
13294 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13295         _pkg_short_errors_supported=yes
13296 else
13297         _pkg_short_errors_supported=no
13298 fi
13299         if test $_pkg_short_errors_supported = yes; then
13300                 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
13301         else
13302                 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
13303         fi
13304         # Put the nasty error message in config.log where it belongs
13305         echo "$UDEV_PKG_ERRORS" >&5
13306
13307         { $as_echo "$as_me:$LINENO: result: no" >&5
13308 $as_echo "no" >&6; }
13309                 { { $as_echo "$as_me:$LINENO: error: libudev >= 143 is required" >&5
13310 $as_echo "$as_me: error: libudev >= 143 is required" >&2;}
13311    { (exit 1); exit 1; }; }
13312 elif test $pkg_failed = untried; then
13313         { { $as_echo "$as_me:$LINENO: error: libudev >= 143 is required" >&5
13314 $as_echo "$as_me: error: libudev >= 143 is required" >&2;}
13315    { (exit 1); exit 1; }; }
13316 else
13317         UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
13318         UDEV_LIBS=$pkg_cv_UDEV_LIBS
13319         { $as_echo "$as_me:$LINENO: result: yes" >&5
13320 $as_echo "yes" >&6; }
13321         enable_udev="yes"
13322 fi
13323         UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`"
13324         if (test -z "${UDEV_DATADIR}"); then
13325                 UDEV_DATADIR="${sysconfdir}/udev/rules.d"
13326         else
13327                 UDEV_DATADIR="${UDEV_DATADIR}/rules.d"
13328         fi
13329
13330 fi
13331
13332
13333  if test "${enable_udev}" = "yes"; then
13334   UDEV_TRUE=
13335   UDEV_FALSE='#'
13336 else
13337   UDEV_TRUE='#'
13338   UDEV_FALSE=
13339 fi
13340
13341
13342 # Check whether --enable-tools was given.
13343 if test "${enable_tools+set}" = set; then
13344   enableval=$enable_tools; enable_tools=${enableval}
13345 fi
13346
13347 if (test "${enable_tools}" = "yes"); then
13348
13349 pkg_failed=no
13350 { $as_echo "$as_me:$LINENO: checking for USB" >&5
13351 $as_echo_n "checking for USB... " >&6; }
13352
13353 if test -n "$USB_CFLAGS"; then
13354     pkg_cv_USB_CFLAGS="$USB_CFLAGS"
13355  elif test -n "$PKG_CONFIG"; then
13356     if test -n "$PKG_CONFIG" && \
13357     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\"") >&5
13358   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13359   ac_status=$?
13360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; then
13362   pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
13363 else
13364   pkg_failed=yes
13365 fi
13366  else
13367     pkg_failed=untried
13368 fi
13369 if test -n "$USB_LIBS"; then
13370     pkg_cv_USB_LIBS="$USB_LIBS"
13371  elif test -n "$PKG_CONFIG"; then
13372     if test -n "$PKG_CONFIG" && \
13373     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\"") >&5
13374   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13375   ac_status=$?
13376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; then
13378   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
13379 else
13380   pkg_failed=yes
13381 fi
13382  else
13383     pkg_failed=untried
13384 fi
13385
13386
13387
13388 if test $pkg_failed = yes; then
13389
13390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13391         _pkg_short_errors_supported=yes
13392 else
13393         _pkg_short_errors_supported=no
13394 fi
13395         if test $_pkg_short_errors_supported = yes; then
13396                 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
13397         else
13398                 USB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
13399         fi
13400         # Put the nasty error message in config.log where it belongs
13401         echo "$USB_PKG_ERRORS" >&5
13402
13403         { $as_echo "$as_me:$LINENO: result: no" >&5
13404 $as_echo "no" >&6; }
13405                 { { $as_echo "$as_me:$LINENO: error: USB library is required" >&5
13406 $as_echo "$as_me: error: USB library is required" >&2;}
13407    { (exit 1); exit 1; }; }
13408 elif test $pkg_failed = untried; then
13409         { { $as_echo "$as_me:$LINENO: error: USB library is required" >&5
13410 $as_echo "$as_me: error: USB library is required" >&2;}
13411    { (exit 1); exit 1; }; }
13412 else
13413         USB_CFLAGS=$pkg_cv_USB_CFLAGS
13414         USB_LIBS=$pkg_cv_USB_LIBS
13415         { $as_echo "$as_me:$LINENO: result: yes" >&5
13416 $as_echo "yes" >&6; }
13417         dummy=yes
13418 fi
13419
13420
13421 fi
13422  if test "${enable_tools}" = "yes"; then
13423   TOOLS_TRUE=
13424   TOOLS_FALSE='#'
13425 else
13426   TOOLS_TRUE='#'
13427   TOOLS_FALSE=
13428 fi
13429
13430
13431 # Check whether --enable-atmodem was given.
13432 if test "${enable_atmodem+set}" = set; then
13433   enableval=$enable_atmodem; enable_atmodem=${enableval}
13434 fi
13435
13436  if test "${enable_atmodem}" != "no"; then
13437   ATMODEM_TRUE=
13438   ATMODEM_FALSE='#'
13439 else
13440   ATMODEM_TRUE='#'
13441   ATMODEM_FALSE=
13442 fi
13443
13444
13445 # Check whether --enable-cdmamodem was given.
13446 if test "${enable_cdmamodem+set}" = set; then
13447   enableval=$enable_cdmamodem; enable_cdmamodem=${enableval}
13448 fi
13449
13450  if test "${enable_cdmamodem}" != "no"; then
13451   CDMAMODEM_TRUE=
13452   CDMAMODEM_FALSE='#'
13453 else
13454   CDMAMODEM_TRUE='#'
13455   CDMAMODEM_FALSE=
13456 fi
13457
13458
13459 # Check whether --enable-phonesim was given.
13460 if test "${enable_phonesim+set}" = set; then
13461   enableval=$enable_phonesim; enable_phonesim=${enableval}
13462 fi
13463
13464  if test "${enable_phonesim}" != "no" &&
13465                                         test "${enable_atmodem}" != "no"; then
13466   PHONESIM_TRUE=
13467   PHONESIM_FALSE='#'
13468 else
13469   PHONESIM_TRUE='#'
13470   PHONESIM_FALSE=
13471 fi
13472
13473
13474 # Check whether --enable-isimodem was given.
13475 if test "${enable_isimodem+set}" = set; then
13476   enableval=$enable_isimodem; enable_isimodem=${enableval}
13477 fi
13478
13479  if test "${enable_isimodem}" != "no"; then
13480   ISIMODEM_TRUE=
13481   ISIMODEM_FALSE='#'
13482 else
13483   ISIMODEM_TRUE='#'
13484   ISIMODEM_FALSE=
13485 fi
13486
13487
13488 # Check whether --enable-bluetooth was given.
13489 if test "${enable_bluetooth+set}" = set; then
13490   enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13491 fi
13492
13493 if (test "${enable_bluetooth}" != "no"); then
13494
13495 pkg_failed=no
13496 { $as_echo "$as_me:$LINENO: checking for BLUEZ" >&5
13497 $as_echo_n "checking for BLUEZ... " >&6; }
13498
13499 if test -n "$BLUEZ_CFLAGS"; then
13500     pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
13501  elif test -n "$PKG_CONFIG"; then
13502     if test -n "$PKG_CONFIG" && \
13503     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.30\"") >&5
13504   ($PKG_CONFIG --exists --print-errors "bluez >= 4.30") 2>&5
13505   ac_status=$?
13506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; then
13508   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez >= 4.30" 2>/dev/null`
13509 else
13510   pkg_failed=yes
13511 fi
13512  else
13513     pkg_failed=untried
13514 fi
13515 if test -n "$BLUEZ_LIBS"; then
13516     pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
13517  elif test -n "$PKG_CONFIG"; then
13518     if test -n "$PKG_CONFIG" && \
13519     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.30\"") >&5
13520   ($PKG_CONFIG --exists --print-errors "bluez >= 4.30") 2>&5
13521   ac_status=$?
13522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); }; then
13524   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez >= 4.30" 2>/dev/null`
13525 else
13526   pkg_failed=yes
13527 fi
13528  else
13529     pkg_failed=untried
13530 fi
13531
13532
13533
13534 if test $pkg_failed = yes; then
13535
13536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13537         _pkg_short_errors_supported=yes
13538 else
13539         _pkg_short_errors_supported=no
13540 fi
13541         if test $_pkg_short_errors_supported = yes; then
13542                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bluez >= 4.30" 2>&1`
13543         else
13544                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors "bluez >= 4.30" 2>&1`
13545         fi
13546         # Put the nasty error message in config.log where it belongs
13547         echo "$BLUEZ_PKG_ERRORS" >&5
13548
13549         { $as_echo "$as_me:$LINENO: result: no" >&5
13550 $as_echo "no" >&6; }
13551                 { { $as_echo "$as_me:$LINENO: error: Bluetooth library >= 4.30 is required" >&5
13552 $as_echo "$as_me: error: Bluetooth library >= 4.30 is required" >&2;}
13553    { (exit 1); exit 1; }; }
13554 elif test $pkg_failed = untried; then
13555         { { $as_echo "$as_me:$LINENO: error: Bluetooth library >= 4.30 is required" >&5
13556 $as_echo "$as_me: error: Bluetooth library >= 4.30 is required" >&2;}
13557    { (exit 1); exit 1; }; }
13558 else
13559         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
13560         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
13561         { $as_echo "$as_me:$LINENO: result: yes" >&5
13562 $as_echo "yes" >&6; }
13563         dummy=yes
13564 fi
13565 fi
13566
13567
13568  if test "${enable_bluetooth}" != "no"; then
13569   BLUETOOTH_TRUE=
13570   BLUETOOTH_FALSE='#'
13571 else
13572   BLUETOOTH_TRUE='#'
13573   BLUETOOTH_FALSE=
13574 fi
13575
13576
13577
13578 # Check whether --with-provisiondb was given.
13579 if test "${with_provisiondb+set}" = set; then
13580   withval=$with_provisiondb; path_provisiondb=${withval}
13581 fi
13582
13583
13584 # Check whether --enable-provision was given.
13585 if test "${enable_provision+set}" = set; then
13586   enableval=$enable_provision; enable_provision=${enableval}
13587 fi
13588
13589 if (test "${enable_provision}" != "no"); then
13590         if (test -n "${path_provisiondb}"); then
13591
13592 cat >>confdefs.h <<_ACEOF
13593 #define PROVIDER_DATABASE "${path_provisiondb}"
13594 _ACEOF
13595
13596         else
13597                 { $as_echo "$as_me:$LINENO: checking for mobile-broadband-provider-info" >&5
13598 $as_echo_n "checking for mobile-broadband-provider-info... " >&6; }
13599                 if test -n "$PKG_CONFIG" && \
13600     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\"") >&5
13601   ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13602   ac_status=$?
13603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; then
13605   if test -n "$PROVIDER_DATABASE"; then
13606     pkg_cv_PROVIDER_DATABASE="$PROVIDER_DATABASE"
13607  elif test -n "$PKG_CONFIG"; then
13608     if test -n "$PKG_CONFIG" && \
13609     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\"") >&5
13610   ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13611   ac_status=$?
13612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); }; then
13614   pkg_cv_PROVIDER_DATABASE=`$PKG_CONFIG --variable=database "mobile-broadband-provider-info" 2>/dev/null`
13615 else
13616   pkg_failed=yes
13617 fi
13618  else
13619     pkg_failed=untried
13620 fi
13621
13622 cat >>confdefs.h <<_ACEOF
13623 #define PROVIDER_DATABASE "$pkg_cv_PROVIDER_DATABASE"
13624 _ACEOF
13625
13626                         { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628 else
13629   { { $as_echo "$as_me:$LINENO: error: Mobile broadband provider database is required" >&5
13630 $as_echo "$as_me: error: Mobile broadband provider database is required" >&2;}
13631    { (exit 1); exit 1; }; }
13632 fi
13633         fi
13634 fi
13635  if test "${enable_provision}" != "no"; then
13636   PROVISION_TRUE=
13637   PROVISION_FALSE='#'
13638 else
13639   PROVISION_TRUE='#'
13640   PROVISION_FALSE=
13641 fi
13642
13643
13644 # Check whether --enable-datafiles was given.
13645 if test "${enable_datafiles+set}" = set; then
13646   enableval=$enable_datafiles; enable_datafiles=${enableval}
13647 fi
13648
13649  if test "${enable_datafiles}" != "no"; then
13650   DATAFILES_TRUE=
13651   DATAFILES_FALSE='#'
13652 else
13653   DATAFILES_TRUE='#'
13654   DATAFILES_FALSE=
13655 fi
13656
13657
13658 if (test "${prefix}" = "NONE"); then
13659                 if (test "$localstatedir" = '${prefix}/var'); then
13660                 localstatedir='/var'
13661
13662         fi
13663
13664         prefix="${ac_default_prefix}"
13665 fi
13666
13667 if (test "$localstatedir" = '${prefix}/var'); then
13668         storagedir="${prefix}/var/lib/ofono"
13669 else
13670         storagedir="${localstatedir}/lib/ofono"
13671 fi
13672
13673 cat >>confdefs.h <<_ACEOF
13674 #define STORAGEDIR "${storagedir}"
13675 _ACEOF
13676
13677
13678 if (test "$sysconfdir" = '${prefix}/etc'); then
13679         configdir="${prefix}/etc/ofono"
13680 else
13681         configdir="${sysconfdir}/ofono"
13682 fi
13683
13684 cat >>confdefs.h <<_ACEOF
13685 #define CONFIGDIR "${configdir}"
13686 _ACEOF
13687
13688
13689 ac_config_files="$ac_config_files Makefile include/version.h src/ofono.service ofono.pc"
13690
13691 cat >confcache <<\_ACEOF
13692 # This file is a shell script that caches the results of configure
13693 # tests run on this system so they can be shared between configure
13694 # scripts and configure runs, see configure's option --config-cache.
13695 # It is not useful on other systems.  If it contains results you don't
13696 # want to keep, you may remove or edit it.
13697 #
13698 # config.status only pays attention to the cache file if you give it
13699 # the --recheck option to rerun configure.
13700 #
13701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13703 # following values.
13704
13705 _ACEOF
13706
13707 # The following way of writing the cache mishandles newlines in values,
13708 # but we know of no workaround that is simple, portable, and efficient.
13709 # So, we kill variables containing newlines.
13710 # Ultrix sh set writes to stderr and can't be redirected directly,
13711 # and sets the high bit in the cache file unless we assign to the vars.
13712 (
13713   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13714     eval ac_val=\$$ac_var
13715     case $ac_val in #(
13716     *${as_nl}*)
13717       case $ac_var in #(
13718       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13720       esac
13721       case $ac_var in #(
13722       _ | IFS | as_nl) ;; #(
13723       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13724       *) $as_unset $ac_var ;;
13725       esac ;;
13726     esac
13727   done
13728
13729   (set) 2>&1 |
13730     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13731     *${as_nl}ac_space=\ *)
13732       # `set' does not quote correctly, so add quotes (double-quote
13733       # substitution turns \\\\ into \\, and sed turns \\ into \).
13734       sed -n \
13735         "s/'/'\\\\''/g;
13736           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13737       ;; #(
13738     *)
13739       # `set' quotes correctly as required by POSIX, so do not add quotes.
13740       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13741       ;;
13742     esac |
13743     sort
13744 ) |
13745   sed '
13746      /^ac_cv_env_/b end
13747      t clear
13748      :clear
13749      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13750      t end
13751      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13752      :end' >>confcache
13753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13754   if test -w "$cache_file"; then
13755     test "x$cache_file" != "x/dev/null" &&
13756       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13757 $as_echo "$as_me: updating cache $cache_file" >&6;}
13758     cat confcache >$cache_file
13759   else
13760     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13762   fi
13763 fi
13764 rm -f confcache
13765
13766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13767 # Let make expand exec_prefix.
13768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13769
13770 DEFS=-DHAVE_CONFIG_H
13771
13772 ac_libobjs=
13773 ac_ltlibobjs=
13774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13775   # 1. Remove the extension, and $U if already installed.
13776   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13777   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13778   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13779   #    will be set to the directory where LIBOBJS objects are built.
13780   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13781   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13782 done
13783 LIBOBJS=$ac_libobjs
13784
13785 LTLIBOBJS=$ac_ltlibobjs
13786
13787
13788  if test -n "$EXEEXT"; then
13789   am__EXEEXT_TRUE=
13790   am__EXEEXT_FALSE='#'
13791 else
13792   am__EXEEXT_TRUE='#'
13793   am__EXEEXT_FALSE=
13794 fi
13795
13796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13797   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13798 Usually this means the macro was only invoked conditionally." >&5
13799 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13800 Usually this means the macro was only invoked conditionally." >&2;}
13801    { (exit 1); exit 1; }; }
13802 fi
13803 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13804   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13805 Usually this means the macro was only invoked conditionally." >&5
13806 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13807 Usually this means the macro was only invoked conditionally." >&2;}
13808    { (exit 1); exit 1; }; }
13809 fi
13810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13811   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13812 Usually this means the macro was only invoked conditionally." >&5
13813 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13814 Usually this means the macro was only invoked conditionally." >&2;}
13815    { (exit 1); exit 1; }; }
13816 fi
13817 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13818   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13819 Usually this means the macro was only invoked conditionally." >&5
13820 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13821 Usually this means the macro was only invoked conditionally." >&2;}
13822    { (exit 1); exit 1; }; }
13823 fi
13824 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13825   { { $as_echo "$as_me:$LINENO: error: conditional \"TEST\" was never defined.
13826 Usually this means the macro was only invoked conditionally." >&5
13827 $as_echo "$as_me: error: conditional \"TEST\" was never defined.
13828 Usually this means the macro was only invoked conditionally." >&2;}
13829    { (exit 1); exit 1; }; }
13830 fi
13831 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13832   { { $as_echo "$as_me:$LINENO: error: conditional \"SYSTEMD\" was never defined.
13833 Usually this means the macro was only invoked conditionally." >&5
13834 $as_echo "$as_me: error: conditional \"SYSTEMD\" was never defined.
13835 Usually this means the macro was only invoked conditionally." >&2;}
13836    { (exit 1); exit 1; }; }
13837 fi
13838 if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
13839   { { $as_echo "$as_me:$LINENO: error: conditional \"UDEV\" was never defined.
13840 Usually this means the macro was only invoked conditionally." >&5
13841 $as_echo "$as_me: error: conditional \"UDEV\" was never defined.
13842 Usually this means the macro was only invoked conditionally." >&2;}
13843    { (exit 1); exit 1; }; }
13844 fi
13845 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13846   { { $as_echo "$as_me:$LINENO: error: conditional \"TOOLS\" was never defined.
13847 Usually this means the macro was only invoked conditionally." >&5
13848 $as_echo "$as_me: error: conditional \"TOOLS\" was never defined.
13849 Usually this means the macro was only invoked conditionally." >&2;}
13850    { (exit 1); exit 1; }; }
13851 fi
13852 if test -z "${ATMODEM_TRUE}" && test -z "${ATMODEM_FALSE}"; then
13853   { { $as_echo "$as_me:$LINENO: error: conditional \"ATMODEM\" was never defined.
13854 Usually this means the macro was only invoked conditionally." >&5
13855 $as_echo "$as_me: error: conditional \"ATMODEM\" was never defined.
13856 Usually this means the macro was only invoked conditionally." >&2;}
13857    { (exit 1); exit 1; }; }
13858 fi
13859 if test -z "${CDMAMODEM_TRUE}" && test -z "${CDMAMODEM_FALSE}"; then
13860   { { $as_echo "$as_me:$LINENO: error: conditional \"CDMAMODEM\" was never defined.
13861 Usually this means the macro was only invoked conditionally." >&5
13862 $as_echo "$as_me: error: conditional \"CDMAMODEM\" was never defined.
13863 Usually this means the macro was only invoked conditionally." >&2;}
13864    { (exit 1); exit 1; }; }
13865 fi
13866 if test -z "${PHONESIM_TRUE}" && test -z "${PHONESIM_FALSE}"; then
13867   { { $as_echo "$as_me:$LINENO: error: conditional \"PHONESIM\" was never defined.
13868 Usually this means the macro was only invoked conditionally." >&5
13869 $as_echo "$as_me: error: conditional \"PHONESIM\" was never defined.
13870 Usually this means the macro was only invoked conditionally." >&2;}
13871    { (exit 1); exit 1; }; }
13872 fi
13873 if test -z "${ISIMODEM_TRUE}" && test -z "${ISIMODEM_FALSE}"; then
13874   { { $as_echo "$as_me:$LINENO: error: conditional \"ISIMODEM\" was never defined.
13875 Usually this means the macro was only invoked conditionally." >&5
13876 $as_echo "$as_me: error: conditional \"ISIMODEM\" was never defined.
13877 Usually this means the macro was only invoked conditionally." >&2;}
13878    { (exit 1); exit 1; }; }
13879 fi
13880 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13881   { { $as_echo "$as_me:$LINENO: error: conditional \"BLUETOOTH\" was never defined.
13882 Usually this means the macro was only invoked conditionally." >&5
13883 $as_echo "$as_me: error: conditional \"BLUETOOTH\" was never defined.
13884 Usually this means the macro was only invoked conditionally." >&2;}
13885    { (exit 1); exit 1; }; }
13886 fi
13887 if test -z "${PROVISION_TRUE}" && test -z "${PROVISION_FALSE}"; then
13888   { { $as_echo "$as_me:$LINENO: error: conditional \"PROVISION\" was never defined.
13889 Usually this means the macro was only invoked conditionally." >&5
13890 $as_echo "$as_me: error: conditional \"PROVISION\" was never defined.
13891 Usually this means the macro was only invoked conditionally." >&2;}
13892    { (exit 1); exit 1; }; }
13893 fi
13894 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13895   { { $as_echo "$as_me:$LINENO: error: conditional \"DATAFILES\" was never defined.
13896 Usually this means the macro was only invoked conditionally." >&5
13897 $as_echo "$as_me: error: conditional \"DATAFILES\" was never defined.
13898 Usually this means the macro was only invoked conditionally." >&2;}
13899    { (exit 1); exit 1; }; }
13900 fi
13901
13902 : ${CONFIG_STATUS=./config.status}
13903 ac_write_fail=0
13904 ac_clean_files_save=$ac_clean_files
13905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13906 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13907 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13908 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13909 #! $SHELL
13910 # Generated by $as_me.
13911 # Run this file to recreate the current configuration.
13912 # Compiler output produced by configure, useful for debugging
13913 # configure, is in config.log if it exists.
13914
13915 debug=false
13916 ac_cs_recheck=false
13917 ac_cs_silent=false
13918 SHELL=\${CONFIG_SHELL-$SHELL}
13919 _ACEOF
13920
13921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13922 ## --------------------- ##
13923 ## M4sh Initialization.  ##
13924 ## --------------------- ##
13925
13926 # Be more Bourne compatible
13927 DUALCASE=1; export DUALCASE # for MKS sh
13928 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13929   emulate sh
13930   NULLCMD=:
13931   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13932   # is contrary to our usage.  Disable this feature.
13933   alias -g '${1+"$@"}'='"$@"'
13934   setopt NO_GLOB_SUBST
13935 else
13936   case `(set -o) 2>/dev/null` in
13937   *posix*) set -o posix ;;
13938 esac
13939
13940 fi
13941
13942
13943
13944
13945 # PATH needs CR
13946 # Avoid depending upon Character Ranges.
13947 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13948 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13949 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13950 as_cr_digits='0123456789'
13951 as_cr_alnum=$as_cr_Letters$as_cr_digits
13952
13953 as_nl='
13954 '
13955 export as_nl
13956 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13957 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13960 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13961   as_echo='printf %s\n'
13962   as_echo_n='printf %s'
13963 else
13964   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13965     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13966     as_echo_n='/usr/ucb/echo -n'
13967   else
13968     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13969     as_echo_n_body='eval
13970       arg=$1;
13971       case $arg in
13972       *"$as_nl"*)
13973         expr "X$arg" : "X\\(.*\\)$as_nl";
13974         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13975       esac;
13976       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13977     '
13978     export as_echo_n_body
13979     as_echo_n='sh -c $as_echo_n_body as_echo'
13980   fi
13981   export as_echo_body
13982   as_echo='sh -c $as_echo_body as_echo'
13983 fi
13984
13985 # The user is always right.
13986 if test "${PATH_SEPARATOR+set}" != set; then
13987   PATH_SEPARATOR=:
13988   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13989     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13990       PATH_SEPARATOR=';'
13991   }
13992 fi
13993
13994 # Support unset when possible.
13995 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13996   as_unset=unset
13997 else
13998   as_unset=false
13999 fi
14000
14001
14002 # IFS
14003 # We need space, tab and new line, in precisely that order.  Quoting is
14004 # there to prevent editors from complaining about space-tab.
14005 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14006 # splitting by setting IFS to empty value.)
14007 IFS=" ""        $as_nl"
14008
14009 # Find who we are.  Look in the path if we contain no directory separator.
14010 case $0 in
14011   *[\\/]* ) as_myself=$0 ;;
14012   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14014 do
14015   IFS=$as_save_IFS
14016   test -z "$as_dir" && as_dir=.
14017   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14018 done
14019 IFS=$as_save_IFS
14020
14021      ;;
14022 esac
14023 # We did not find ourselves, most probably we were run as `sh COMMAND'
14024 # in which case we are not to be found in the path.
14025 if test "x$as_myself" = x; then
14026   as_myself=$0
14027 fi
14028 if test ! -f "$as_myself"; then
14029   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14030   { (exit 1); exit 1; }
14031 fi
14032
14033 # Work around bugs in pre-3.0 UWIN ksh.
14034 for as_var in ENV MAIL MAILPATH
14035 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14036 done
14037 PS1='$ '
14038 PS2='> '
14039 PS4='+ '
14040
14041 # NLS nuisances.
14042 LC_ALL=C
14043 export LC_ALL
14044 LANGUAGE=C
14045 export LANGUAGE
14046
14047 # Required to use basename.
14048 if expr a : '\(a\)' >/dev/null 2>&1 &&
14049    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14050   as_expr=expr
14051 else
14052   as_expr=false
14053 fi
14054
14055 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14056   as_basename=basename
14057 else
14058   as_basename=false
14059 fi
14060
14061
14062 # Name of the executable.
14063 as_me=`$as_basename -- "$0" ||
14064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14065          X"$0" : 'X\(//\)$' \| \
14066          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14067 $as_echo X/"$0" |
14068     sed '/^.*\/\([^/][^/]*\)\/*$/{
14069             s//\1/
14070             q
14071           }
14072           /^X\/\(\/\/\)$/{
14073             s//\1/
14074             q
14075           }
14076           /^X\/\(\/\).*/{
14077             s//\1/
14078             q
14079           }
14080           s/.*/./; q'`
14081
14082 # CDPATH.
14083 $as_unset CDPATH
14084
14085
14086
14087   as_lineno_1=$LINENO
14088   as_lineno_2=$LINENO
14089   test "x$as_lineno_1" != "x$as_lineno_2" &&
14090   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14091
14092   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14093   # uniformly replaced by the line number.  The first 'sed' inserts a
14094   # line-number line after each line using $LINENO; the second 'sed'
14095   # does the real work.  The second script uses 'N' to pair each
14096   # line-number line with the line containing $LINENO, and appends
14097   # trailing '-' during substitution so that $LINENO is not a special
14098   # case at line end.
14099   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14100   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14101   # E. McMahon (1931-1989) for sed's syntax.  :-)
14102   sed -n '
14103     p
14104     /[$]LINENO/=
14105   ' <$as_myself |
14106     sed '
14107       s/[$]LINENO.*/&-/
14108       t lineno
14109       b
14110       :lineno
14111       N
14112       :loop
14113       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14114       t loop
14115       s/-\n.*//
14116     ' >$as_me.lineno &&
14117   chmod +x "$as_me.lineno" ||
14118     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14119    { (exit 1); exit 1; }; }
14120
14121   # Don't try to exec as it changes $[0], causing all sort of problems
14122   # (the dirname of $[0] is not the place where we might find the
14123   # original and so on.  Autoconf is especially sensitive to this).
14124   . "./$as_me.lineno"
14125   # Exit status is that of the last command.
14126   exit
14127 }
14128
14129
14130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14131   as_dirname=dirname
14132 else
14133   as_dirname=false
14134 fi
14135
14136 ECHO_C= ECHO_N= ECHO_T=
14137 case `echo -n x` in
14138 -n*)
14139   case `echo 'x\c'` in
14140   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14141   *)   ECHO_C='\c';;
14142   esac;;
14143 *)
14144   ECHO_N='-n';;
14145 esac
14146 if expr a : '\(a\)' >/dev/null 2>&1 &&
14147    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14148   as_expr=expr
14149 else
14150   as_expr=false
14151 fi
14152
14153 rm -f conf$$ conf$$.exe conf$$.file
14154 if test -d conf$$.dir; then
14155   rm -f conf$$.dir/conf$$.file
14156 else
14157   rm -f conf$$.dir
14158   mkdir conf$$.dir 2>/dev/null
14159 fi
14160 if (echo >conf$$.file) 2>/dev/null; then
14161   if ln -s conf$$.file conf$$ 2>/dev/null; then
14162     as_ln_s='ln -s'
14163     # ... but there are two gotchas:
14164     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14165     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14166     # In both cases, we have to default to `cp -p'.
14167     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14168       as_ln_s='cp -p'
14169   elif ln conf$$.file conf$$ 2>/dev/null; then
14170     as_ln_s=ln
14171   else
14172     as_ln_s='cp -p'
14173   fi
14174 else
14175   as_ln_s='cp -p'
14176 fi
14177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14178 rmdir conf$$.dir 2>/dev/null
14179
14180 if mkdir -p . 2>/dev/null; then
14181   as_mkdir_p=:
14182 else
14183   test -d ./-p && rmdir ./-p
14184   as_mkdir_p=false
14185 fi
14186
14187 if test -x / >/dev/null 2>&1; then
14188   as_test_x='test -x'
14189 else
14190   if ls -dL / >/dev/null 2>&1; then
14191     as_ls_L_option=L
14192   else
14193     as_ls_L_option=
14194   fi
14195   as_test_x='
14196     eval sh -c '\''
14197       if test -d "$1"; then
14198         test -d "$1/.";
14199       else
14200         case $1 in
14201         -*)set "./$1";;
14202         esac;
14203         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14204         ???[sx]*):;;*)false;;esac;fi
14205     '\'' sh
14206   '
14207 fi
14208 as_executable_p=$as_test_x
14209
14210 # Sed expression to map a string onto a valid CPP name.
14211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14212
14213 # Sed expression to map a string onto a valid variable name.
14214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14215
14216
14217 exec 6>&1
14218
14219 # Save the log message, to keep $[0] and so on meaningful, and to
14220 # report actual input values of CONFIG_FILES etc. instead of their
14221 # values after options handling.
14222 ac_log="
14223 This file was extended by ofono $as_me 1.4, which was
14224 generated by GNU Autoconf 2.63.  Invocation command line was
14225
14226   CONFIG_FILES    = $CONFIG_FILES
14227   CONFIG_HEADERS  = $CONFIG_HEADERS
14228   CONFIG_LINKS    = $CONFIG_LINKS
14229   CONFIG_COMMANDS = $CONFIG_COMMANDS
14230   $ $0 $@
14231
14232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14233 "
14234
14235 _ACEOF
14236
14237 case $ac_config_files in *"
14238 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14239 esac
14240
14241 case $ac_config_headers in *"
14242 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14243 esac
14244
14245
14246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14247 # Files that config.status was made for.
14248 config_files="$ac_config_files"
14249 config_headers="$ac_config_headers"
14250 config_commands="$ac_config_commands"
14251
14252 _ACEOF
14253
14254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14255 ac_cs_usage="\
14256 \`$as_me' instantiates files from templates according to the
14257 current configuration.
14258
14259 Usage: $0 [OPTION]... [FILE]...
14260
14261   -h, --help       print this help, then exit
14262   -V, --version    print version number and configuration settings, then exit
14263   -q, --quiet, --silent
14264                    do not print progress messages
14265   -d, --debug      don't remove temporary files
14266       --recheck    update $as_me by reconfiguring in the same conditions
14267       --file=FILE[:TEMPLATE]
14268                    instantiate the configuration file FILE
14269       --header=FILE[:TEMPLATE]
14270                    instantiate the configuration header FILE
14271
14272 Configuration files:
14273 $config_files
14274
14275 Configuration headers:
14276 $config_headers
14277
14278 Configuration commands:
14279 $config_commands
14280
14281 Report bugs to <bug-autoconf@gnu.org>."
14282
14283 _ACEOF
14284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14285 ac_cs_version="\\
14286 ofono config.status 1.4
14287 configured by $0, generated by GNU Autoconf 2.63,
14288   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14289
14290 Copyright (C) 2008 Free Software Foundation, Inc.
14291 This config.status script is free software; the Free Software Foundation
14292 gives unlimited permission to copy, distribute and modify it."
14293
14294 ac_pwd='$ac_pwd'
14295 srcdir='$srcdir'
14296 INSTALL='$INSTALL'
14297 MKDIR_P='$MKDIR_P'
14298 AWK='$AWK'
14299 test -n "\$AWK" || AWK=awk
14300 _ACEOF
14301
14302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14303 # The default lists apply if the user does not specify any file.
14304 ac_need_defaults=:
14305 while test $# != 0
14306 do
14307   case $1 in
14308   --*=*)
14309     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14310     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14311     ac_shift=:
14312     ;;
14313   *)
14314     ac_option=$1
14315     ac_optarg=$2
14316     ac_shift=shift
14317     ;;
14318   esac
14319
14320   case $ac_option in
14321   # Handling of the options.
14322   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14323     ac_cs_recheck=: ;;
14324   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14325     $as_echo "$ac_cs_version"; exit ;;
14326   --debug | --debu | --deb | --de | --d | -d )
14327     debug=: ;;
14328   --file | --fil | --fi | --f )
14329     $ac_shift
14330     case $ac_optarg in
14331     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14332     esac
14333     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14334     ac_need_defaults=false;;
14335   --header | --heade | --head | --hea )
14336     $ac_shift
14337     case $ac_optarg in
14338     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14339     esac
14340     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14341     ac_need_defaults=false;;
14342   --he | --h)
14343     # Conflict between --help and --header
14344     { $as_echo "$as_me: error: ambiguous option: $1
14345 Try \`$0 --help' for more information." >&2
14346    { (exit 1); exit 1; }; };;
14347   --help | --hel | -h )
14348     $as_echo "$ac_cs_usage"; exit ;;
14349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14350   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14351     ac_cs_silent=: ;;
14352
14353   # This is an error.
14354   -*) { $as_echo "$as_me: error: unrecognized option: $1
14355 Try \`$0 --help' for more information." >&2
14356    { (exit 1); exit 1; }; } ;;
14357
14358   *) ac_config_targets="$ac_config_targets $1"
14359      ac_need_defaults=false ;;
14360
14361   esac
14362   shift
14363 done
14364
14365 ac_configure_extra_args=
14366
14367 if $ac_cs_silent; then
14368   exec 6>/dev/null
14369   ac_configure_extra_args="$ac_configure_extra_args --silent"
14370 fi
14371
14372 _ACEOF
14373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14374 if \$ac_cs_recheck; then
14375   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14376   shift
14377   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14378   CONFIG_SHELL='$SHELL'
14379   export CONFIG_SHELL
14380   exec "\$@"
14381 fi
14382
14383 _ACEOF
14384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14385 exec 5>>config.log
14386 {
14387   echo
14388   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14389 ## Running $as_me. ##
14390 _ASBOX
14391   $as_echo "$ac_log"
14392 } >&5
14393
14394 _ACEOF
14395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396 #
14397 # INIT-COMMANDS
14398 #
14399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14400
14401
14402 # The HP-UX ksh and POSIX shell print the target directory to stdout
14403 # if CDPATH is set.
14404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14405
14406 sed_quote_subst='$sed_quote_subst'
14407 double_quote_subst='$double_quote_subst'
14408 delay_variable_subst='$delay_variable_subst'
14409 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14410 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14411 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14412 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14413 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14414 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14415 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14416 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14417 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14418 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14419 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14420 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14421 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14422 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14423 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14424 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14425 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14426 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14427 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14428 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14429 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14430 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14431 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14432 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14433 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14434 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14435 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14436 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14437 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14438 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14439 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14440 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14441 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14442 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14443 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14444 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14445 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14446 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14447 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14448 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14449 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14450 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14451 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14452 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14453 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14454 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14455 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14456 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14457 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14458 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14459 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14460 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14461 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14462 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14463 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14464 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14465 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14466 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14467 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14468 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14469 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14470 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14471 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14472 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14473 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14474 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14475 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14476 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14477 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14478 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14479 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14480 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14481 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14482 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14483 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14484 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14485 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14486 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14487 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14488 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14489 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14490 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14491 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14492 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14493 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14494 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14495 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14496 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14497 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14498 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14499 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14500 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14501 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14502 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14503 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14504 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14505 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14506 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14507 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14508 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14509 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14510 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14511 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14512 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14513 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14514 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14515 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14516 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14517 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14518 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14519 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14520 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14521 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14522 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14523 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14524 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14525 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14526 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14527
14528 LTCC='$LTCC'
14529 LTCFLAGS='$LTCFLAGS'
14530 compiler='$compiler_DEFAULT'
14531
14532 # Quote evaled strings.
14533 for var in SED \
14534 GREP \
14535 EGREP \
14536 FGREP \
14537 LD \
14538 NM \
14539 LN_S \
14540 lt_SP2NL \
14541 lt_NL2SP \
14542 reload_flag \
14543 OBJDUMP \
14544 deplibs_check_method \
14545 file_magic_cmd \
14546 AR \
14547 AR_FLAGS \
14548 STRIP \
14549 RANLIB \
14550 CC \
14551 CFLAGS \
14552 compiler \
14553 lt_cv_sys_global_symbol_pipe \
14554 lt_cv_sys_global_symbol_to_cdecl \
14555 lt_cv_sys_global_symbol_to_c_name_address \
14556 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14557 SHELL \
14558 ECHO \
14559 lt_prog_compiler_no_builtin_flag \
14560 lt_prog_compiler_wl \
14561 lt_prog_compiler_pic \
14562 lt_prog_compiler_static \
14563 lt_cv_prog_compiler_c_o \
14564 need_locks \
14565 DSYMUTIL \
14566 NMEDIT \
14567 LIPO \
14568 OTOOL \
14569 OTOOL64 \
14570 shrext_cmds \
14571 export_dynamic_flag_spec \
14572 whole_archive_flag_spec \
14573 compiler_needs_object \
14574 with_gnu_ld \
14575 allow_undefined_flag \
14576 no_undefined_flag \
14577 hardcode_libdir_flag_spec \
14578 hardcode_libdir_flag_spec_ld \
14579 hardcode_libdir_separator \
14580 fix_srcfile_path \
14581 exclude_expsyms \
14582 include_expsyms \
14583 file_list_spec \
14584 variables_saved_for_relink \
14585 libname_spec \
14586 library_names_spec \
14587 soname_spec \
14588 finish_eval \
14589 old_striplib \
14590 striplib; do
14591     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14592     *[\\\\\\\`\\"\\\$]*)
14593       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14594       ;;
14595     *)
14596       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14597       ;;
14598     esac
14599 done
14600
14601 # Double-quote double-evaled strings.
14602 for var in reload_cmds \
14603 old_postinstall_cmds \
14604 old_postuninstall_cmds \
14605 old_archive_cmds \
14606 extract_expsyms_cmds \
14607 old_archive_from_new_cmds \
14608 old_archive_from_expsyms_cmds \
14609 archive_cmds \
14610 archive_expsym_cmds \
14611 module_cmds \
14612 module_expsym_cmds \
14613 export_symbols_cmds \
14614 prelink_cmds \
14615 postinstall_cmds \
14616 postuninstall_cmds \
14617 finish_cmds \
14618 sys_lib_search_path_spec \
14619 sys_lib_dlsearch_path_spec; do
14620     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14621     *[\\\\\\\`\\"\\\$]*)
14622       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14623       ;;
14624     *)
14625       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14626       ;;
14627     esac
14628 done
14629
14630 # Fix-up fallback echo if it was mangled by the above quoting rules.
14631 case \$lt_ECHO in
14632 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14633   ;;
14634 esac
14635
14636 ac_aux_dir='$ac_aux_dir'
14637 xsi_shell='$xsi_shell'
14638 lt_shell_append='$lt_shell_append'
14639
14640 # See if we are running on zsh, and set the options which allow our
14641 # commands through without removal of \ escapes INIT.
14642 if test -n "\${ZSH_VERSION+set}" ; then
14643    setopt NO_GLOB_SUBST
14644 fi
14645
14646
14647     PACKAGE='$PACKAGE'
14648     VERSION='$VERSION'
14649     TIMESTAMP='$TIMESTAMP'
14650     RM='$RM'
14651     ofile='$ofile'
14652
14653
14654
14655
14656 _ACEOF
14657
14658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14659
14660 # Handling of arguments.
14661 for ac_config_target in $ac_config_targets
14662 do
14663   case $ac_config_target in
14664     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14665     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14666     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14667     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14668     "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14669     "src/ofono.service") CONFIG_FILES="$CONFIG_FILES src/ofono.service" ;;
14670     "ofono.pc") CONFIG_FILES="$CONFIG_FILES ofono.pc" ;;
14671
14672   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14673 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14674    { (exit 1); exit 1; }; };;
14675   esac
14676 done
14677
14678
14679 # If the user did not use the arguments to specify the items to instantiate,
14680 # then the envvar interface is used.  Set only those that are not.
14681 # We use the long form for the default assignment because of an extremely
14682 # bizarre bug on SunOS 4.1.3.
14683 if $ac_need_defaults; then
14684   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14685   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14686   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14687 fi
14688
14689 # Have a temporary directory for convenience.  Make it in the build tree
14690 # simply because there is no reason against having it here, and in addition,
14691 # creating and moving files from /tmp can sometimes cause problems.
14692 # Hook for its removal unless debugging.
14693 # Note that there is a small window in which the directory will not be cleaned:
14694 # after its creation but before its name has been assigned to `$tmp'.
14695 $debug ||
14696 {
14697   tmp=
14698   trap 'exit_status=$?
14699   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14700 ' 0
14701   trap '{ (exit 1); exit 1; }' 1 2 13 15
14702 }
14703 # Create a (secure) tmp directory for tmp files.
14704
14705 {
14706   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14707   test -n "$tmp" && test -d "$tmp"
14708 }  ||
14709 {
14710   tmp=./conf$$-$RANDOM
14711   (umask 077 && mkdir "$tmp")
14712 } ||
14713 {
14714    $as_echo "$as_me: cannot create a temporary directory in ." >&2
14715    { (exit 1); exit 1; }
14716 }
14717
14718 # Set up the scripts for CONFIG_FILES section.
14719 # No need to generate them if there are no CONFIG_FILES.
14720 # This happens for instance with `./config.status config.h'.
14721 if test -n "$CONFIG_FILES"; then
14722
14723
14724 ac_cr='\r'
14725 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14726 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14727   ac_cs_awk_cr='\\r'
14728 else
14729   ac_cs_awk_cr=$ac_cr
14730 fi
14731
14732 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14733 _ACEOF
14734
14735
14736 {
14737   echo "cat >conf$$subs.awk <<_ACEOF" &&
14738   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14739   echo "_ACEOF"
14740 } >conf$$subs.sh ||
14741   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14742 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14743    { (exit 1); exit 1; }; }
14744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14745 ac_delim='%!_!# '
14746 for ac_last_try in false false false false false :; do
14747   . ./conf$$subs.sh ||
14748     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14749 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14750    { (exit 1); exit 1; }; }
14751
14752   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14753   if test $ac_delim_n = $ac_delim_num; then
14754     break
14755   elif $ac_last_try; then
14756     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14757 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14758    { (exit 1); exit 1; }; }
14759   else
14760     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14761   fi
14762 done
14763 rm -f conf$$subs.sh
14764
14765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14766 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14767 _ACEOF
14768 sed -n '
14769 h
14770 s/^/S["/; s/!.*/"]=/
14771 p
14772 g
14773 s/^[^!]*!//
14774 :repl
14775 t repl
14776 s/'"$ac_delim"'$//
14777 t delim
14778 :nl
14779 h
14780 s/\(.\{148\}\).*/\1/
14781 t more1
14782 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14783 p
14784 n
14785 b repl
14786 :more1
14787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14788 p
14789 g
14790 s/.\{148\}//
14791 t nl
14792 :delim
14793 h
14794 s/\(.\{148\}\).*/\1/
14795 t more2
14796 s/["\\]/\\&/g; s/^/"/; s/$/"/
14797 p
14798 b
14799 :more2
14800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14801 p
14802 g
14803 s/.\{148\}//
14804 t delim
14805 ' <conf$$subs.awk | sed '
14806 /^[^""]/{
14807   N
14808   s/\n//
14809 }
14810 ' >>$CONFIG_STATUS || ac_write_fail=1
14811 rm -f conf$$subs.awk
14812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14813 _ACAWK
14814 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14815   for (key in S) S_is_set[key] = 1
14816   FS = "\a"
14817
14818 }
14819 {
14820   line = $ 0
14821   nfields = split(line, field, "@")
14822   substed = 0
14823   len = length(field[1])
14824   for (i = 2; i < nfields; i++) {
14825     key = field[i]
14826     keylen = length(key)
14827     if (S_is_set[key]) {
14828       value = S[key]
14829       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14830       len += length(value) + length(field[++i])
14831       substed = 1
14832     } else
14833       len += 1 + keylen
14834   }
14835
14836   print line
14837 }
14838
14839 _ACAWK
14840 _ACEOF
14841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14842 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14843   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14844 else
14845   cat
14846 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14847   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14848 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14849    { (exit 1); exit 1; }; }
14850 _ACEOF
14851
14852 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14854 # trailing colons and then remove the whole line if VPATH becomes empty
14855 # (actually we leave an empty line to preserve line numbers).
14856 if test "x$srcdir" = x.; then
14857   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14858 s/:*\$(srcdir):*/:/
14859 s/:*\${srcdir}:*/:/
14860 s/:*@srcdir@:*/:/
14861 s/^\([^=]*=[     ]*\):*/\1/
14862 s/:*$//
14863 s/^[^=]*=[       ]*$//
14864 }'
14865 fi
14866
14867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14868 fi # test -n "$CONFIG_FILES"
14869
14870 # Set up the scripts for CONFIG_HEADERS section.
14871 # No need to generate them if there are no CONFIG_HEADERS.
14872 # This happens for instance with `./config.status Makefile'.
14873 if test -n "$CONFIG_HEADERS"; then
14874 cat >"$tmp/defines.awk" <<\_ACAWK ||
14875 BEGIN {
14876 _ACEOF
14877
14878 # Transform confdefs.h into an awk script `defines.awk', embedded as
14879 # here-document in config.status, that substitutes the proper values into
14880 # config.h.in to produce config.h.
14881
14882 # Create a delimiter string that does not exist in confdefs.h, to ease
14883 # handling of long lines.
14884 ac_delim='%!_!# '
14885 for ac_last_try in false false :; do
14886   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14887   if test -z "$ac_t"; then
14888     break
14889   elif $ac_last_try; then
14890     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14891 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14892    { (exit 1); exit 1; }; }
14893   else
14894     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14895   fi
14896 done
14897
14898 # For the awk script, D is an array of macro values keyed by name,
14899 # likewise P contains macro parameters if any.  Preserve backslash
14900 # newline sequences.
14901
14902 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14903 sed -n '
14904 s/.\{148\}/&'"$ac_delim"'/g
14905 t rset
14906 :rset
14907 s/^[     ]*#[    ]*define[       ][      ]*/ /
14908 t def
14909 d
14910 :def
14911 s/\\$//
14912 t bsnl
14913 s/["\\]/\\&/g
14914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14915 D["\1"]=" \3"/p
14916 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14917 d
14918 :bsnl
14919 s/["\\]/\\&/g
14920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14921 D["\1"]=" \3\\\\\\n"\\/p
14922 t cont
14923 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14924 t cont
14925 d
14926 :cont
14927 n
14928 s/.\{148\}/&'"$ac_delim"'/g
14929 t clear
14930 :clear
14931 s/\\$//
14932 t bsnlc
14933 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14934 d
14935 :bsnlc
14936 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14937 b cont
14938 ' <confdefs.h | sed '
14939 s/'"$ac_delim"'/"\\\
14940 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14941
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943   for (key in D) D_is_set[key] = 1
14944   FS = "\a"
14945 }
14946 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14947   line = \$ 0
14948   split(line, arg, " ")
14949   if (arg[1] == "#") {
14950     defundef = arg[2]
14951     mac1 = arg[3]
14952   } else {
14953     defundef = substr(arg[1], 2)
14954     mac1 = arg[2]
14955   }
14956   split(mac1, mac2, "(") #)
14957   macro = mac2[1]
14958   prefix = substr(line, 1, index(line, defundef) - 1)
14959   if (D_is_set[macro]) {
14960     # Preserve the white space surrounding the "#".
14961     print prefix "define", macro P[macro] D[macro]
14962     next
14963   } else {
14964     # Replace #undef with comments.  This is necessary, for example,
14965     # in the case of _POSIX_SOURCE, which is predefined and required
14966     # on some systems where configure will not decide to define it.
14967     if (defundef == "undef") {
14968       print "/*", prefix defundef, macro, "*/"
14969       next
14970     }
14971   }
14972 }
14973 { print }
14974 _ACAWK
14975 _ACEOF
14976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14977   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14978 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14979    { (exit 1); exit 1; }; }
14980 fi # test -n "$CONFIG_HEADERS"
14981
14982
14983 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14984 shift
14985 for ac_tag
14986 do
14987   case $ac_tag in
14988   :[FHLC]) ac_mode=$ac_tag; continue;;
14989   esac
14990   case $ac_mode$ac_tag in
14991   :[FHL]*:*);;
14992   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14993 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14994    { (exit 1); exit 1; }; };;
14995   :[FH]-) ac_tag=-:-;;
14996   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14997   esac
14998   ac_save_IFS=$IFS
14999   IFS=:
15000   set x $ac_tag
15001   IFS=$ac_save_IFS
15002   shift
15003   ac_file=$1
15004   shift
15005
15006   case $ac_mode in
15007   :L) ac_source=$1;;
15008   :[FH])
15009     ac_file_inputs=
15010     for ac_f
15011     do
15012       case $ac_f in
15013       -) ac_f="$tmp/stdin";;
15014       *) # Look for the file first in the build tree, then in the source tree
15015          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15016          # because $ac_f cannot contain `:'.
15017          test -f "$ac_f" ||
15018            case $ac_f in
15019            [\\/$]*) false;;
15020            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15021            esac ||
15022            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15023 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15024    { (exit 1); exit 1; }; };;
15025       esac
15026       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15027       ac_file_inputs="$ac_file_inputs '$ac_f'"
15028     done
15029
15030     # Let's still pretend it is `configure' which instantiates (i.e., don't
15031     # use $as_me), people would be surprised to read:
15032     #    /* config.h.  Generated by config.status.  */
15033     configure_input='Generated from '`
15034           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15035         `' by configure.'
15036     if test x"$ac_file" != x-; then
15037       configure_input="$ac_file.  $configure_input"
15038       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15039 $as_echo "$as_me: creating $ac_file" >&6;}
15040     fi
15041     # Neutralize special characters interpreted by sed in replacement strings.
15042     case $configure_input in #(
15043     *\&* | *\|* | *\\* )
15044        ac_sed_conf_input=`$as_echo "$configure_input" |
15045        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15046     *) ac_sed_conf_input=$configure_input;;
15047     esac
15048
15049     case $ac_tag in
15050     *:-:* | *:-) cat >"$tmp/stdin" \
15051       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15053    { (exit 1); exit 1; }; } ;;
15054     esac
15055     ;;
15056   esac
15057
15058   ac_dir=`$as_dirname -- "$ac_file" ||
15059 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15060          X"$ac_file" : 'X\(//\)[^/]' \| \
15061          X"$ac_file" : 'X\(//\)$' \| \
15062          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15063 $as_echo X"$ac_file" |
15064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15065             s//\1/
15066             q
15067           }
15068           /^X\(\/\/\)[^/].*/{
15069             s//\1/
15070             q
15071           }
15072           /^X\(\/\/\)$/{
15073             s//\1/
15074             q
15075           }
15076           /^X\(\/\).*/{
15077             s//\1/
15078             q
15079           }
15080           s/.*/./; q'`
15081   { as_dir="$ac_dir"
15082   case $as_dir in #(
15083   -*) as_dir=./$as_dir;;
15084   esac
15085   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15086     as_dirs=
15087     while :; do
15088       case $as_dir in #(
15089       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15090       *) as_qdir=$as_dir;;
15091       esac
15092       as_dirs="'$as_qdir' $as_dirs"
15093       as_dir=`$as_dirname -- "$as_dir" ||
15094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15095          X"$as_dir" : 'X\(//\)[^/]' \| \
15096          X"$as_dir" : 'X\(//\)$' \| \
15097          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15098 $as_echo X"$as_dir" |
15099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15100             s//\1/
15101             q
15102           }
15103           /^X\(\/\/\)[^/].*/{
15104             s//\1/
15105             q
15106           }
15107           /^X\(\/\/\)$/{
15108             s//\1/
15109             q
15110           }
15111           /^X\(\/\).*/{
15112             s//\1/
15113             q
15114           }
15115           s/.*/./; q'`
15116       test -d "$as_dir" && break
15117     done
15118     test -z "$as_dirs" || eval "mkdir $as_dirs"
15119   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15120 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15121    { (exit 1); exit 1; }; }; }
15122   ac_builddir=.
15123
15124 case "$ac_dir" in
15125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15126 *)
15127   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15128   # A ".." for each directory in $ac_dir_suffix.
15129   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15130   case $ac_top_builddir_sub in
15131   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15132   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15133   esac ;;
15134 esac
15135 ac_abs_top_builddir=$ac_pwd
15136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15137 # for backward compatibility:
15138 ac_top_builddir=$ac_top_build_prefix
15139
15140 case $srcdir in
15141   .)  # We are building in place.
15142     ac_srcdir=.
15143     ac_top_srcdir=$ac_top_builddir_sub
15144     ac_abs_top_srcdir=$ac_pwd ;;
15145   [\\/]* | ?:[\\/]* )  # Absolute name.
15146     ac_srcdir=$srcdir$ac_dir_suffix;
15147     ac_top_srcdir=$srcdir
15148     ac_abs_top_srcdir=$srcdir ;;
15149   *) # Relative name.
15150     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15151     ac_top_srcdir=$ac_top_build_prefix$srcdir
15152     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15153 esac
15154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15155
15156
15157   case $ac_mode in
15158   :F)
15159   #
15160   # CONFIG_FILE
15161   #
15162
15163   case $INSTALL in
15164   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15165   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15166   esac
15167   ac_MKDIR_P=$MKDIR_P
15168   case $MKDIR_P in
15169   [\\/$]* | ?:[\\/]* ) ;;
15170   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15171   esac
15172 _ACEOF
15173
15174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15175 # If the template does not know about datarootdir, expand it.
15176 # FIXME: This hack should be removed a few years after 2.60.
15177 ac_datarootdir_hack=; ac_datarootdir_seen=
15178
15179 ac_sed_dataroot='
15180 /datarootdir/ {
15181   p
15182   q
15183 }
15184 /@datadir@/p
15185 /@docdir@/p
15186 /@infodir@/p
15187 /@localedir@/p
15188 /@mandir@/p
15189 '
15190 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15191 *datarootdir*) ac_datarootdir_seen=yes;;
15192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15193   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15194 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15195 _ACEOF
15196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15197   ac_datarootdir_hack='
15198   s&@datadir@&$datadir&g
15199   s&@docdir@&$docdir&g
15200   s&@infodir@&$infodir&g
15201   s&@localedir@&$localedir&g
15202   s&@mandir@&$mandir&g
15203     s&\\\${datarootdir}&$datarootdir&g' ;;
15204 esac
15205 _ACEOF
15206
15207 # Neutralize VPATH when `$srcdir' = `.'.
15208 # Shell code in configure.ac might set extrasub.
15209 # FIXME: do we really want to maintain this feature?
15210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15211 ac_sed_extra="$ac_vpsub
15212 $extrasub
15213 _ACEOF
15214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15215 :t
15216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15217 s|@configure_input@|$ac_sed_conf_input|;t t
15218 s&@top_builddir@&$ac_top_builddir_sub&;t t
15219 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15220 s&@srcdir@&$ac_srcdir&;t t
15221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15222 s&@top_srcdir@&$ac_top_srcdir&;t t
15223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15224 s&@builddir@&$ac_builddir&;t t
15225 s&@abs_builddir@&$ac_abs_builddir&;t t
15226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15227 s&@INSTALL@&$ac_INSTALL&;t t
15228 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15229 $ac_datarootdir_hack
15230 "
15231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15232   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15233 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15234    { (exit 1); exit 1; }; }
15235
15236 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15237   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15238   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15239   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15240 which seems to be undefined.  Please make sure it is defined." >&5
15241 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15242 which seems to be undefined.  Please make sure it is defined." >&2;}
15243
15244   rm -f "$tmp/stdin"
15245   case $ac_file in
15246   -) cat "$tmp/out" && rm -f "$tmp/out";;
15247   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15248   esac \
15249   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15250 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15251    { (exit 1); exit 1; }; }
15252  ;;
15253   :H)
15254   #
15255   # CONFIG_HEADER
15256   #
15257   if test x"$ac_file" != x-; then
15258     {
15259       $as_echo "/* $configure_input  */" \
15260       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15261     } >"$tmp/config.h" \
15262       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15263 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15264    { (exit 1); exit 1; }; }
15265     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15266       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15268     else
15269       rm -f "$ac_file"
15270       mv "$tmp/config.h" "$ac_file" \
15271         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15272 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15273    { (exit 1); exit 1; }; }
15274     fi
15275   else
15276     $as_echo "/* $configure_input  */" \
15277       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15278       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15279 $as_echo "$as_me: error: could not create -" >&2;}
15280    { (exit 1); exit 1; }; }
15281   fi
15282 # Compute "$ac_file"'s index in $config_headers.
15283 _am_arg="$ac_file"
15284 _am_stamp_count=1
15285 for _am_header in $config_headers :; do
15286   case $_am_header in
15287     $_am_arg | $_am_arg:* )
15288       break ;;
15289     * )
15290       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15291   esac
15292 done
15293 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15294 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15295          X"$_am_arg" : 'X\(//\)[^/]' \| \
15296          X"$_am_arg" : 'X\(//\)$' \| \
15297          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15298 $as_echo X"$_am_arg" |
15299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15300             s//\1/
15301             q
15302           }
15303           /^X\(\/\/\)[^/].*/{
15304             s//\1/
15305             q
15306           }
15307           /^X\(\/\/\)$/{
15308             s//\1/
15309             q
15310           }
15311           /^X\(\/\).*/{
15312             s//\1/
15313             q
15314           }
15315           s/.*/./; q'`/stamp-h$_am_stamp_count
15316  ;;
15317
15318   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15319 $as_echo "$as_me: executing $ac_file commands" >&6;}
15320  ;;
15321   esac
15322
15323
15324   case $ac_file$ac_mode in
15325     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15326   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15327   # are listed without --file.  Let's play safe and only enable the eval
15328   # if we detect the quoting.
15329   case $CONFIG_FILES in
15330   *\'*) eval set x "$CONFIG_FILES" ;;
15331   *)   set x $CONFIG_FILES ;;
15332   esac
15333   shift
15334   for mf
15335   do
15336     # Strip MF so we end up with the name of the file.
15337     mf=`echo "$mf" | sed -e 's/:.*$//'`
15338     # Check whether this is an Automake generated Makefile or not.
15339     # We used to match only the files named `Makefile.in', but
15340     # some people rename them; so instead we look at the file content.
15341     # Grep'ing the first line is not enough: some people post-process
15342     # each Makefile.in and add a new line on top of each file to say so.
15343     # Grep'ing the whole file is not good either: AIX grep has a line
15344     # limit of 2048, but all sed's we know have understand at least 4000.
15345     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15346       dirpart=`$as_dirname -- "$mf" ||
15347 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15348          X"$mf" : 'X\(//\)[^/]' \| \
15349          X"$mf" : 'X\(//\)$' \| \
15350          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15351 $as_echo X"$mf" |
15352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15353             s//\1/
15354             q
15355           }
15356           /^X\(\/\/\)[^/].*/{
15357             s//\1/
15358             q
15359           }
15360           /^X\(\/\/\)$/{
15361             s//\1/
15362             q
15363           }
15364           /^X\(\/\).*/{
15365             s//\1/
15366             q
15367           }
15368           s/.*/./; q'`
15369     else
15370       continue
15371     fi
15372     # Extract the definition of DEPDIR, am__include, and am__quote
15373     # from the Makefile without running `make'.
15374     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15375     test -z "$DEPDIR" && continue
15376     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15377     test -z "am__include" && continue
15378     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15379     # When using ansi2knr, U may be empty or an underscore; expand it
15380     U=`sed -n 's/^U = //p' < "$mf"`
15381     # Find all dependency output files, they are included files with
15382     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15383     # simplest approach to changing $(DEPDIR) to its actual value in the
15384     # expansion.
15385     for file in `sed -n "
15386       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15387          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15388       # Make sure the directory exists.
15389       test -f "$dirpart/$file" && continue
15390       fdir=`$as_dirname -- "$file" ||
15391 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15392          X"$file" : 'X\(//\)[^/]' \| \
15393          X"$file" : 'X\(//\)$' \| \
15394          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15395 $as_echo X"$file" |
15396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15397             s//\1/
15398             q
15399           }
15400           /^X\(\/\/\)[^/].*/{
15401             s//\1/
15402             q
15403           }
15404           /^X\(\/\/\)$/{
15405             s//\1/
15406             q
15407           }
15408           /^X\(\/\).*/{
15409             s//\1/
15410             q
15411           }
15412           s/.*/./; q'`
15413       { as_dir=$dirpart/$fdir
15414   case $as_dir in #(
15415   -*) as_dir=./$as_dir;;
15416   esac
15417   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15418     as_dirs=
15419     while :; do
15420       case $as_dir in #(
15421       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15422       *) as_qdir=$as_dir;;
15423       esac
15424       as_dirs="'$as_qdir' $as_dirs"
15425       as_dir=`$as_dirname -- "$as_dir" ||
15426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15427          X"$as_dir" : 'X\(//\)[^/]' \| \
15428          X"$as_dir" : 'X\(//\)$' \| \
15429          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15430 $as_echo X"$as_dir" |
15431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15432             s//\1/
15433             q
15434           }
15435           /^X\(\/\/\)[^/].*/{
15436             s//\1/
15437             q
15438           }
15439           /^X\(\/\/\)$/{
15440             s//\1/
15441             q
15442           }
15443           /^X\(\/\).*/{
15444             s//\1/
15445             q
15446           }
15447           s/.*/./; q'`
15448       test -d "$as_dir" && break
15449     done
15450     test -z "$as_dirs" || eval "mkdir $as_dirs"
15451   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15452 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15453    { (exit 1); exit 1; }; }; }
15454       # echo "creating $dirpart/$file"
15455       echo '# dummy' > "$dirpart/$file"
15456     done
15457   done
15458 }
15459  ;;
15460     "libtool":C)
15461
15462     # See if we are running on zsh, and set the options which allow our
15463     # commands through without removal of \ escapes.
15464     if test -n "${ZSH_VERSION+set}" ; then
15465       setopt NO_GLOB_SUBST
15466     fi
15467
15468     cfgfile="${ofile}T"
15469     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15470     $RM "$cfgfile"
15471
15472     cat <<_LT_EOF >> "$cfgfile"
15473 #! $SHELL
15474
15475 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15476 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15477 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15478 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15479 #
15480 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15481 #                 2006, 2007, 2008 Free Software Foundation, Inc.
15482 #   Written by Gordon Matzigkeit, 1996
15483 #
15484 #   This file is part of GNU Libtool.
15485 #
15486 # GNU Libtool is free software; you can redistribute it and/or
15487 # modify it under the terms of the GNU General Public License as
15488 # published by the Free Software Foundation; either version 2 of
15489 # the License, or (at your option) any later version.
15490 #
15491 # As a special exception to the GNU General Public License,
15492 # if you distribute this file as part of a program or library that
15493 # is built using GNU Libtool, you may include this file under the
15494 # same distribution terms that you use for the rest of that program.
15495 #
15496 # GNU Libtool is distributed in the hope that it will be useful,
15497 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15499 # GNU General Public License for more details.
15500 #
15501 # You should have received a copy of the GNU General Public License
15502 # along with GNU Libtool; see the file COPYING.  If not, a copy
15503 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15504 # obtained by writing to the Free Software Foundation, Inc.,
15505 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15506
15507
15508 # The names of the tagged configurations supported by this script.
15509 available_tags=""
15510
15511 # ### BEGIN LIBTOOL CONFIG
15512
15513 # Whether or not to build static libraries.
15514 build_old_libs=$enable_static
15515
15516 # Which release of libtool.m4 was used?
15517 macro_version=$macro_version
15518 macro_revision=$macro_revision
15519
15520 # Whether or not to build shared libraries.
15521 build_libtool_libs=$enable_shared
15522
15523 # What type of objects to build.
15524 pic_mode=$pic_mode
15525
15526 # Whether or not to optimize for fast installation.
15527 fast_install=$enable_fast_install
15528
15529 # The host system.
15530 host_alias=$host_alias
15531 host=$host
15532 host_os=$host_os
15533
15534 # The build system.
15535 build_alias=$build_alias
15536 build=$build
15537 build_os=$build_os
15538
15539 # A sed program that does not truncate output.
15540 SED=$lt_SED
15541
15542 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15543 Xsed="\$SED -e 1s/^X//"
15544
15545 # A grep program that handles long lines.
15546 GREP=$lt_GREP
15547
15548 # An ERE matcher.
15549 EGREP=$lt_EGREP
15550
15551 # A literal string matcher.
15552 FGREP=$lt_FGREP
15553
15554 # A BSD- or MS-compatible name lister.
15555 NM=$lt_NM
15556
15557 # Whether we need soft or hard links.
15558 LN_S=$lt_LN_S
15559
15560 # What is the maximum length of a command?
15561 max_cmd_len=$max_cmd_len
15562
15563 # Object file suffix (normally "o").
15564 objext=$ac_objext
15565
15566 # Executable file suffix (normally "").
15567 exeext=$exeext
15568
15569 # whether the shell understands "unset".
15570 lt_unset=$lt_unset
15571
15572 # turn spaces into newlines.
15573 SP2NL=$lt_lt_SP2NL
15574
15575 # turn newlines into spaces.
15576 NL2SP=$lt_lt_NL2SP
15577
15578 # How to create reloadable object files.
15579 reload_flag=$lt_reload_flag
15580 reload_cmds=$lt_reload_cmds
15581
15582 # An object symbol dumper.
15583 OBJDUMP=$lt_OBJDUMP
15584
15585 # Method to check whether dependent libraries are shared objects.
15586 deplibs_check_method=$lt_deplibs_check_method
15587
15588 # Command to use when deplibs_check_method == "file_magic".
15589 file_magic_cmd=$lt_file_magic_cmd
15590
15591 # The archiver.
15592 AR=$lt_AR
15593 AR_FLAGS=$lt_AR_FLAGS
15594
15595 # A symbol stripping program.
15596 STRIP=$lt_STRIP
15597
15598 # Commands used to install an old-style archive.
15599 RANLIB=$lt_RANLIB
15600 old_postinstall_cmds=$lt_old_postinstall_cmds
15601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15602
15603 # A C compiler.
15604 LTCC=$lt_CC
15605
15606 # LTCC compiler flags.
15607 LTCFLAGS=$lt_CFLAGS
15608
15609 # Take the output of nm and produce a listing of raw symbols and C names.
15610 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15611
15612 # Transform the output of nm in a proper C declaration.
15613 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15614
15615 # Transform the output of nm in a C name address pair.
15616 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15617
15618 # Transform the output of nm in a C name address pair when lib prefix is needed.
15619 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15620
15621 # The name of the directory that contains temporary libtool files.
15622 objdir=$objdir
15623
15624 # Shell to use when invoking shell scripts.
15625 SHELL=$lt_SHELL
15626
15627 # An echo program that does not interpret backslashes.
15628 ECHO=$lt_ECHO
15629
15630 # Used to examine libraries when file_magic_cmd begins with "file".
15631 MAGIC_CMD=$MAGIC_CMD
15632
15633 # Must we lock files when doing compilation?
15634 need_locks=$lt_need_locks
15635
15636 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15637 DSYMUTIL=$lt_DSYMUTIL
15638
15639 # Tool to change global to local symbols on Mac OS X.
15640 NMEDIT=$lt_NMEDIT
15641
15642 # Tool to manipulate fat objects and archives on Mac OS X.
15643 LIPO=$lt_LIPO
15644
15645 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15646 OTOOL=$lt_OTOOL
15647
15648 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15649 OTOOL64=$lt_OTOOL64
15650
15651 # Old archive suffix (normally "a").
15652 libext=$libext
15653
15654 # Shared library suffix (normally ".so").
15655 shrext_cmds=$lt_shrext_cmds
15656
15657 # The commands to extract the exported symbol list from a shared archive.
15658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15659
15660 # Variables whose values should be saved in libtool wrapper scripts and
15661 # restored at link time.
15662 variables_saved_for_relink=$lt_variables_saved_for_relink
15663
15664 # Do we need the "lib" prefix for modules?
15665 need_lib_prefix=$need_lib_prefix
15666
15667 # Do we need a version for libraries?
15668 need_version=$need_version
15669
15670 # Library versioning type.
15671 version_type=$version_type
15672
15673 # Shared library runtime path variable.
15674 runpath_var=$runpath_var
15675
15676 # Shared library path variable.
15677 shlibpath_var=$shlibpath_var
15678
15679 # Is shlibpath searched before the hard-coded library search path?
15680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15681
15682 # Format of library name prefix.
15683 libname_spec=$lt_libname_spec
15684
15685 # List of archive names.  First name is the real one, the rest are links.
15686 # The last name is the one that the linker finds with -lNAME
15687 library_names_spec=$lt_library_names_spec
15688
15689 # The coded name of the library, if different from the real name.
15690 soname_spec=$lt_soname_spec
15691
15692 # Command to use after installation of a shared archive.
15693 postinstall_cmds=$lt_postinstall_cmds
15694
15695 # Command to use after uninstallation of a shared archive.
15696 postuninstall_cmds=$lt_postuninstall_cmds
15697
15698 # Commands used to finish a libtool library installation in a directory.
15699 finish_cmds=$lt_finish_cmds
15700
15701 # As "finish_cmds", except a single script fragment to be evaled but
15702 # not shown.
15703 finish_eval=$lt_finish_eval
15704
15705 # Whether we should hardcode library paths into libraries.
15706 hardcode_into_libs=$hardcode_into_libs
15707
15708 # Compile-time system search path for libraries.
15709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15710
15711 # Run-time system search path for libraries.
15712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15713
15714 # Whether dlopen is supported.
15715 dlopen_support=$enable_dlopen
15716
15717 # Whether dlopen of programs is supported.
15718 dlopen_self=$enable_dlopen_self
15719
15720 # Whether dlopen of statically linked programs is supported.
15721 dlopen_self_static=$enable_dlopen_self_static
15722
15723 # Commands to strip libraries.
15724 old_striplib=$lt_old_striplib
15725 striplib=$lt_striplib
15726
15727
15728 # The linker used to build libraries.
15729 LD=$lt_LD
15730
15731 # Commands used to build an old-style archive.
15732 old_archive_cmds=$lt_old_archive_cmds
15733
15734 # A language specific compiler.
15735 CC=$lt_compiler
15736
15737 # Is the compiler the GNU compiler?
15738 with_gcc=$GCC
15739
15740 # Compiler flag to turn off builtin functions.
15741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15742
15743 # How to pass a linker flag through the compiler.
15744 wl=$lt_lt_prog_compiler_wl
15745
15746 # Additional compiler flags for building library objects.
15747 pic_flag=$lt_lt_prog_compiler_pic
15748
15749 # Compiler flag to prevent dynamic linking.
15750 link_static_flag=$lt_lt_prog_compiler_static
15751
15752 # Does compiler simultaneously support -c and -o options?
15753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15754
15755 # Whether or not to add -lc for building shared libraries.
15756 build_libtool_need_lc=$archive_cmds_need_lc
15757
15758 # Whether or not to disallow shared libs when runtime libs are static.
15759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15760
15761 # Compiler flag to allow reflexive dlopens.
15762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15763
15764 # Compiler flag to generate shared objects directly from archives.
15765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15766
15767 # Whether the compiler copes with passing no objects directly.
15768 compiler_needs_object=$lt_compiler_needs_object
15769
15770 # Create an old-style archive from a shared archive.
15771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15772
15773 # Create a temporary old-style archive to link instead of a shared archive.
15774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15775
15776 # Commands used to build a shared archive.
15777 archive_cmds=$lt_archive_cmds
15778 archive_expsym_cmds=$lt_archive_expsym_cmds
15779
15780 # Commands used to build a loadable module if different from building
15781 # a shared archive.
15782 module_cmds=$lt_module_cmds
15783 module_expsym_cmds=$lt_module_expsym_cmds
15784
15785 # Whether we are building with GNU ld or not.
15786 with_gnu_ld=$lt_with_gnu_ld
15787
15788 # Flag that allows shared libraries with undefined symbols to be built.
15789 allow_undefined_flag=$lt_allow_undefined_flag
15790
15791 # Flag that enforces no undefined symbols.
15792 no_undefined_flag=$lt_no_undefined_flag
15793
15794 # Flag to hardcode \$libdir into a binary during linking.
15795 # This must work even if \$libdir does not exist
15796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15797
15798 # If ld is used when linking, flag to hardcode \$libdir into a binary
15799 # during linking.  This must work even if \$libdir does not exist.
15800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15801
15802 # Whether we need a single "-rpath" flag with a separated argument.
15803 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15804
15805 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15806 # DIR into the resulting binary.
15807 hardcode_direct=$hardcode_direct
15808
15809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15810 # DIR into the resulting binary and the resulting library dependency is
15811 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15812 # library is relocated.
15813 hardcode_direct_absolute=$hardcode_direct_absolute
15814
15815 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15816 # into the resulting binary.
15817 hardcode_minus_L=$hardcode_minus_L
15818
15819 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15820 # into the resulting binary.
15821 hardcode_shlibpath_var=$hardcode_shlibpath_var
15822
15823 # Set to "yes" if building a shared library automatically hardcodes DIR
15824 # into the library and all subsequent libraries and executables linked
15825 # against it.
15826 hardcode_automatic=$hardcode_automatic
15827
15828 # Set to yes if linker adds runtime paths of dependent libraries
15829 # to runtime path list.
15830 inherit_rpath=$inherit_rpath
15831
15832 # Whether libtool must link a program against all its dependency libraries.
15833 link_all_deplibs=$link_all_deplibs
15834
15835 # Fix the shell variable \$srcfile for the compiler.
15836 fix_srcfile_path=$lt_fix_srcfile_path
15837
15838 # Set to "yes" if exported symbols are required.
15839 always_export_symbols=$always_export_symbols
15840
15841 # The commands to list exported symbols.
15842 export_symbols_cmds=$lt_export_symbols_cmds
15843
15844 # Symbols that should not be listed in the preloaded symbols.
15845 exclude_expsyms=$lt_exclude_expsyms
15846
15847 # Symbols that must always be exported.
15848 include_expsyms=$lt_include_expsyms
15849
15850 # Commands necessary for linking programs (against libraries) with templates.
15851 prelink_cmds=$lt_prelink_cmds
15852
15853 # Specify filename containing input files.
15854 file_list_spec=$lt_file_list_spec
15855
15856 # How to hardcode a shared library path into an executable.
15857 hardcode_action=$hardcode_action
15858
15859 # ### END LIBTOOL CONFIG
15860
15861 _LT_EOF
15862
15863   case $host_os in
15864   aix3*)
15865     cat <<\_LT_EOF >> "$cfgfile"
15866 # AIX sometimes has problems with the GCC collect2 program.  For some
15867 # reason, if we set the COLLECT_NAMES environment variable, the problems
15868 # vanish in a puff of smoke.
15869 if test "X${COLLECT_NAMES+set}" != Xset; then
15870   COLLECT_NAMES=
15871   export COLLECT_NAMES
15872 fi
15873 _LT_EOF
15874     ;;
15875   esac
15876
15877
15878 ltmain="$ac_aux_dir/ltmain.sh"
15879
15880
15881   # We use sed instead of cat because bash on DJGPP gets confused if
15882   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15883   # text mode, it properly converts lines to CR/LF.  This bash problem
15884   # is reportedly fixed, but why not run on old versions too?
15885   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15886     || (rm -f "$cfgfile"; exit 1)
15887
15888   case $xsi_shell in
15889   yes)
15890     cat << \_LT_EOF >> "$cfgfile"
15891
15892 # func_dirname file append nondir_replacement
15893 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15894 # otherwise set result to NONDIR_REPLACEMENT.
15895 func_dirname ()
15896 {
15897   case ${1} in
15898     */*) func_dirname_result="${1%/*}${2}" ;;
15899     *  ) func_dirname_result="${3}" ;;
15900   esac
15901 }
15902
15903 # func_basename file
15904 func_basename ()
15905 {
15906   func_basename_result="${1##*/}"
15907 }
15908
15909 # func_dirname_and_basename file append nondir_replacement
15910 # perform func_basename and func_dirname in a single function
15911 # call:
15912 #   dirname:  Compute the dirname of FILE.  If nonempty,
15913 #             add APPEND to the result, otherwise set result
15914 #             to NONDIR_REPLACEMENT.
15915 #             value returned in "$func_dirname_result"
15916 #   basename: Compute filename of FILE.
15917 #             value retuned in "$func_basename_result"
15918 # Implementation must be kept synchronized with func_dirname
15919 # and func_basename. For efficiency, we do not delegate to
15920 # those functions but instead duplicate the functionality here.
15921 func_dirname_and_basename ()
15922 {
15923   case ${1} in
15924     */*) func_dirname_result="${1%/*}${2}" ;;
15925     *  ) func_dirname_result="${3}" ;;
15926   esac
15927   func_basename_result="${1##*/}"
15928 }
15929
15930 # func_stripname prefix suffix name
15931 # strip PREFIX and SUFFIX off of NAME.
15932 # PREFIX and SUFFIX must not contain globbing or regex special
15933 # characters, hashes, percent signs, but SUFFIX may contain a leading
15934 # dot (in which case that matches only a dot).
15935 func_stripname ()
15936 {
15937   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15938   # positional parameters, so assign one to ordinary parameter first.
15939   func_stripname_result=${3}
15940   func_stripname_result=${func_stripname_result#"${1}"}
15941   func_stripname_result=${func_stripname_result%"${2}"}
15942 }
15943
15944 # func_opt_split
15945 func_opt_split ()
15946 {
15947   func_opt_split_opt=${1%%=*}
15948   func_opt_split_arg=${1#*=}
15949 }
15950
15951 # func_lo2o object
15952 func_lo2o ()
15953 {
15954   case ${1} in
15955     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15956     *)    func_lo2o_result=${1} ;;
15957   esac
15958 }
15959
15960 # func_xform libobj-or-source
15961 func_xform ()
15962 {
15963   func_xform_result=${1%.*}.lo
15964 }
15965
15966 # func_arith arithmetic-term...
15967 func_arith ()
15968 {
15969   func_arith_result=$(( $* ))
15970 }
15971
15972 # func_len string
15973 # STRING may not start with a hyphen.
15974 func_len ()
15975 {
15976   func_len_result=${#1}
15977 }
15978
15979 _LT_EOF
15980     ;;
15981   *) # Bourne compatible functions.
15982     cat << \_LT_EOF >> "$cfgfile"
15983
15984 # func_dirname file append nondir_replacement
15985 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15986 # otherwise set result to NONDIR_REPLACEMENT.
15987 func_dirname ()
15988 {
15989   # Extract subdirectory from the argument.
15990   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15991   if test "X$func_dirname_result" = "X${1}"; then
15992     func_dirname_result="${3}"
15993   else
15994     func_dirname_result="$func_dirname_result${2}"
15995   fi
15996 }
15997
15998 # func_basename file
15999 func_basename ()
16000 {
16001   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16002 }
16003
16004
16005 # func_stripname prefix suffix name
16006 # strip PREFIX and SUFFIX off of NAME.
16007 # PREFIX and SUFFIX must not contain globbing or regex special
16008 # characters, hashes, percent signs, but SUFFIX may contain a leading
16009 # dot (in which case that matches only a dot).
16010 # func_strip_suffix prefix name
16011 func_stripname ()
16012 {
16013   case ${2} in
16014     .*) func_stripname_result=`$ECHO "X${3}" \
16015            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16016     *)  func_stripname_result=`$ECHO "X${3}" \
16017            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16018   esac
16019 }
16020
16021 # sed scripts:
16022 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16023 my_sed_long_arg='1s/^-[^=]*=//'
16024
16025 # func_opt_split
16026 func_opt_split ()
16027 {
16028   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16029   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16030 }
16031
16032 # func_lo2o object
16033 func_lo2o ()
16034 {
16035   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16036 }
16037
16038 # func_xform libobj-or-source
16039 func_xform ()
16040 {
16041   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16042 }
16043
16044 # func_arith arithmetic-term...
16045 func_arith ()
16046 {
16047   func_arith_result=`expr "$@"`
16048 }
16049
16050 # func_len string
16051 # STRING may not start with a hyphen.
16052 func_len ()
16053 {
16054   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16055 }
16056
16057 _LT_EOF
16058 esac
16059
16060 case $lt_shell_append in
16061   yes)
16062     cat << \_LT_EOF >> "$cfgfile"
16063
16064 # func_append var value
16065 # Append VALUE to the end of shell variable VAR.
16066 func_append ()
16067 {
16068   eval "$1+=\$2"
16069 }
16070 _LT_EOF
16071     ;;
16072   *)
16073     cat << \_LT_EOF >> "$cfgfile"
16074
16075 # func_append var value
16076 # Append VALUE to the end of shell variable VAR.
16077 func_append ()
16078 {
16079   eval "$1=\$$1\$2"
16080 }
16081
16082 _LT_EOF
16083     ;;
16084   esac
16085
16086
16087   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16088     || (rm -f "$cfgfile"; exit 1)
16089
16090   mv -f "$cfgfile" "$ofile" ||
16091     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16092   chmod +x "$ofile"
16093
16094  ;;
16095
16096   esac
16097 done # for ac_tag
16098
16099
16100 { (exit 0); exit 0; }
16101 _ACEOF
16102 chmod +x $CONFIG_STATUS
16103 ac_clean_files=$ac_clean_files_save
16104
16105 test $ac_write_fail = 0 ||
16106   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16107 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16108    { (exit 1); exit 1; }; }
16109
16110
16111 # configure is writing to config.log, and then calls config.status.
16112 # config.status does its own redirection, appending to config.log.
16113 # Unfortunately, on DOS this fails, as config.log is still kept open
16114 # by configure, so config.status won't be able to write to it; its
16115 # output is simply discarded.  So we exec the FD to /dev/null,
16116 # effectively closing config.log, so it can be properly (re)opened and
16117 # appended to by config.status.  When coming back to configure, we
16118 # need to make the FD available again.
16119 if test "$no_create" != yes; then
16120   ac_cs_success=:
16121   ac_config_status_args=
16122   test "$silent" = yes &&
16123     ac_config_status_args="$ac_config_status_args --quiet"
16124   exec 5>/dev/null
16125   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16126   exec 5>>config.log
16127   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16128   # would make configure fail if this is the last instruction.
16129   $ac_cs_success || { (exit 1); exit 1; }
16130 fi
16131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16132   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16134 fi
16135