2409e10144cc6d07c640e7086f4062cc8572d046
[profile/ivi/ofono.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ofono 1.8.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='ofono'
589 PACKAGE_TARNAME='ofono'
590 PACKAGE_VERSION='1.8'
591 PACKAGE_STRING='ofono 1.8'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_default_prefix=/usr/local
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 DATAFILES_FALSE
637 DATAFILES_TRUE
638 PROVISION_FALSE
639 PROVISION_TRUE
640 BLUETOOTH_FALSE
641 BLUETOOTH_TRUE
642 BLUEZ_LIBS
643 BLUEZ_CFLAGS
644 QMIMODEM_FALSE
645 QMIMODEM_TRUE
646 ISIMODEM_FALSE
647 ISIMODEM_TRUE
648 PHONESIM_FALSE
649 PHONESIM_TRUE
650 CDMAMODEM_FALSE
651 CDMAMODEM_TRUE
652 ATMODEM_FALSE
653 ATMODEM_TRUE
654 DUNDEE_FALSE
655 DUNDEE_TRUE
656 TOOLS_FALSE
657 TOOLS_TRUE
658 USB_LIBS
659 USB_CFLAGS
660 UDEV_FALSE
661 UDEV_TRUE
662 UDEV_DATADIR
663 UDEV_LIBS
664 UDEV_CFLAGS
665 SYSTEMD_FALSE
666 SYSTEMD_TRUE
667 SYSTEMD_UNITDIR
668 DBUS_DATADIR
669 DBUS_CONFDIR
670 DBUS_LIBS
671 DBUS_CFLAGS
672 GTHREAD_LIBS
673 GTHREAD_CFLAGS
674 GLIB_LIBS
675 GLIB_CFLAGS
676 TEST_FALSE
677 TEST_TRUE
678 CPP
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
684 MANIFEST_TOOL
685 RANLIB
686 ac_ct_AR
687 AR
688 DLLTOOL
689 OBJDUMP
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 EGREP
697 GREP
698 SED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 LIBTOOL
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 PKG_CONFIG_LIBDIR
726 PKG_CONFIG_PATH
727 PKG_CONFIG
728 MAINT
729 MAINTAINER_MODE_FALSE
730 MAINTAINER_MODE_TRUE
731 AM_BACKSLASH
732 AM_DEFAULT_VERBOSITY
733 AM_DEFAULT_V
734 AM_V
735 am__untar
736 am__tar
737 AMTAR
738 am__leading_dot
739 SET_MAKE
740 AWK
741 mkdir_p
742 MKDIR_P
743 INSTALL_STRIP_PROGRAM
744 STRIP
745 install_sh
746 MAKEINFO
747 AUTOHEADER
748 AUTOMAKE
749 AUTOCONF
750 ACLOCAL
751 VERSION
752 PACKAGE
753 CYGPATH_W
754 am__isrc
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 target_alias
759 host_alias
760 build_alias
761 LIBS
762 ECHO_T
763 ECHO_N
764 ECHO_C
765 DEFS
766 mandir
767 localedir
768 libdir
769 psdir
770 pdfdir
771 dvidir
772 htmldir
773 infodir
774 docdir
775 oldincludedir
776 includedir
777 localstatedir
778 sharedstatedir
779 sysconfdir
780 datadir
781 datarootdir
782 libexecdir
783 sbindir
784 bindir
785 program_transform_name
786 prefix
787 exec_prefix
788 PACKAGE_URL
789 PACKAGE_BUGREPORT
790 PACKAGE_STRING
791 PACKAGE_VERSION
792 PACKAGE_TARNAME
793 PACKAGE_NAME
794 PATH_SEPARATOR
795 SHELL'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 enable_silent_rules
800 enable_maintainer_mode
801 enable_dependency_tracking
802 enable_static
803 enable_shared
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
809 enable_optimization
810 enable_debug
811 enable_test
812 enable_pie
813 enable_threads
814 with_dbusconfdir
815 with_dbusdatadir
816 with_systemdunitdir
817 enable_udev
818 enable_tools
819 enable_dundee
820 enable_atmodem
821 enable_cdmamodem
822 enable_phonesim
823 enable_isimodem
824 enable_qmimodem
825 enable_bluetooth
826 with_provisiondb
827 enable_provision
828 enable_datafiles
829 '
830       ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 PKG_CONFIG
834 PKG_CONFIG_PATH
835 PKG_CONFIG_LIBDIR
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CPP
842 GLIB_CFLAGS
843 GLIB_LIBS
844 GTHREAD_CFLAGS
845 GTHREAD_LIBS
846 DBUS_CFLAGS
847 DBUS_LIBS
848 UDEV_CFLAGS
849 UDEV_LIBS
850 USB_CFLAGS
851 USB_LIBS
852 BLUEZ_CFLAGS
853 BLUEZ_LIBS'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908   # If the previous option needs an argument, assign it.
909   if test -n "$ac_prev"; then
910     eval $ac_prev=\$ac_option
911     ac_prev=
912     continue
913   fi
914
915   case $ac_option in
916   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917   *=)   ac_optarg= ;;
918   *)    ac_optarg=yes ;;
919   esac
920
921   # Accept the important Cygnus configure options, so we can diagnose typos.
922
923   case $ac_dashdash$ac_option in
924   --)
925     ac_dashdash=yes ;;
926
927   -bindir | --bindir | --bindi | --bind | --bin | --bi)
928     ac_prev=bindir ;;
929   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930     bindir=$ac_optarg ;;
931
932   -build | --build | --buil | --bui | --bu)
933     ac_prev=build_alias ;;
934   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935     build_alias=$ac_optarg ;;
936
937   -cache-file | --cache-file | --cache-fil | --cache-fi \
938   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939     ac_prev=cache_file ;;
940   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942     cache_file=$ac_optarg ;;
943
944   --config-cache | -C)
945     cache_file=config.cache ;;
946
947   -datadir | --datadir | --datadi | --datad)
948     ac_prev=datadir ;;
949   -datadir=* | --datadir=* | --datadi=* | --datad=*)
950     datadir=$ac_optarg ;;
951
952   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953   | --dataroo | --dataro | --datar)
954     ac_prev=datarootdir ;;
955   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957     datarootdir=$ac_optarg ;;
958
959   -disable-* | --disable-*)
960     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963       as_fn_error $? "invalid feature name: $ac_useropt"
964     ac_useropt_orig=$ac_useropt
965     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966     case $ac_user_opts in
967       *"
968 "enable_$ac_useropt"
969 "*) ;;
970       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971          ac_unrecognized_sep=', ';;
972     esac
973     eval enable_$ac_useropt=no ;;
974
975   -docdir | --docdir | --docdi | --doc | --do)
976     ac_prev=docdir ;;
977   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978     docdir=$ac_optarg ;;
979
980   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981     ac_prev=dvidir ;;
982   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983     dvidir=$ac_optarg ;;
984
985   -enable-* | --enable-*)
986     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987     # Reject names that are not valid shell variable names.
988     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989       as_fn_error $? "invalid feature name: $ac_useropt"
990     ac_useropt_orig=$ac_useropt
991     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992     case $ac_user_opts in
993       *"
994 "enable_$ac_useropt"
995 "*) ;;
996       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997          ac_unrecognized_sep=', ';;
998     esac
999     eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003   | --exec | --exe | --ex)
1004     ac_prev=exec_prefix ;;
1005   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007   | --exec=* | --exe=* | --ex=*)
1008     exec_prefix=$ac_optarg ;;
1009
1010   -gas | --gas | --ga | --g)
1011     # Obsolete; use --with-gas.
1012     with_gas=yes ;;
1013
1014   -help | --help | --hel | --he | -h)
1015     ac_init_help=long ;;
1016   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017     ac_init_help=recursive ;;
1018   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019     ac_init_help=short ;;
1020
1021   -host | --host | --hos | --ho)
1022     ac_prev=host_alias ;;
1023   -host=* | --host=* | --hos=* | --ho=*)
1024     host_alias=$ac_optarg ;;
1025
1026   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027     ac_prev=htmldir ;;
1028   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029   | --ht=*)
1030     htmldir=$ac_optarg ;;
1031
1032   -includedir | --includedir | --includedi | --included | --include \
1033   | --includ | --inclu | --incl | --inc)
1034     ac_prev=includedir ;;
1035   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036   | --includ=* | --inclu=* | --incl=* | --inc=*)
1037     includedir=$ac_optarg ;;
1038
1039   -infodir | --infodir | --infodi | --infod | --info | --inf)
1040     ac_prev=infodir ;;
1041   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042     infodir=$ac_optarg ;;
1043
1044   -libdir | --libdir | --libdi | --libd)
1045     ac_prev=libdir ;;
1046   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047     libdir=$ac_optarg ;;
1048
1049   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050   | --libexe | --libex | --libe)
1051     ac_prev=libexecdir ;;
1052   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053   | --libexe=* | --libex=* | --libe=*)
1054     libexecdir=$ac_optarg ;;
1055
1056   -localedir | --localedir | --localedi | --localed | --locale)
1057     ac_prev=localedir ;;
1058   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059     localedir=$ac_optarg ;;
1060
1061   -localstatedir | --localstatedir | --localstatedi | --localstated \
1062   | --localstate | --localstat | --localsta | --localst | --locals)
1063     ac_prev=localstatedir ;;
1064   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066     localstatedir=$ac_optarg ;;
1067
1068   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069     ac_prev=mandir ;;
1070   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071     mandir=$ac_optarg ;;
1072
1073   -nfp | --nfp | --nf)
1074     # Obsolete; use --without-fp.
1075     with_fp=no ;;
1076
1077   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078   | --no-cr | --no-c | -n)
1079     no_create=yes ;;
1080
1081   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083     no_recursion=yes ;;
1084
1085   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087   | --oldin | --oldi | --old | --ol | --o)
1088     ac_prev=oldincludedir ;;
1089   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092     oldincludedir=$ac_optarg ;;
1093
1094   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095     ac_prev=prefix ;;
1096   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097     prefix=$ac_optarg ;;
1098
1099   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100   | --program-pre | --program-pr | --program-p)
1101     ac_prev=program_prefix ;;
1102   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104     program_prefix=$ac_optarg ;;
1105
1106   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107   | --program-suf | --program-su | --program-s)
1108     ac_prev=program_suffix ;;
1109   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111     program_suffix=$ac_optarg ;;
1112
1113   -program-transform-name | --program-transform-name \
1114   | --program-transform-nam | --program-transform-na \
1115   | --program-transform-n | --program-transform- \
1116   | --program-transform | --program-transfor \
1117   | --program-transfo | --program-transf \
1118   | --program-trans | --program-tran \
1119   | --progr-tra | --program-tr | --program-t)
1120     ac_prev=program_transform_name ;;
1121   -program-transform-name=* | --program-transform-name=* \
1122   | --program-transform-nam=* | --program-transform-na=* \
1123   | --program-transform-n=* | --program-transform-=* \
1124   | --program-transform=* | --program-transfor=* \
1125   | --program-transfo=* | --program-transf=* \
1126   | --program-trans=* | --program-tran=* \
1127   | --progr-tra=* | --program-tr=* | --program-t=*)
1128     program_transform_name=$ac_optarg ;;
1129
1130   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131     ac_prev=pdfdir ;;
1132   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133     pdfdir=$ac_optarg ;;
1134
1135   -psdir | --psdir | --psdi | --psd | --ps)
1136     ac_prev=psdir ;;
1137   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138     psdir=$ac_optarg ;;
1139
1140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141   | -silent | --silent | --silen | --sile | --sil)
1142     silent=yes ;;
1143
1144   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145     ac_prev=sbindir ;;
1146   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147   | --sbi=* | --sb=*)
1148     sbindir=$ac_optarg ;;
1149
1150   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152   | --sharedst | --shareds | --shared | --share | --shar \
1153   | --sha | --sh)
1154     ac_prev=sharedstatedir ;;
1155   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158   | --sha=* | --sh=*)
1159     sharedstatedir=$ac_optarg ;;
1160
1161   -site | --site | --sit)
1162     ac_prev=site ;;
1163   -site=* | --site=* | --sit=*)
1164     site=$ac_optarg ;;
1165
1166   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167     ac_prev=srcdir ;;
1168   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169     srcdir=$ac_optarg ;;
1170
1171   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172   | --syscon | --sysco | --sysc | --sys | --sy)
1173     ac_prev=sysconfdir ;;
1174   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176     sysconfdir=$ac_optarg ;;
1177
1178   -target | --target | --targe | --targ | --tar | --ta | --t)
1179     ac_prev=target_alias ;;
1180   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181     target_alias=$ac_optarg ;;
1182
1183   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184     verbose=yes ;;
1185
1186   -version | --version | --versio | --versi | --vers | -V)
1187     ac_init_version=: ;;
1188
1189   -with-* | --with-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=\$ac_optarg ;;
1204
1205   -without-* | --without-*)
1206     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209       as_fn_error $? "invalid package name: $ac_useropt"
1210     ac_useropt_orig=$ac_useropt
1211     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212     case $ac_user_opts in
1213       *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217          ac_unrecognized_sep=', ';;
1218     esac
1219     eval with_$ac_useropt=no ;;
1220
1221   --x)
1222     # Obsolete; use --with-x.
1223     with_x=yes ;;
1224
1225   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226   | --x-incl | --x-inc | --x-in | --x-i)
1227     ac_prev=x_includes ;;
1228   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230     x_includes=$ac_optarg ;;
1231
1232   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234     ac_prev=x_libraries ;;
1235   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237     x_libraries=$ac_optarg ;;
1238
1239   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1241     ;;
1242
1243   *=*)
1244     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245     # Reject names that are not valid shell variable names.
1246     case $ac_envvar in #(
1247       '' | [0-9]* | *[!_$as_cr_alnum]* )
1248       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249     esac
1250     eval $ac_envvar=\$ac_optarg
1251     export $ac_envvar ;;
1252
1253   *)
1254     # FIXME: should be removed in autoconf 3.0.
1255     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259     ;;
1260
1261   esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266   as_fn_error $? "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270   case $enable_option_checking in
1271     no) ;;
1272     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274   esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279                 datadir sysconfdir sharedstatedir localstatedir includedir \
1280                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281                 libdir localedir mandir
1282 do
1283   eval ac_val=\$$ac_var
1284   # Remove trailing slashes.
1285   case $ac_val in
1286     */ )
1287       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288       eval $ac_var=\$ac_val;;
1289   esac
1290   # Be sure to have absolute directory names.
1291   case $ac_val in
1292     [\\/$]* | ?:[\\/]* )  continue;;
1293     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294   esac
1295   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307   if test "x$build_alias" = x; then
1308     cross_compiling=maybe
1309   elif test "x$build_alias" != "x$host_alias"; then
1310     cross_compiling=yes
1311   fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323   as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330   ac_srcdir_defaulted=yes
1331   # Try the directory containing this script, then the parent directory.
1332   ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334          X"$as_myself" : 'X\(//\)[^/]' \| \
1335          X"$as_myself" : 'X\(//\)$' \| \
1336          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)[^/].*/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\).*/{
1351             s//\1/
1352             q
1353           }
1354           s/.*/./; q'`
1355   srcdir=$ac_confdir
1356   if test ! -r "$srcdir/$ac_unique_file"; then
1357     srcdir=..
1358   fi
1359 else
1360   ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures ofono 1.8 to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking ...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR            user executables [EPREFIX/bin]
1429   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR        program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/ofono]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463   case $ac_init_help in
1464      short | recursive ) echo "Configuration of ofono 1.8:";;
1465    esac
1466   cat <<\_ACEOF
1467
1468 Optional Features:
1469   --disable-option-checking  ignore unrecognized --enable/--with options
1470   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472   --enable-silent-rules          less verbose build output (undo: `make V=1')
1473   --disable-silent-rules         verbose build output (undo: `make V=0')
1474   --enable-maintainer-mode  enable make rules and dependencies not useful
1475                           (and sometimes confusing) to the casual installer
1476   --disable-dependency-tracking  speeds up one-time build
1477   --enable-dependency-tracking   do not reject slow dependency extractors
1478   --enable-static[=PKGS]  build static libraries [default=no]
1479   --enable-shared[=PKGS]  build shared libraries [default=yes]
1480   --enable-fast-install[=PKGS]
1481                           optimize for fast installation [default=yes]
1482   --disable-libtool-lock  avoid locking (might break parallel builds)
1483   --disable-optimization  disable code optimization through compiler
1484   --enable-debug          enable compiling with debugging information
1485   --enable-test           enable test/example scripts
1486   --enable-pie            enable position independent executables flag
1487   --enable-threads        enable threading support
1488   --disable-udev          don't use udev support even if available
1489   --enable-tools          enable testing tools
1490   --enable-dundee         enable DUN deamon support
1491   --disable-atmodem       disable ETSI AT modem support
1492   --disable-cdmamodem     disable CDMA AT modem support
1493   --disable-phonesim      disable Phone simulator support
1494   --disable-isimodem      disable PhoNet/ISI modem support
1495   --disable-qmimodem      disable Qualcomm QMI modem support
1496   --disable-bluetooth     disable Bluetooth modem support
1497   --disable-provision     disable provisioning suport
1498   --disable-datafiles     do not install configuration and data files
1499
1500 Optional Packages:
1501   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1504                           both]
1505   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1506   --with-sysroot=DIR Search for dependent libraries within DIR
1507                         (or the compiler's sysroot if not specified).
1508   --with-dbusconfdir=PATH path to D-Bus config directory
1509   --with-dbusdatadir=PATH path to D-Bus data directory
1510   --with-systemdunitdir=DIR
1511                           path to systemd service directory
1512   --with-provisiondb=FILE location of provision database
1513
1514 Some influential environment variables:
1515   PKG_CONFIG  path to pkg-config utility
1516   PKG_CONFIG_PATH
1517               directories to add to pkg-config's search path
1518   PKG_CONFIG_LIBDIR
1519               path overriding pkg-config's built-in search path
1520   CC          C compiler command
1521   CFLAGS      C compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CPP         C preprocessor
1528   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1529   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1530   GTHREAD_CFLAGS
1531               C compiler flags for GTHREAD, overriding pkg-config
1532   GTHREAD_LIBS
1533               linker flags for GTHREAD, overriding pkg-config
1534   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1535   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1536   UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1537   UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1538   USB_CFLAGS  C compiler flags for USB, overriding pkg-config
1539   USB_LIBS    linker flags for USB, overriding pkg-config
1540   BLUEZ_CFLAGS
1541               C compiler flags for BLUEZ, overriding pkg-config
1542   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to the package provider.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553   # If there are subdirs, report their specific --help.
1554   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555     test -d "$ac_dir" ||
1556       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557       continue
1558     ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564   # A ".." for each directory in $ac_dir_suffix.
1565   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566   case $ac_top_builddir_sub in
1567   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569   esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577   .)  # We are building in place.
1578     ac_srcdir=.
1579     ac_top_srcdir=$ac_top_builddir_sub
1580     ac_abs_top_srcdir=$ac_pwd ;;
1581   [\\/]* | ?:[\\/]* )  # Absolute name.
1582     ac_srcdir=$srcdir$ac_dir_suffix;
1583     ac_top_srcdir=$srcdir
1584     ac_abs_top_srcdir=$srcdir ;;
1585   *) # Relative name.
1586     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587     ac_top_srcdir=$ac_top_build_prefix$srcdir
1588     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592     cd "$ac_dir" || { ac_status=$?; continue; }
1593     # Check for guested configure.
1594     if test -f "$ac_srcdir/configure.gnu"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597     elif test -f "$ac_srcdir/configure"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure" --help=recursive
1600     else
1601       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602     fi || ac_status=$?
1603     cd "$ac_pwd" || { ac_status=$?; break; }
1604   done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609   cat <<\_ACEOF
1610 ofono configure 1.8
1611 generated by GNU Autoconf 2.69
1612
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617   exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   rm -f conftest.$ac_objext
1631   if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_compile") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } && {
1647          test -z "$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        } && test -s conftest.$ac_objext; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655         ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_compile
1661
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_link ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   rm -f conftest.$ac_objext conftest$ac_exeext
1669   if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_link") 2>conftest.err
1677   ac_status=$?
1678   if test -s conftest.err; then
1679     grep -v '^ *+' conftest.err >conftest.er1
1680     cat conftest.er1 >&5
1681     mv -f conftest.er1 conftest.err
1682   fi
1683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684   test $ac_status = 0; } && {
1685          test -z "$ac_c_werror_flag" ||
1686          test ! -s conftest.err
1687        } && test -s conftest$ac_exeext && {
1688          test "$cross_compiling" = yes ||
1689          test -x conftest$ac_exeext
1690        }; then :
1691   ac_retval=0
1692 else
1693   $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696         ac_retval=1
1697 fi
1698   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700   # interfere with the next link command; also delete a directory that is
1701   # left behind by Apple's compiler.  We do this before executing the actions.
1702   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704   as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_link
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718   $as_echo_n "(cached) " >&6
1719 else
1720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h.  */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726   eval "$3=yes"
1727 else
1728   eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737 } # ac_fn_c_check_header_compile
1738
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_cpp ()
1743 {
1744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745   if { { ac_try="$ac_cpp conftest.$ac_ext"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753   ac_status=$?
1754   if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758   fi
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } > conftest.i && {
1761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762          test ! -s conftest.err
1763        }; then :
1764   ac_retval=0
1765 else
1766   $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769     ac_retval=1
1770 fi
1771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772   as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_cpp
1775
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1780 ac_fn_c_try_run ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786   *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790   (eval "$ac_link") 2>&5
1791   ac_status=$?
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794   { { case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_try") 2>&5
1801   ac_status=$?
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; }; }; then :
1804   ac_retval=0
1805 else
1806   $as_echo "$as_me: program exited with status $ac_status" >&5
1807        $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810        ac_retval=$ac_status
1811 fi
1812   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814   as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_run
1817
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827   $as_echo_n "(cached) " >&6
1828 else
1829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h.  */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1833 #define $2 innocuous_$2
1834
1835 /* System header to define __stub macros and hopefully few prototypes,
1836     which can conflict with char $2 (); below.
1837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838     <limits.h> exists even on freestanding compilers.  */
1839
1840 #ifdef __STDC__
1841 # include <limits.h>
1842 #else
1843 # include <assert.h>
1844 #endif
1845
1846 #undef $2
1847
1848 /* Override any GCC internal prototype to avoid an error.
1849    Use char because int might match the return type of a GCC
1850    builtin and then its argument prototype would still apply.  */
1851 #ifdef __cplusplus
1852 extern "C"
1853 #endif
1854 char $2 ();
1855 /* The GNU C library defines this for functions which it implements
1856     to always fail with ENOSYS.  Some functions are actually named
1857     something starting with __ and the normal name is an alias.  */
1858 #if defined __stub_$2 || defined __stub___$2
1859 choke me
1860 #endif
1861
1862 int
1863 main ()
1864 {
1865 return $2 ();
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_link "$LINENO"; then :
1871   eval "$3=yes"
1872 else
1873   eval "$3=no"
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext \
1876     conftest$ac_exeext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_func
1884 cat >config.log <<_ACEOF
1885 This file contains any messages produced by compilers while
1886 running configure, to aid debugging if configure makes a mistake.
1887
1888 It was created by ofono $as_me 1.8, which was
1889 generated by GNU Autoconf 2.69.  Invocation command line was
1890
1891   $ $0 $@
1892
1893 _ACEOF
1894 exec 5>>config.log
1895 {
1896 cat <<_ASUNAME
1897 ## --------- ##
1898 ## Platform. ##
1899 ## --------- ##
1900
1901 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906
1907 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1909
1910 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1911 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1912 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1914 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1915 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1916 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1917
1918 _ASUNAME
1919
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923   IFS=$as_save_IFS
1924   test -z "$as_dir" && as_dir=.
1925     $as_echo "PATH: $as_dir"
1926   done
1927 IFS=$as_save_IFS
1928
1929 } >&5
1930
1931 cat >&5 <<_ACEOF
1932
1933
1934 ## ----------- ##
1935 ## Core tests. ##
1936 ## ----------- ##
1937
1938 _ACEOF
1939
1940
1941 # Keep a trace of the command line.
1942 # Strip out --no-create and --no-recursion so they do not pile up.
1943 # Strip out --silent because we don't want to record it for future runs.
1944 # Also quote any args containing shell meta-characters.
1945 # Make two passes to allow for proper duplicate-argument suppression.
1946 ac_configure_args=
1947 ac_configure_args0=
1948 ac_configure_args1=
1949 ac_must_keep_next=false
1950 for ac_pass in 1 2
1951 do
1952   for ac_arg
1953   do
1954     case $ac_arg in
1955     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957     | -silent | --silent | --silen | --sile | --sil)
1958       continue ;;
1959     *\'*)
1960       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1961     esac
1962     case $ac_pass in
1963     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1964     2)
1965       as_fn_append ac_configure_args1 " '$ac_arg'"
1966       if test $ac_must_keep_next = true; then
1967         ac_must_keep_next=false # Got value, back to normal.
1968       else
1969         case $ac_arg in
1970           *=* | --config-cache | -C | -disable-* | --disable-* \
1971           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973           | -with-* | --with-* | -without-* | --without-* | --x)
1974             case "$ac_configure_args0 " in
1975               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976             esac
1977             ;;
1978           -* ) ac_must_keep_next=true ;;
1979         esac
1980       fi
1981       as_fn_append ac_configure_args " '$ac_arg'"
1982       ;;
1983     esac
1984   done
1985 done
1986 { ac_configure_args0=; unset ac_configure_args0;}
1987 { ac_configure_args1=; unset ac_configure_args1;}
1988
1989 # When interrupted or exit'd, cleanup temporary files, and complete
1990 # config.log.  We remove comments because anyway the quotes in there
1991 # would cause problems or look ugly.
1992 # WARNING: Use '\'' to represent an apostrophe within the trap.
1993 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994 trap 'exit_status=$?
1995   # Save into config.log some information that might help in debugging.
1996   {
1997     echo
1998
1999     $as_echo "## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##"
2002     echo
2003     # The following way of writing the cache mishandles newlines in values,
2004 (
2005   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006     eval ac_val=\$$ac_var
2007     case $ac_val in #(
2008     *${as_nl}*)
2009       case $ac_var in #(
2010       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012       esac
2013       case $ac_var in #(
2014       _ | IFS | as_nl) ;; #(
2015       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016       *) { eval $ac_var=; unset $ac_var;} ;;
2017       esac ;;
2018     esac
2019   done
2020   (set) 2>&1 |
2021     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022     *${as_nl}ac_space=\ *)
2023       sed -n \
2024         "s/'\''/'\''\\\\'\'''\''/g;
2025           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026       ;; #(
2027     *)
2028       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029       ;;
2030     esac |
2031     sort
2032 )
2033     echo
2034
2035     $as_echo "## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##"
2038     echo
2039     for ac_var in $ac_subst_vars
2040     do
2041       eval ac_val=\$$ac_var
2042       case $ac_val in
2043       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044       esac
2045       $as_echo "$ac_var='\''$ac_val'\''"
2046     done | sort
2047     echo
2048
2049     if test -n "$ac_subst_files"; then
2050       $as_echo "## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##"
2053       echo
2054       for ac_var in $ac_subst_files
2055       do
2056         eval ac_val=\$$ac_var
2057         case $ac_val in
2058         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059         esac
2060         $as_echo "$ac_var='\''$ac_val'\''"
2061       done | sort
2062       echo
2063     fi
2064
2065     if test -s confdefs.h; then
2066       $as_echo "## ----------- ##
2067 ## confdefs.h. ##
2068 ## ----------- ##"
2069       echo
2070       cat confdefs.h
2071       echo
2072     fi
2073     test "$ac_signal" != 0 &&
2074       $as_echo "$as_me: caught signal $ac_signal"
2075     $as_echo "$as_me: exit $exit_status"
2076   } >&5
2077   rm -f core *.core core.conftest.* &&
2078     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079     exit $exit_status
2080 ' 0
2081 for ac_signal in 1 2 13 15; do
2082   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083 done
2084 ac_signal=0
2085
2086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2087 rm -f -r conftest* confdefs.h
2088
2089 $as_echo "/* confdefs.h */" > confdefs.h
2090
2091 # Predefined preprocessor variables.
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_NAME "$PACKAGE_NAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_STRING "$PACKAGE_STRING"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_URL "$PACKAGE_URL"
2115 _ACEOF
2116
2117
2118 # Let the site file select an alternate cache file if it wants to.
2119 # Prefer an explicitly selected file to automatically selected ones.
2120 ac_site_file1=NONE
2121 ac_site_file2=NONE
2122 if test -n "$CONFIG_SITE"; then
2123   # We do not want a PATH search for config.site.
2124   case $CONFIG_SITE in #((
2125     -*)  ac_site_file1=./$CONFIG_SITE;;
2126     */*) ac_site_file1=$CONFIG_SITE;;
2127     *)   ac_site_file1=./$CONFIG_SITE;;
2128   esac
2129 elif test "x$prefix" != xNONE; then
2130   ac_site_file1=$prefix/share/config.site
2131   ac_site_file2=$prefix/etc/config.site
2132 else
2133   ac_site_file1=$ac_default_prefix/share/config.site
2134   ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 do
2138   test "x$ac_site_file" = xNONE && continue
2139   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142     sed 's/^/| /' "$ac_site_file" >&5
2143     . "$ac_site_file" \
2144       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146 as_fn_error $? "failed to load site script $ac_site_file
2147 See \`config.log' for more details" "$LINENO" 5; }
2148   fi
2149 done
2150
2151 if test -r "$cache_file"; then
2152   # Some versions of bash will fail to source /dev/null (special files
2153   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2154   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156 $as_echo "$as_me: loading cache $cache_file" >&6;}
2157     case $cache_file in
2158       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159       *)                      . "./$cache_file";;
2160     esac
2161   fi
2162 else
2163   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164 $as_echo "$as_me: creating cache $cache_file" >&6;}
2165   >$cache_file
2166 fi
2167
2168 # Check that the precious variables saved in the cache have kept the same
2169 # value.
2170 ac_cache_corrupted=false
2171 for ac_var in $ac_precious_vars; do
2172   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173   eval ac_new_set=\$ac_env_${ac_var}_set
2174   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175   eval ac_new_val=\$ac_env_${ac_var}_value
2176   case $ac_old_set,$ac_new_set in
2177     set,)
2178       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2180       ac_cache_corrupted=: ;;
2181     ,set)
2182       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2184       ac_cache_corrupted=: ;;
2185     ,);;
2186     *)
2187       if test "x$ac_old_val" != "x$ac_new_val"; then
2188         # differences in whitespace do not lead to failure.
2189         ac_old_val_w=`echo x $ac_old_val`
2190         ac_new_val_w=`echo x $ac_new_val`
2191         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194           ac_cache_corrupted=:
2195         else
2196           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198           eval $ac_var=\$ac_old_val
2199         fi
2200         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2201 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2202         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2203 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2204       fi;;
2205   esac
2206   # Pass precious variables to config.status.
2207   if test "$ac_new_set" = set; then
2208     case $ac_new_val in
2209     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2210     *) ac_arg=$ac_var=$ac_new_val ;;
2211     esac
2212     case " $ac_configure_args " in
2213       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2214       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2215     esac
2216   fi
2217 done
2218 if $ac_cache_corrupted; then
2219   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2223   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2224 fi
2225 ## -------------------- ##
2226 ## Main body of script. ##
2227 ## -------------------- ##
2228
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
2236
2237 am__api_version='1.11'
2238
2239 ac_aux_dir=
2240 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2241   if test -f "$ac_dir/install-sh"; then
2242     ac_aux_dir=$ac_dir
2243     ac_install_sh="$ac_aux_dir/install-sh -c"
2244     break
2245   elif test -f "$ac_dir/install.sh"; then
2246     ac_aux_dir=$ac_dir
2247     ac_install_sh="$ac_aux_dir/install.sh -c"
2248     break
2249   elif test -f "$ac_dir/shtool"; then
2250     ac_aux_dir=$ac_dir
2251     ac_install_sh="$ac_aux_dir/shtool install -c"
2252     break
2253   fi
2254 done
2255 if test -z "$ac_aux_dir"; then
2256   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2257 fi
2258
2259 # These three variables are undocumented and unsupported,
2260 # and are intended to be withdrawn in a future Autoconf release.
2261 # They can cause serious problems if a builder's source tree is in a directory
2262 # whose full name contains unusual characters.
2263 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2264 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2265 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2266
2267
2268 # Find a good install program.  We prefer a C program (faster),
2269 # so one script is as good as another.  But avoid the broken or
2270 # incompatible versions:
2271 # SysV /etc/install, /usr/sbin/install
2272 # SunOS /usr/etc/install
2273 # IRIX /sbin/install
2274 # AIX /bin/install
2275 # AmigaOS /C/install, which installs bootblocks on floppy discs
2276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279 # OS/2's system install, which has a completely different semantic
2280 # ./install, which can be erroneously created by make from ./install.sh.
2281 # Reject install programs that cannot install multiple files.
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2284 if test -z "$INSTALL"; then
2285 if ${ac_cv_path_install+:} false; then :
2286   $as_echo_n "(cached) " >&6
2287 else
2288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293     # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in #((
2295   ./ | .// | /[cC]/* | \
2296   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2298   /usr/ucb/* ) ;;
2299   *)
2300     # OSF1 and SCO ODT 3.0 have their own names for install.
2301     # Don't use installbsd from OSF since it installs stuff as root
2302     # by default.
2303     for ac_prog in ginstall scoinst install; do
2304       for ac_exec_ext in '' $ac_executable_extensions; do
2305         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2306           if test $ac_prog = install &&
2307             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308             # AIX install.  It has an incompatible calling convention.
2309             :
2310           elif test $ac_prog = install &&
2311             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312             # program-specific install script used by HP pwplus--don't use.
2313             :
2314           else
2315             rm -rf conftest.one conftest.two conftest.dir
2316             echo one > conftest.one
2317             echo two > conftest.two
2318             mkdir conftest.dir
2319             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320               test -s conftest.one && test -s conftest.two &&
2321               test -s conftest.dir/conftest.one &&
2322               test -s conftest.dir/conftest.two
2323             then
2324               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2325               break 3
2326             fi
2327           fi
2328         fi
2329       done
2330     done
2331     ;;
2332 esac
2333
2334   done
2335 IFS=$as_save_IFS
2336
2337 rm -rf conftest.one conftest.two conftest.dir
2338
2339 fi
2340   if test "${ac_cv_path_install+set}" = set; then
2341     INSTALL=$ac_cv_path_install
2342   else
2343     # As a last resort, use the slow shell script.  Don't cache a
2344     # value for INSTALL within a source directory, because that will
2345     # break other packages using the cache if that directory is
2346     # removed, or if the value is a relative name.
2347     INSTALL=$ac_install_sh
2348   fi
2349 fi
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351 $as_echo "$INSTALL" >&6; }
2352
2353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354 # It thinks the first close brace ends the variable substitution.
2355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2356
2357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2358
2359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362 $as_echo_n "checking whether build environment is sane... " >&6; }
2363 # Just in case
2364 sleep 1
2365 echo timestamp > conftest.file
2366 # Reject unsafe characters in $srcdir or the absolute working directory
2367 # name.  Accept space and tab only in the latter.
2368 am_lf='
2369 '
2370 case `pwd` in
2371   *[\\\"\#\$\&\'\`$am_lf]*)
2372     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2373 esac
2374 case $srcdir in
2375   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2376     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2377 esac
2378
2379 # Do `set' in a subshell so we don't clobber the current shell's
2380 # arguments.  Must try -L first in case configure is actually a
2381 # symlink; some systems play weird games with the mod time of symlinks
2382 # (eg FreeBSD returns the mod time of the symlink's containing
2383 # directory).
2384 if (
2385    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386    if test "$*" = "X"; then
2387       # -L didn't work.
2388       set X `ls -t "$srcdir/configure" conftest.file`
2389    fi
2390    rm -f conftest.file
2391    if test "$*" != "X $srcdir/configure conftest.file" \
2392       && test "$*" != "X conftest.file $srcdir/configure"; then
2393
2394       # If neither matched, then we have a broken ls.  This can happen
2395       # if, for instance, CONFIG_SHELL is bash and it inherits a
2396       # broken ls alias from the environment.  This has actually
2397       # happened.  Such a system could not be considered "sane".
2398       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2399 alias in your environment" "$LINENO" 5
2400    fi
2401
2402    test "$2" = conftest.file
2403    )
2404 then
2405    # Ok.
2406    :
2407 else
2408    as_fn_error $? "newly created file is older than distributed files!
2409 Check your system clock" "$LINENO" 5
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2412 $as_echo "yes" >&6; }
2413 test "$program_prefix" != NONE &&
2414   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2415 # Use a double $ so make ignores it.
2416 test "$program_suffix" != NONE &&
2417   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2418 # Double any \ or $.
2419 # By default was `s,x,x', remove it if useless.
2420 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2421 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2422
2423 # expand $ac_aux_dir to an absolute path
2424 am_aux_dir=`cd $ac_aux_dir && pwd`
2425
2426 if test x"${MISSING+set}" != xset; then
2427   case $am_aux_dir in
2428   *\ * | *\     *)
2429     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2430   *)
2431     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2432   esac
2433 fi
2434 # Use eval to expand $SHELL
2435 if eval "$MISSING --run true"; then
2436   am_missing_run="$MISSING --run "
2437 else
2438   am_missing_run=
2439   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2440 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2441 fi
2442
2443 if test x"${install_sh}" != xset; then
2444   case $am_aux_dir in
2445   *\ * | *\     *)
2446     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2447   *)
2448     install_sh="\${SHELL} $am_aux_dir/install-sh"
2449   esac
2450 fi
2451
2452 # Installed binaries are usually stripped using `strip' when the user
2453 # run `make install-strip'.  However `strip' might not be the right
2454 # tool to use in cross-compilation environments, therefore Automake
2455 # will honor the `STRIP' environment variable to overrule this program.
2456 if test "$cross_compiling" != no; then
2457   if test -n "$ac_tool_prefix"; then
2458   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}strip; ac_word=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_STRIP+:} false; then :
2463   $as_echo_n "(cached) " >&6
2464 else
2465   if test -n "$STRIP"; then
2466   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473     for ac_exec_ext in '' $ac_executable_extensions; do
2474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480   done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 STRIP=$ac_cv_prog_STRIP
2486 if test -n "$STRIP"; then
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2488 $as_echo "$STRIP" >&6; }
2489 else
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2492 fi
2493
2494
2495 fi
2496 if test -z "$ac_cv_prog_STRIP"; then
2497   ac_ct_STRIP=$STRIP
2498   # Extract the first word of "strip", so it can be a program name with args.
2499 set dummy strip; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   if test -n "$ac_ct_STRIP"; then
2506   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513     for ac_exec_ext in '' $ac_executable_extensions; do
2514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515     ac_cv_prog_ac_ct_STRIP="strip"
2516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520   done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526 if test -n "$ac_ct_STRIP"; then
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2528 $as_echo "$ac_ct_STRIP" >&6; }
2529 else
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534   if test "x$ac_ct_STRIP" = x; then
2535     STRIP=":"
2536   else
2537     case $cross_compiling:$ac_tool_warned in
2538 yes:)
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2541 ac_tool_warned=yes ;;
2542 esac
2543     STRIP=$ac_ct_STRIP
2544   fi
2545 else
2546   STRIP="$ac_cv_prog_STRIP"
2547 fi
2548
2549 fi
2550 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2551
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2553 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2554 if test -z "$MKDIR_P"; then
2555   if ${ac_cv_path_mkdir+:} false; then :
2556   $as_echo_n "(cached) " >&6
2557 else
2558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2560 do
2561   IFS=$as_save_IFS
2562   test -z "$as_dir" && as_dir=.
2563     for ac_prog in mkdir gmkdir; do
2564          for ac_exec_ext in '' $ac_executable_extensions; do
2565            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2566            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2567              'mkdir (GNU coreutils) '* | \
2568              'mkdir (coreutils) '* | \
2569              'mkdir (fileutils) '4.1*)
2570                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2571                break 3;;
2572            esac
2573          done
2574        done
2575   done
2576 IFS=$as_save_IFS
2577
2578 fi
2579
2580   test -d ./--version && rmdir ./--version
2581   if test "${ac_cv_path_mkdir+set}" = set; then
2582     MKDIR_P="$ac_cv_path_mkdir -p"
2583   else
2584     # As a last resort, use the slow shell script.  Don't cache a
2585     # value for MKDIR_P within a source directory, because that will
2586     # break other packages using the cache if that directory is
2587     # removed, or if the value is a relative name.
2588     MKDIR_P="$ac_install_sh -d"
2589   fi
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2592 $as_echo "$MKDIR_P" >&6; }
2593
2594 mkdir_p="$MKDIR_P"
2595 case $mkdir_p in
2596   [\\/$]* | ?:[\\/]*) ;;
2597   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2598 esac
2599
2600 for ac_prog in gawk mawk nawk awk
2601 do
2602   # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_AWK+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   if test -n "$AWK"; then
2610   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617     for ac_exec_ext in '' $ac_executable_extensions; do
2618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619     ac_cv_prog_AWK="$ac_prog"
2620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624   done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 AWK=$ac_cv_prog_AWK
2630 if test -n "$AWK"; then
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632 $as_echo "$AWK" >&6; }
2633 else
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639   test -n "$AWK" && break
2640 done
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644 set x ${MAKE-make}
2645 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647   $as_echo_n "(cached) " >&6
2648 else
2649   cat >conftest.make <<\_ACEOF
2650 SHELL = /bin/sh
2651 all:
2652         @echo '@@@%%%=$(MAKE)=@@@%%%'
2653 _ACEOF
2654 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656   *@@@%%%=?*=@@@%%%*)
2657     eval ac_cv_prog_make_${ac_make}_set=yes;;
2658   *)
2659     eval ac_cv_prog_make_${ac_make}_set=no;;
2660 esac
2661 rm -f conftest.make
2662 fi
2663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2666   SET_MAKE=
2667 else
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670   SET_MAKE="MAKE=${MAKE-make}"
2671 fi
2672
2673 rm -rf .tst 2>/dev/null
2674 mkdir .tst 2>/dev/null
2675 if test -d .tst; then
2676   am__leading_dot=.
2677 else
2678   am__leading_dot=_
2679 fi
2680 rmdir .tst 2>/dev/null
2681
2682 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2683   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2684   # is not polluted with repeated "-I."
2685   am__isrc=' -I$(srcdir)'
2686   # test to see if srcdir already configured
2687   if test -f $srcdir/config.status; then
2688     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2689   fi
2690 fi
2691
2692 # test whether we have cygpath
2693 if test -z "$CYGPATH_W"; then
2694   if (cygpath --version) >/dev/null 2>/dev/null; then
2695     CYGPATH_W='cygpath -w'
2696   else
2697     CYGPATH_W=echo
2698   fi
2699 fi
2700
2701
2702 # Define the identity of the package.
2703  PACKAGE='ofono'
2704  VERSION='1.8'
2705
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE "$PACKAGE"
2709 _ACEOF
2710
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define VERSION "$VERSION"
2714 _ACEOF
2715
2716 # Some tools Automake needs.
2717
2718 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2719
2720
2721 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2722
2723
2724 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2725
2726
2727 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2728
2729
2730 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2731
2732 # We need awk for the "check" target.  The system "awk" is bad on
2733 # some platforms.
2734 # Always define AMTAR for backward compatibility.  Yes, it's still used
2735 # in the wild :-(  We should find a proper way to deprecate it ...
2736 AMTAR='$${TAR-tar}'
2737
2738 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2739
2740
2741
2742
2743
2744 ac_config_headers="$ac_config_headers config.h"
2745
2746
2747 # Check whether --enable-silent-rules was given.
2748 if test "${enable_silent_rules+set}" = set; then :
2749   enableval=$enable_silent_rules;
2750 fi
2751
2752 case $enable_silent_rules in
2753 yes) AM_DEFAULT_VERBOSITY=0;;
2754 no)  AM_DEFAULT_VERBOSITY=1;;
2755 *)   AM_DEFAULT_VERBOSITY=0;;
2756 esac
2757 am_make=${MAKE-make}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2759 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2760 if ${am_cv_make_support_nested_variables+:} false; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if $as_echo 'TRUE=$(BAR$(V))
2764 BAR0=false
2765 BAR1=true
2766 V=1
2767 am__doit:
2768         @$(TRUE)
2769 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2770   am_cv_make_support_nested_variables=yes
2771 else
2772   am_cv_make_support_nested_variables=no
2773 fi
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2776 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2777 if test $am_cv_make_support_nested_variables = yes; then
2778     AM_V='$(V)'
2779   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2780 else
2781   AM_V=$AM_DEFAULT_VERBOSITY
2782   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2783 fi
2784 AM_BACKSLASH='\'
2785
2786
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2789 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2790     # Check whether --enable-maintainer-mode was given.
2791 if test "${enable_maintainer_mode+set}" = set; then :
2792   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2793 else
2794   USE_MAINTAINER_MODE=no
2795 fi
2796
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2798 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2799    if test $USE_MAINTAINER_MODE = yes; then
2800   MAINTAINER_MODE_TRUE=
2801   MAINTAINER_MODE_FALSE='#'
2802 else
2803   MAINTAINER_MODE_TRUE='#'
2804   MAINTAINER_MODE_FALSE=
2805 fi
2806
2807   MAINT=$MAINTAINER_MODE_TRUE
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2821         if test -n "$ac_tool_prefix"; then
2822   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2827   $as_echo_n "(cached) " >&6
2828 else
2829   case $PKG_CONFIG in
2830   [\\/]* | ?:[\\/]*)
2831   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2832   ;;
2833   *)
2834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839     for ac_exec_ext in '' $ac_executable_extensions; do
2840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846   done
2847 IFS=$as_save_IFS
2848
2849   ;;
2850 esac
2851 fi
2852 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2853 if test -n "$PKG_CONFIG"; then
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2855 $as_echo "$PKG_CONFIG" >&6; }
2856 else
2857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 fi
2860
2861
2862 fi
2863 if test -z "$ac_cv_path_PKG_CONFIG"; then
2864   ac_pt_PKG_CONFIG=$PKG_CONFIG
2865   # Extract the first word of "pkg-config", so it can be a program name with args.
2866 set dummy pkg-config; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2870   $as_echo_n "(cached) " >&6
2871 else
2872   case $ac_pt_PKG_CONFIG in
2873   [\\/]* | ?:[\\/]*)
2874   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2875   ;;
2876   *)
2877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882     for ac_exec_ext in '' $ac_executable_extensions; do
2883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889   done
2890 IFS=$as_save_IFS
2891
2892   ;;
2893 esac
2894 fi
2895 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2896 if test -n "$ac_pt_PKG_CONFIG"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2898 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904   if test "x$ac_pt_PKG_CONFIG" = x; then
2905     PKG_CONFIG=""
2906   else
2907     case $cross_compiling:$ac_tool_warned in
2908 yes:)
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913     PKG_CONFIG=$ac_pt_PKG_CONFIG
2914   fi
2915 else
2916   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2917 fi
2918
2919 fi
2920 if test -n "$PKG_CONFIG"; then
2921         _pkg_min_version=0.9.0
2922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2923 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2924         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2925                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926 $as_echo "yes" >&6; }
2927         else
2928                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930                 PKG_CONFIG=""
2931         fi
2932 fi
2933
2934
2935         if (test "${CFLAGS}" = ""); then
2936                 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2937         fi
2938         if (test "$USE_MAINTAINER_MODE" = "yes"); then
2939                 CFLAGS="$CFLAGS -Werror -Wextra"
2940                 CFLAGS="$CFLAGS -Wno-unused-parameter"
2941                 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
2942                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
2943                 CFLAGS="$CFLAGS -Wmissing-declarations"
2944                 CFLAGS="$CFLAGS -Wredundant-decls"
2945                 CFLAGS="$CFLAGS -Wcast-align"
2946                 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
2947         fi
2948
2949
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955
2956
2957 DEPDIR="${am__leading_dot}deps"
2958
2959 ac_config_commands="$ac_config_commands depfiles"
2960
2961
2962 am_make=${MAKE-make}
2963 cat > confinc << 'END'
2964 am__doit:
2965         @echo this is the am__doit target
2966 .PHONY: am__doit
2967 END
2968 # If we don't find an include directive, just comment out the code.
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2970 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2971 am__include="#"
2972 am__quote=
2973 _am_result=none
2974 # First try GNU make style include.
2975 echo "include confinc" > confmf
2976 # Ignore all kinds of additional output from `make'.
2977 case `$am_make -s -f confmf 2> /dev/null` in #(
2978 *the\ am__doit\ target*)
2979   am__include=include
2980   am__quote=
2981   _am_result=GNU
2982   ;;
2983 esac
2984 # Now try BSD make style include.
2985 if test "$am__include" = "#"; then
2986    echo '.include "confinc"' > confmf
2987    case `$am_make -s -f confmf 2> /dev/null` in #(
2988    *the\ am__doit\ target*)
2989      am__include=.include
2990      am__quote="\""
2991      _am_result=BSD
2992      ;;
2993    esac
2994 fi
2995
2996
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2998 $as_echo "$_am_result" >&6; }
2999 rm -f confinc confmf
3000
3001 # Check whether --enable-dependency-tracking was given.
3002 if test "${enable_dependency_tracking+set}" = set; then :
3003   enableval=$enable_dependency_tracking;
3004 fi
3005
3006 if test "x$enable_dependency_tracking" != xno; then
3007   am_depcomp="$ac_aux_dir/depcomp"
3008   AMDEPBACKSLASH='\'
3009   am__nodep='_no'
3010 fi
3011  if test "x$enable_dependency_tracking" != xno; then
3012   AMDEP_TRUE=
3013   AMDEP_FALSE='#'
3014 else
3015   AMDEP_TRUE='#'
3016   AMDEP_FALSE=
3017 fi
3018
3019
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 if test -n "$ac_tool_prefix"; then
3026   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$CC"; then
3034   ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063 fi
3064 if test -z "$ac_cv_prog_CC"; then
3065   ac_ct_CC=$CC
3066   # Extract the first word of "gcc", so it can be a program name with args.
3067 set dummy gcc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$ac_ct_CC"; then
3074   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083     ac_cv_prog_ac_ct_CC="gcc"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096 $as_echo "$ac_ct_CC" >&6; }
3097 else
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102   if test "x$ac_ct_CC" = x; then
3103     CC=""
3104   else
3105     case $cross_compiling:$ac_tool_warned in
3106 yes:)
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3110 esac
3111     CC=$ac_ct_CC
3112   fi
3113 else
3114   CC="$ac_cv_prog_CC"
3115 fi
3116
3117 if test -z "$CC"; then
3118           if test -n "$ac_tool_prefix"; then
3119     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3120 set dummy ${ac_tool_prefix}cc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124   $as_echo_n "(cached) " >&6
3125 else
3126   if test -n "$CC"; then
3127   ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134     for ac_exec_ext in '' $ac_executable_extensions; do
3135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136     ac_cv_prog_CC="${ac_tool_prefix}cc"
3137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138     break 2
3139   fi
3140 done
3141   done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156   fi
3157 fi
3158 if test -z "$CC"; then
3159   # Extract the first word of "cc", so it can be a program name with args.
3160 set dummy cc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164   $as_echo_n "(cached) " >&6
3165 else
3166   if test -n "$CC"; then
3167   ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169   ac_prog_rejected=no
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_exec_ext in '' $ac_executable_extensions; do
3176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3178        ac_prog_rejected=yes
3179        continue
3180      fi
3181     ac_cv_prog_CC="cc"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 if test $ac_prog_rejected = yes; then
3190   # We found a bogon in the path, so make sure we never use it.
3191   set dummy $ac_cv_prog_CC
3192   shift
3193   if test $# != 0; then
3194     # We chose a different compiler from the bogus one.
3195     # However, it has the same basename, so the bogon will be chosen
3196     # first if we set CC to just the basename; use the full file name.
3197     shift
3198     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3199   fi
3200 fi
3201 fi
3202 fi
3203 CC=$ac_cv_prog_CC
3204 if test -n "$CC"; then
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213 fi
3214 if test -z "$CC"; then
3215   if test -n "$ac_tool_prefix"; then
3216   for ac_prog in cl.exe
3217   do
3218     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_CC+:} false; then :
3223   $as_echo_n "(cached) " >&6
3224 else
3225   if test -n "$CC"; then
3226   ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233     for ac_exec_ext in '' $ac_executable_extensions; do
3234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240   done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; }
3249 else
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255     test -n "$CC" && break
3256   done
3257 fi
3258 if test -z "$CC"; then
3259   ac_ct_CC=$CC
3260   for ac_prog in cl.exe
3261 do
3262   # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3267   $as_echo_n "(cached) " >&6
3268 else
3269   if test -n "$ac_ct_CC"; then
3270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277     for ac_exec_ext in '' $ac_executable_extensions; do
3278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279     ac_cv_prog_ac_ct_CC="$ac_prog"
3280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281     break 2
3282   fi
3283 done
3284   done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3290 if test -n "$ac_ct_CC"; then
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3292 $as_echo "$ac_ct_CC" >&6; }
3293 else
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299   test -n "$ac_ct_CC" && break
3300 done
3301
3302   if test "x$ac_ct_CC" = x; then
3303     CC=""
3304   else
3305     case $cross_compiling:$ac_tool_warned in
3306 yes:)
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311     CC=$ac_ct_CC
3312   fi
3313 fi
3314
3315 fi
3316
3317
3318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "no acceptable C compiler found in \$PATH
3321 See \`config.log' for more details" "$LINENO" 5; }
3322
3323 # Provide some information about the compiler.
3324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3325 set X $ac_compile
3326 ac_compiler=$2
3327 for ac_option in --version -v -V -qversion; do
3328   { { ac_try="$ac_compiler $ac_option >&5"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3336   ac_status=$?
3337   if test -s conftest.err; then
3338     sed '10a\
3339 ... rest of stderr output deleted ...
3340          10q' conftest.err >conftest.er1
3341     cat conftest.er1 >&5
3342   fi
3343   rm -f conftest.er1 conftest.err
3344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345   test $ac_status = 0; }
3346 done
3347
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h.  */
3350
3351 int
3352 main ()
3353 {
3354
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 ac_clean_files_save=$ac_clean_files
3360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3361 # Try to create an executable without -o first, disregard a.out.
3362 # It will help us diagnose broken compilers, and finding out an intuition
3363 # of exeext.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365 $as_echo_n "checking whether the C compiler works... " >&6; }
3366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3367
3368 # The possible output files:
3369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3370
3371 ac_rmfiles=
3372 for ac_file in $ac_files
3373 do
3374   case $ac_file in
3375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3377   esac
3378 done
3379 rm -f $ac_rmfiles
3380
3381 if { { ac_try="$ac_link_default"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388   (eval "$ac_link_default") 2>&5
3389   ac_status=$?
3390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391   test $ac_status = 0; }; then :
3392   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3396 # Autoconf.
3397 for ac_file in $ac_files ''
3398 do
3399   test -f "$ac_file" || continue
3400   case $ac_file in
3401     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3402         ;;
3403     [ab].out )
3404         # We found the default executable, but exeext='' is most
3405         # certainly right.
3406         break;;
3407     *.* )
3408         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3409         then :; else
3410            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411         fi
3412         # We set ac_cv_exeext here because the later test for it is not
3413         # safe: cross compilers may not add the suffix if given an `-o'
3414         # argument, so we may need to know it at that point already.
3415         # Even if this section looks crufty: it has the advantage of
3416         # actually working.
3417         break;;
3418     * )
3419         break;;
3420   esac
3421 done
3422 test "$ac_cv_exeext" = no && ac_cv_exeext=
3423
3424 else
3425   ac_file=''
3426 fi
3427 if test -z "$ac_file"; then :
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error 77 "C compiler cannot create executables
3436 See \`config.log' for more details" "$LINENO" 5; }
3437 else
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3439 $as_echo "yes" >&6; }
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3442 $as_echo_n "checking for C compiler default output file name... " >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3444 $as_echo "$ac_file" >&6; }
3445 ac_exeext=$ac_cv_exeext
3446
3447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3450 $as_echo_n "checking for suffix of executables... " >&6; }
3451 if { { ac_try="$ac_link"
3452 case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458   (eval "$ac_link") 2>&5
3459   ac_status=$?
3460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461   test $ac_status = 0; }; then :
3462   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3463 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3464 # work properly (i.e., refer to `conftest.exe'), while it won't with
3465 # `rm'.
3466 for ac_file in conftest.exe conftest conftest.*; do
3467   test -f "$ac_file" || continue
3468   case $ac_file in
3469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471           break;;
3472     * ) break;;
3473   esac
3474 done
3475 else
3476   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3479 See \`config.log' for more details" "$LINENO" 5; }
3480 fi
3481 rm -f conftest conftest$ac_cv_exeext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3483 $as_echo "$ac_cv_exeext" >&6; }
3484
3485 rm -f conftest.$ac_ext
3486 EXEEXT=$ac_cv_exeext
3487 ac_exeext=$EXEEXT
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490 #include <stdio.h>
3491 int
3492 main ()
3493 {
3494 FILE *f = fopen ("conftest.out", "w");
3495  return ferror (f) || fclose (f) != 0;
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 ac_clean_files="$ac_clean_files conftest.out"
3502 # Check that the compiler produces executables we can run.  If not, either
3503 # the compiler is broken, or we cross compile.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3505 $as_echo_n "checking whether we are cross compiling... " >&6; }
3506 if test "$cross_compiling" != yes; then
3507   { { ac_try="$ac_link"
3508 case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514   (eval "$ac_link") 2>&5
3515   ac_status=$?
3516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517   test $ac_status = 0; }
3518   if { ac_try='./conftest$ac_cv_exeext'
3519   { { case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_try") 2>&5
3526   ac_status=$?
3527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528   test $ac_status = 0; }; }; then
3529     cross_compiling=no
3530   else
3531     if test "$cross_compiling" = maybe; then
3532         cross_compiling=yes
3533     else
3534         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot run C compiled programs.
3537 If you meant to cross compile, use \`--host'.
3538 See \`config.log' for more details" "$LINENO" 5; }
3539     fi
3540   fi
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3543 $as_echo "$cross_compiling" >&6; }
3544
3545 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3546 ac_clean_files=$ac_clean_files_save
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if ${ac_cv_objext+:} false; then :
3550   $as_echo_n "(cached) " >&6
3551 else
3552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h.  */
3554
3555 int
3556 main ()
3557 {
3558
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 rm -f conftest.o conftest.obj
3564 if { { ac_try="$ac_compile"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571   (eval "$ac_compile") 2>&5
3572   ac_status=$?
3573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574   test $ac_status = 0; }; then :
3575   for ac_file in conftest.o conftest.obj conftest.*; do
3576   test -f "$ac_file" || continue;
3577   case $ac_file in
3578     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3579     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3580        break;;
3581   esac
3582 done
3583 else
3584   $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of object files: cannot compile
3590 See \`config.log' for more details" "$LINENO" 5; }
3591 fi
3592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3595 $as_echo "$ac_cv_objext" >&6; }
3596 OBJEXT=$ac_cv_objext
3597 ac_objext=$OBJEXT
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3600 if ${ac_cv_c_compiler_gnu+:} false; then :
3601   $as_echo_n "(cached) " >&6
3602 else
3603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h.  */
3605
3606 int
3607 main ()
3608 {
3609 #ifndef __GNUC__
3610        choke me
3611 #endif
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618   ac_compiler_gnu=yes
3619 else
3620   ac_compiler_gnu=no
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3624
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3628 if test $ac_compiler_gnu = yes; then
3629   GCC=yes
3630 else
3631   GCC=
3632 fi
3633 ac_test_CFLAGS=${CFLAGS+set}
3634 ac_save_CFLAGS=$CFLAGS
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3637 if ${ac_cv_prog_cc_g+:} false; then :
3638   $as_echo_n "(cached) " >&6
3639 else
3640   ac_save_c_werror_flag=$ac_c_werror_flag
3641    ac_c_werror_flag=yes
3642    ac_cv_prog_cc_g=no
3643    CFLAGS="-g"
3644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h.  */
3646
3647 int
3648 main ()
3649 {
3650
3651   ;
3652   return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656   ac_cv_prog_cc_g=yes
3657 else
3658   CFLAGS=""
3659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h.  */
3661
3662 int
3663 main ()
3664 {
3665
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 if ac_fn_c_try_compile "$LINENO"; then :
3671
3672 else
3673   ac_c_werror_flag=$ac_save_c_werror_flag
3674          CFLAGS="-g"
3675          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h.  */
3677
3678 int
3679 main ()
3680 {
3681
3682   ;
3683   return 0;
3684 }
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687   ac_cv_prog_cc_g=yes
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 fi
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694    ac_c_werror_flag=$ac_save_c_werror_flag
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3697 $as_echo "$ac_cv_prog_cc_g" >&6; }
3698 if test "$ac_test_CFLAGS" = set; then
3699   CFLAGS=$ac_save_CFLAGS
3700 elif test $ac_cv_prog_cc_g = yes; then
3701   if test "$GCC" = yes; then
3702     CFLAGS="-g -O2"
3703   else
3704     CFLAGS="-g"
3705   fi
3706 else
3707   if test "$GCC" = yes; then
3708     CFLAGS="-O2"
3709   else
3710     CFLAGS=
3711   fi
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3715 if ${ac_cv_prog_cc_c89+:} false; then :
3716   $as_echo_n "(cached) " >&6
3717 else
3718   ac_cv_prog_cc_c89=no
3719 ac_save_CC=$CC
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722 #include <stdarg.h>
3723 #include <stdio.h>
3724 struct stat;
3725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3726 struct buf { int x; };
3727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3728 static char *e (p, i)
3729      char **p;
3730      int i;
3731 {
3732   return p[i];
3733 }
3734 static char *f (char * (*g) (char **, int), char **p, ...)
3735 {
3736   char *s;
3737   va_list v;
3738   va_start (v,p);
3739   s = g (p, va_arg (v,int));
3740   va_end (v);
3741   return s;
3742 }
3743
3744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3745    function prototypes and stuff, but not '\xHH' hex character constants.
3746    These don't provoke an error unfortunately, instead are silently treated
3747    as 'x'.  The following induces an error, until -std is added to get
3748    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3749    array size at least.  It's necessary to write '\x00'==0 to get something
3750    that's true only with -std.  */
3751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3752
3753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3754    inside strings and character constants.  */
3755 #define FOO(x) 'x'
3756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3757
3758 int test (int i, double x);
3759 struct s1 {int (*f) (int a);};
3760 struct s2 {int (*f) (double a);};
3761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3762 int argc;
3763 char **argv;
3764 int
3765 main ()
3766 {
3767 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3773         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3774 do
3775   CC="$ac_save_CC $ac_arg"
3776   if ac_fn_c_try_compile "$LINENO"; then :
3777   ac_cv_prog_cc_c89=$ac_arg
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext
3780   test "x$ac_cv_prog_cc_c89" != "xno" && break
3781 done
3782 rm -f conftest.$ac_ext
3783 CC=$ac_save_CC
3784
3785 fi
3786 # AC_CACHE_VAL
3787 case "x$ac_cv_prog_cc_c89" in
3788   x)
3789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3790 $as_echo "none needed" >&6; } ;;
3791   xno)
3792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3793 $as_echo "unsupported" >&6; } ;;
3794   *)
3795     CC="$CC $ac_cv_prog_cc_c89"
3796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3798 esac
3799 if test "x$ac_cv_prog_cc_c89" != xno; then :
3800
3801 fi
3802
3803 ac_ext=c
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808
3809 depcc="$CC"   am_compiler_list=
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812 $as_echo_n "checking dependency style of $depcc... " >&6; }
3813 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817   # We make a subdir and do the tests there.  Otherwise we can end up
3818   # making bogus files that we don't know about and never remove.  For
3819   # instance it was reported that on HP-UX the gcc test will end up
3820   # making a dummy file named `D' -- because `-MD' means `put the output
3821   # in D'.
3822   rm -rf conftest.dir
3823   mkdir conftest.dir
3824   # Copy depcomp to subdir because otherwise we won't find it if we're
3825   # using a relative directory.
3826   cp "$am_depcomp" conftest.dir
3827   cd conftest.dir
3828   # We will build objects and dependencies in a subdirectory because
3829   # it helps to detect inapplicable dependency modes.  For instance
3830   # both Tru64's cc and ICC support -MD to output dependencies as a
3831   # side effect of compilation, but ICC will put the dependencies in
3832   # the current directory while Tru64 will put them in the object
3833   # directory.
3834   mkdir sub
3835
3836   am_cv_CC_dependencies_compiler_type=none
3837   if test "$am_compiler_list" = ""; then
3838      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3839   fi
3840   am__universal=false
3841   case " $depcc " in #(
3842      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3843      esac
3844
3845   for depmode in $am_compiler_list; do
3846     # Setup a source with many dependencies, because some compilers
3847     # like to wrap large dependency lists on column 80 (with \), and
3848     # we should not choose a depcomp mode which is confused by this.
3849     #
3850     # We need to recreate these files for each test, as the compiler may
3851     # overwrite some of them when testing with obscure command lines.
3852     # This happens at least with the AIX C compiler.
3853     : > sub/conftest.c
3854     for i in 1 2 3 4 5 6; do
3855       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3856       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3857       # Solaris 8's {/usr,}/bin/sh.
3858       touch sub/conftst$i.h
3859     done
3860     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3861
3862     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3863     # mode.  It turns out that the SunPro C++ compiler does not properly
3864     # handle `-M -o', and we need to detect this.  Also, some Intel
3865     # versions had trouble with output in subdirs
3866     am__obj=sub/conftest.${OBJEXT-o}
3867     am__minus_obj="-o $am__obj"
3868     case $depmode in
3869     gcc)
3870       # This depmode causes a compiler race in universal mode.
3871       test "$am__universal" = false || continue
3872       ;;
3873     nosideeffect)
3874       # after this tag, mechanisms are not by side-effect, so they'll
3875       # only be used when explicitly requested
3876       if test "x$enable_dependency_tracking" = xyes; then
3877         continue
3878       else
3879         break
3880       fi
3881       ;;
3882     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3883       # This compiler won't grok `-c -o', but also, the minuso test has
3884       # not run yet.  These depmodes are late enough in the game, and
3885       # so weak that their functioning should not be impacted.
3886       am__obj=conftest.${OBJEXT-o}
3887       am__minus_obj=
3888       ;;
3889     none) break ;;
3890     esac
3891     if depmode=$depmode \
3892        source=sub/conftest.c object=$am__obj \
3893        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3894        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3895          >/dev/null 2>conftest.err &&
3896        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3897        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3898        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3899        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3900       # icc doesn't choke on unknown options, it will just issue warnings
3901       # or remarks (even with -Werror).  So we grep stderr for any message
3902       # that says an option was ignored or not supported.
3903       # When given -MP, icc 7.0 and 7.1 complain thusly:
3904       #   icc: Command line warning: ignoring option '-M'; no argument required
3905       # The diagnosis changed in icc 8.0:
3906       #   icc: Command line remark: option '-MP' not supported
3907       if (grep 'ignoring option' conftest.err ||
3908           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3909         am_cv_CC_dependencies_compiler_type=$depmode
3910         break
3911       fi
3912     fi
3913   done
3914
3915   cd ..
3916   rm -rf conftest.dir
3917 else
3918   am_cv_CC_dependencies_compiler_type=none
3919 fi
3920
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3923 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3924 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3925
3926  if
3927   test "x$enable_dependency_tracking" != xno \
3928   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3929   am__fastdepCC_TRUE=
3930   am__fastdepCC_FALSE='#'
3931 else
3932   am__fastdepCC_TRUE='#'
3933   am__fastdepCC_FALSE=
3934 fi
3935
3936
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
3939 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
3940 if ${ac_cv_c_restrict+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   ac_cv_c_restrict=no
3944    # The order here caters to the fact that C++ does not require restrict.
3945    for ac_kw in __restrict __restrict__ _Restrict restrict; do
3946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h.  */
3948 typedef int * int_ptr;
3949         int foo (int_ptr $ac_kw ip) {
3950         return ip[0];
3951        }
3952 int
3953 main ()
3954 {
3955 int s[1];
3956         int * $ac_kw t = s;
3957         t[0] = 0;
3958         return foo(t)
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_c_restrict=$ac_kw
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967      test "$ac_cv_c_restrict" != no && break
3968    done
3969
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3972 $as_echo "$ac_cv_c_restrict" >&6; }
3973
3974  case $ac_cv_c_restrict in
3975    restrict) ;;
3976    no) $as_echo "#define restrict /**/" >>confdefs.h
3977  ;;
3978    *)  cat >>confdefs.h <<_ACEOF
3979 #define restrict $ac_cv_c_restrict
3980 _ACEOF
3981  ;;
3982  esac
3983
3984
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990 if test -n "$ac_tool_prefix"; then
3991   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if ${ac_cv_prog_CC+:} false; then :
3996   $as_echo_n "(cached) " >&6
3997 else
3998   if test -n "$CC"; then
3999   ac_cv_prog_CC="$CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006     for ac_exec_ext in '' $ac_executable_extensions; do
4007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013   done
4014 IFS=$as_save_IFS
4015
4016 fi
4017 fi
4018 CC=$ac_cv_prog_CC
4019 if test -n "$CC"; then
4020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021 $as_echo "$CC" >&6; }
4022 else
4023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4025 fi
4026
4027
4028 fi
4029 if test -z "$ac_cv_prog_CC"; then
4030   ac_ct_CC=$CC
4031   # Extract the first word of "gcc", so it can be a program name with args.
4032 set dummy gcc; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4036   $as_echo_n "(cached) " >&6
4037 else
4038   if test -n "$ac_ct_CC"; then
4039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046     for ac_exec_ext in '' $ac_executable_extensions; do
4047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048     ac_cv_prog_ac_ct_CC="gcc"
4049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050     break 2
4051   fi
4052 done
4053   done
4054 IFS=$as_save_IFS
4055
4056 fi
4057 fi
4058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059 if test -n "$ac_ct_CC"; then
4060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061 $as_echo "$ac_ct_CC" >&6; }
4062 else
4063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4065 fi
4066
4067   if test "x$ac_ct_CC" = x; then
4068     CC=""
4069   else
4070     case $cross_compiling:$ac_tool_warned in
4071 yes:)
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074 ac_tool_warned=yes ;;
4075 esac
4076     CC=$ac_ct_CC
4077   fi
4078 else
4079   CC="$ac_cv_prog_CC"
4080 fi
4081
4082 if test -z "$CC"; then
4083           if test -n "$ac_tool_prefix"; then
4084     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}cc; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false; then :
4089   $as_echo_n "(cached) " >&6
4090 else
4091   if test -n "$CC"; then
4092   ac_cv_prog_CC="$CC" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099     for ac_exec_ext in '' $ac_executable_extensions; do
4100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101     ac_cv_prog_CC="${ac_tool_prefix}cc"
4102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106   done
4107 IFS=$as_save_IFS
4108
4109 fi
4110 fi
4111 CC=$ac_cv_prog_CC
4112 if test -n "$CC"; then
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4115 else
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4118 fi
4119
4120
4121   fi
4122 fi
4123 if test -z "$CC"; then
4124   # Extract the first word of "cc", so it can be a program name with args.
4125 set dummy cc; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_CC+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   if test -n "$CC"; then
4132   ac_cv_prog_CC="$CC" # Let the user override the test.
4133 else
4134   ac_prog_rejected=no
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140     for ac_exec_ext in '' $ac_executable_extensions; do
4141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143        ac_prog_rejected=yes
4144        continue
4145      fi
4146     ac_cv_prog_CC="cc"
4147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151   done
4152 IFS=$as_save_IFS
4153
4154 if test $ac_prog_rejected = yes; then
4155   # We found a bogon in the path, so make sure we never use it.
4156   set dummy $ac_cv_prog_CC
4157   shift
4158   if test $# != 0; then
4159     # We chose a different compiler from the bogus one.
4160     # However, it has the same basename, so the bogon will be chosen
4161     # first if we set CC to just the basename; use the full file name.
4162     shift
4163     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4164   fi
4165 fi
4166 fi
4167 fi
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4172 else
4173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 if test -z "$CC"; then
4180   if test -n "$ac_tool_prefix"; then
4181   for ac_prog in cl.exe
4182   do
4183     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_CC+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -n "$CC"; then
4191   ac_cv_prog_CC="$CC" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198     for ac_exec_ext in '' $ac_executable_extensions; do
4199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205   done
4206 IFS=$as_save_IFS
4207
4208 fi
4209 fi
4210 CC=$ac_cv_prog_CC
4211 if test -n "$CC"; then
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213 $as_echo "$CC" >&6; }
4214 else
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217 fi
4218
4219
4220     test -n "$CC" && break
4221   done
4222 fi
4223 if test -z "$CC"; then
4224   ac_ct_CC=$CC
4225   for ac_prog in cl.exe
4226 do
4227   # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   if test -n "$ac_ct_CC"; then
4235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242     for ac_exec_ext in '' $ac_executable_extensions; do
4243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244     ac_cv_prog_ac_ct_CC="$ac_prog"
4245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249   done
4250 IFS=$as_save_IFS
4251
4252 fi
4253 fi
4254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4255 if test -n "$ac_ct_CC"; then
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4257 $as_echo "$ac_ct_CC" >&6; }
4258 else
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262
4263
4264   test -n "$ac_ct_CC" && break
4265 done
4266
4267   if test "x$ac_ct_CC" = x; then
4268     CC=""
4269   else
4270     case $cross_compiling:$ac_tool_warned in
4271 yes:)
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4274 ac_tool_warned=yes ;;
4275 esac
4276     CC=$ac_ct_CC
4277   fi
4278 fi
4279
4280 fi
4281
4282
4283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error $? "no acceptable C compiler found in \$PATH
4286 See \`config.log' for more details" "$LINENO" 5; }
4287
4288 # Provide some information about the compiler.
4289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4290 set X $ac_compile
4291 ac_compiler=$2
4292 for ac_option in --version -v -V -qversion; do
4293   { { ac_try="$ac_compiler $ac_option >&5"
4294 case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4301   ac_status=$?
4302   if test -s conftest.err; then
4303     sed '10a\
4304 ... rest of stderr output deleted ...
4305          10q' conftest.err >conftest.er1
4306     cat conftest.er1 >&5
4307   fi
4308   rm -f conftest.er1 conftest.err
4309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310   test $ac_status = 0; }
4311 done
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4315 if ${ac_cv_c_compiler_gnu+:} false; then :
4316   $as_echo_n "(cached) " >&6
4317 else
4318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h.  */
4320
4321 int
4322 main ()
4323 {
4324 #ifndef __GNUC__
4325        choke me
4326 #endif
4327
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 if ac_fn_c_try_compile "$LINENO"; then :
4333   ac_compiler_gnu=yes
4334 else
4335   ac_compiler_gnu=no
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4339
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4342 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4343 if test $ac_compiler_gnu = yes; then
4344   GCC=yes
4345 else
4346   GCC=
4347 fi
4348 ac_test_CFLAGS=${CFLAGS+set}
4349 ac_save_CFLAGS=$CFLAGS
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4351 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4352 if ${ac_cv_prog_cc_g+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   ac_save_c_werror_flag=$ac_c_werror_flag
4356    ac_c_werror_flag=yes
4357    ac_cv_prog_cc_g=no
4358    CFLAGS="-g"
4359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h.  */
4361
4362 int
4363 main ()
4364 {
4365
4366   ;
4367   return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371   ac_cv_prog_cc_g=yes
4372 else
4373   CFLAGS=""
4374       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h.  */
4376
4377 int
4378 main ()
4379 {
4380
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386
4387 else
4388   ac_c_werror_flag=$ac_save_c_werror_flag
4389          CFLAGS="-g"
4390          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392
4393 int
4394 main ()
4395 {
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_c_try_compile "$LINENO"; then :
4402   ac_cv_prog_cc_g=yes
4403 fi
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409    ac_c_werror_flag=$ac_save_c_werror_flag
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4412 $as_echo "$ac_cv_prog_cc_g" >&6; }
4413 if test "$ac_test_CFLAGS" = set; then
4414   CFLAGS=$ac_save_CFLAGS
4415 elif test $ac_cv_prog_cc_g = yes; then
4416   if test "$GCC" = yes; then
4417     CFLAGS="-g -O2"
4418   else
4419     CFLAGS="-g"
4420   fi
4421 else
4422   if test "$GCC" = yes; then
4423     CFLAGS="-O2"
4424   else
4425     CFLAGS=
4426   fi
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4430 if ${ac_cv_prog_cc_c89+:} false; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   ac_cv_prog_cc_c89=no
4434 ac_save_CC=$CC
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h.  */
4437 #include <stdarg.h>
4438 #include <stdio.h>
4439 struct stat;
4440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4441 struct buf { int x; };
4442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4443 static char *e (p, i)
4444      char **p;
4445      int i;
4446 {
4447   return p[i];
4448 }
4449 static char *f (char * (*g) (char **, int), char **p, ...)
4450 {
4451   char *s;
4452   va_list v;
4453   va_start (v,p);
4454   s = g (p, va_arg (v,int));
4455   va_end (v);
4456   return s;
4457 }
4458
4459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4460    function prototypes and stuff, but not '\xHH' hex character constants.
4461    These don't provoke an error unfortunately, instead are silently treated
4462    as 'x'.  The following induces an error, until -std is added to get
4463    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4464    array size at least.  It's necessary to write '\x00'==0 to get something
4465    that's true only with -std.  */
4466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4467
4468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4469    inside strings and character constants.  */
4470 #define FOO(x) 'x'
4471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4472
4473 int test (int i, double x);
4474 struct s1 {int (*f) (int a);};
4475 struct s2 {int (*f) (double a);};
4476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4477 int argc;
4478 char **argv;
4479 int
4480 main ()
4481 {
4482 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4488         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4489 do
4490   CC="$ac_save_CC $ac_arg"
4491   if ac_fn_c_try_compile "$LINENO"; then :
4492   ac_cv_prog_cc_c89=$ac_arg
4493 fi
4494 rm -f core conftest.err conftest.$ac_objext
4495   test "x$ac_cv_prog_cc_c89" != "xno" && break
4496 done
4497 rm -f conftest.$ac_ext
4498 CC=$ac_save_CC
4499
4500 fi
4501 # AC_CACHE_VAL
4502 case "x$ac_cv_prog_cc_c89" in
4503   x)
4504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4505 $as_echo "none needed" >&6; } ;;
4506   xno)
4507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4508 $as_echo "unsupported" >&6; } ;;
4509   *)
4510     CC="$CC $ac_cv_prog_cc_c89"
4511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4513 esac
4514 if test "x$ac_cv_prog_cc_c89" != xno; then :
4515
4516 fi
4517
4518 ac_ext=c
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523
4524 depcc="$CC"   am_compiler_list=
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4527 $as_echo_n "checking dependency style of $depcc... " >&6; }
4528 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4532   # We make a subdir and do the tests there.  Otherwise we can end up
4533   # making bogus files that we don't know about and never remove.  For
4534   # instance it was reported that on HP-UX the gcc test will end up
4535   # making a dummy file named `D' -- because `-MD' means `put the output
4536   # in D'.
4537   rm -rf conftest.dir
4538   mkdir conftest.dir
4539   # Copy depcomp to subdir because otherwise we won't find it if we're
4540   # using a relative directory.
4541   cp "$am_depcomp" conftest.dir
4542   cd conftest.dir
4543   # We will build objects and dependencies in a subdirectory because
4544   # it helps to detect inapplicable dependency modes.  For instance
4545   # both Tru64's cc and ICC support -MD to output dependencies as a
4546   # side effect of compilation, but ICC will put the dependencies in
4547   # the current directory while Tru64 will put them in the object
4548   # directory.
4549   mkdir sub
4550
4551   am_cv_CC_dependencies_compiler_type=none
4552   if test "$am_compiler_list" = ""; then
4553      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4554   fi
4555   am__universal=false
4556   case " $depcc " in #(
4557      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4558      esac
4559
4560   for depmode in $am_compiler_list; do
4561     # Setup a source with many dependencies, because some compilers
4562     # like to wrap large dependency lists on column 80 (with \), and
4563     # we should not choose a depcomp mode which is confused by this.
4564     #
4565     # We need to recreate these files for each test, as the compiler may
4566     # overwrite some of them when testing with obscure command lines.
4567     # This happens at least with the AIX C compiler.
4568     : > sub/conftest.c
4569     for i in 1 2 3 4 5 6; do
4570       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4571       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4572       # Solaris 8's {/usr,}/bin/sh.
4573       touch sub/conftst$i.h
4574     done
4575     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4576
4577     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4578     # mode.  It turns out that the SunPro C++ compiler does not properly
4579     # handle `-M -o', and we need to detect this.  Also, some Intel
4580     # versions had trouble with output in subdirs
4581     am__obj=sub/conftest.${OBJEXT-o}
4582     am__minus_obj="-o $am__obj"
4583     case $depmode in
4584     gcc)
4585       # This depmode causes a compiler race in universal mode.
4586       test "$am__universal" = false || continue
4587       ;;
4588     nosideeffect)
4589       # after this tag, mechanisms are not by side-effect, so they'll
4590       # only be used when explicitly requested
4591       if test "x$enable_dependency_tracking" = xyes; then
4592         continue
4593       else
4594         break
4595       fi
4596       ;;
4597     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4598       # This compiler won't grok `-c -o', but also, the minuso test has
4599       # not run yet.  These depmodes are late enough in the game, and
4600       # so weak that their functioning should not be impacted.
4601       am__obj=conftest.${OBJEXT-o}
4602       am__minus_obj=
4603       ;;
4604     none) break ;;
4605     esac
4606     if depmode=$depmode \
4607        source=sub/conftest.c object=$am__obj \
4608        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4609        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4610          >/dev/null 2>conftest.err &&
4611        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4612        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4613        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4614        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4615       # icc doesn't choke on unknown options, it will just issue warnings
4616       # or remarks (even with -Werror).  So we grep stderr for any message
4617       # that says an option was ignored or not supported.
4618       # When given -MP, icc 7.0 and 7.1 complain thusly:
4619       #   icc: Command line warning: ignoring option '-M'; no argument required
4620       # The diagnosis changed in icc 8.0:
4621       #   icc: Command line remark: option '-MP' not supported
4622       if (grep 'ignoring option' conftest.err ||
4623           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4624         am_cv_CC_dependencies_compiler_type=$depmode
4625         break
4626       fi
4627     fi
4628   done
4629
4630   cd ..
4631   rm -rf conftest.dir
4632 else
4633   am_cv_CC_dependencies_compiler_type=none
4634 fi
4635
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4638 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4640
4641  if
4642   test "x$enable_dependency_tracking" != xno \
4643   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4644   am__fastdepCC_TRUE=
4645   am__fastdepCC_FALSE='#'
4646 else
4647   am__fastdepCC_TRUE='#'
4648   am__fastdepCC_FALSE=
4649 fi
4650
4651
4652 if test "x$CC" != xcc; then
4653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4654 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4655 else
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4657 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4658 fi
4659 set dummy $CC; ac_cc=`$as_echo "$2" |
4660                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4661 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 # Make sure it works both with $CC and with simple cc.
4676 # We do the test twice because some compilers refuse to overwrite an
4677 # existing .o file with -o, though they will create one.
4678 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4679 rm -f conftest2.*
4680 if { { case "(($ac_try" in
4681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682   *) ac_try_echo=$ac_try;;
4683 esac
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686   (eval "$ac_try") 2>&5
4687   ac_status=$?
4688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689   test $ac_status = 0; } &&
4690    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692   *) ac_try_echo=$ac_try;;
4693 esac
4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695 $as_echo "$ac_try_echo"; } >&5
4696   (eval "$ac_try") 2>&5
4697   ac_status=$?
4698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699   test $ac_status = 0; };
4700 then
4701   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4702   if test "x$CC" != xcc; then
4703     # Test first that cc exists at all.
4704     if { ac_try='cc -c conftest.$ac_ext >&5'
4705   { { case "(($ac_try" in
4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707   *) ac_try_echo=$ac_try;;
4708 esac
4709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710 $as_echo "$ac_try_echo"; } >&5
4711   (eval "$ac_try") 2>&5
4712   ac_status=$?
4713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714   test $ac_status = 0; }; }; then
4715       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4716       rm -f conftest2.*
4717       if { { case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4722 $as_echo "$ac_try_echo"; } >&5
4723   (eval "$ac_try") 2>&5
4724   ac_status=$?
4725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726   test $ac_status = 0; } &&
4727          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 $as_echo "$ac_try_echo"; } >&5
4733   (eval "$ac_try") 2>&5
4734   ac_status=$?
4735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736   test $ac_status = 0; };
4737       then
4738         # cc works too.
4739         :
4740       else
4741         # cc exists but doesn't like -o.
4742         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4743       fi
4744     fi
4745   fi
4746 else
4747   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4748 fi
4749 rm -f core conftest*
4750
4751 fi
4752 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4754 $as_echo "yes" >&6; }
4755 else
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758
4759 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4760
4761 fi
4762
4763 # FIXME: we rely on the cache variable name because
4764 # there is no other way.
4765 set dummy $CC
4766 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4767 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4768 if test "$am_t" != yes; then
4769    # Losing compiler, so override with the script.
4770    # FIXME: It is wrong to rewrite CC.
4771    # But if we don't then we get into trouble of one sort or another.
4772    # A longer-term fix would be to have automake use am__CC in this case,
4773    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4774    CC="$am_aux_dir/compile $CC"
4775 fi
4776
4777
4778
4779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4780 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4781 if ${ac_cv_prog_cc_pie+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784
4785                 echo 'void f(){}' > conftest.c
4786                 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4787                         ac_cv_prog_cc_pie=yes
4788                 else
4789                         ac_cv_prog_cc_pie=no
4790                 fi
4791                 rm -rf conftest*
4792
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4795 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4796
4797
4798 mkdir_p="$MKDIR_P"
4799 case $mkdir_p in
4800   [\\/$]* | ?:[\\/]*) ;;
4801   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4802 esac
4803
4804
4805
4806
4807
4808 # Check whether --enable-static was given.
4809 if test "${enable_static+set}" = set; then :
4810   enableval=$enable_static; p=${PACKAGE-default}
4811     case $enableval in
4812     yes) enable_static=yes ;;
4813     no) enable_static=no ;;
4814     *)
4815      enable_static=no
4816       # Look at the argument we got.  We use all the common list separators.
4817       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4818       for pkg in $enableval; do
4819         IFS="$lt_save_ifs"
4820         if test "X$pkg" = "X$p"; then
4821           enable_static=yes
4822         fi
4823       done
4824       IFS="$lt_save_ifs"
4825       ;;
4826     esac
4827 else
4828   enable_static=no
4829 fi
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 case `pwd` in
4840   *\ * | *\     *)
4841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4842 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4843 esac
4844
4845
4846
4847 macro_version='2.4.2'
4848 macro_revision='1.3337'
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862 ltmain="$ac_aux_dir/ltmain.sh"
4863
4864 # Make sure we can run config.sub.
4865 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4866   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4869 $as_echo_n "checking build system type... " >&6; }
4870 if ${ac_cv_build+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   ac_build_alias=$build_alias
4874 test "x$ac_build_alias" = x &&
4875   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4876 test "x$ac_build_alias" = x &&
4877   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4878 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4879   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4880
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4883 $as_echo "$ac_cv_build" >&6; }
4884 case $ac_cv_build in
4885 *-*-*) ;;
4886 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4887 esac
4888 build=$ac_cv_build
4889 ac_save_IFS=$IFS; IFS='-'
4890 set x $ac_cv_build
4891 shift
4892 build_cpu=$1
4893 build_vendor=$2
4894 shift; shift
4895 # Remember, the first character of IFS is used to create $*,
4896 # except with old shells:
4897 build_os=$*
4898 IFS=$ac_save_IFS
4899 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4903 $as_echo_n "checking host system type... " >&6; }
4904 if ${ac_cv_host+:} false; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   if test "x$host_alias" = x; then
4908   ac_cv_host=$ac_cv_build
4909 else
4910   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4911     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4912 fi
4913
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4916 $as_echo "$ac_cv_host" >&6; }
4917 case $ac_cv_host in
4918 *-*-*) ;;
4919 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4920 esac
4921 host=$ac_cv_host
4922 ac_save_IFS=$IFS; IFS='-'
4923 set x $ac_cv_host
4924 shift
4925 host_cpu=$1
4926 host_vendor=$2
4927 shift; shift
4928 # Remember, the first character of IFS is used to create $*,
4929 # except with old shells:
4930 host_os=$*
4931 IFS=$ac_save_IFS
4932 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4933
4934
4935 # Backslashify metacharacters that are still active within
4936 # double-quoted strings.
4937 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4938
4939 # Same as above, but do not quote variable references.
4940 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4941
4942 # Sed substitution to delay expansion of an escaped shell variable in a
4943 # double_quote_subst'ed string.
4944 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4945
4946 # Sed substitution to delay expansion of an escaped single quote.
4947 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4948
4949 # Sed substitution to avoid accidental globbing in evaled expressions
4950 no_glob_subst='s/\*/\\\*/g'
4951
4952 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4953 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4954 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4957 $as_echo_n "checking how to print strings... " >&6; }
4958 # Test print first, because it will be a builtin if present.
4959 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4960    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4961   ECHO='print -r --'
4962 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4963   ECHO='printf %s\n'
4964 else
4965   # Use this function as a fallback that always works.
4966   func_fallback_echo ()
4967   {
4968     eval 'cat <<_LTECHO_EOF
4969 $1
4970 _LTECHO_EOF'
4971   }
4972   ECHO='func_fallback_echo'
4973 fi
4974
4975 # func_echo_all arg...
4976 # Invoke $ECHO with all args, space-separated.
4977 func_echo_all ()
4978 {
4979     $ECHO ""
4980 }
4981
4982 case "$ECHO" in
4983   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4984 $as_echo "printf" >&6; } ;;
4985   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4986 $as_echo "print -r" >&6; } ;;
4987   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4988 $as_echo "cat" >&6; } ;;
4989 esac
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5005 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5006 if ${ac_cv_path_SED+:} false; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5010      for ac_i in 1 2 3 4 5 6 7; do
5011        ac_script="$ac_script$as_nl$ac_script"
5012      done
5013      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5014      { ac_script=; unset ac_script;}
5015      if test -z "$SED"; then
5016   ac_path_SED_found=false
5017   # Loop through the user's path and test for each of PROGNAME-LIST
5018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023     for ac_prog in sed gsed; do
5024     for ac_exec_ext in '' $ac_executable_extensions; do
5025       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5026       as_fn_executable_p "$ac_path_SED" || continue
5027 # Check for GNU ac_path_SED and select it if it is found.
5028   # Check for GNU $ac_path_SED
5029 case `"$ac_path_SED" --version 2>&1` in
5030 *GNU*)
5031   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5032 *)
5033   ac_count=0
5034   $as_echo_n 0123456789 >"conftest.in"
5035   while :
5036   do
5037     cat "conftest.in" "conftest.in" >"conftest.tmp"
5038     mv "conftest.tmp" "conftest.in"
5039     cp "conftest.in" "conftest.nl"
5040     $as_echo '' >> "conftest.nl"
5041     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5043     as_fn_arith $ac_count + 1 && ac_count=$as_val
5044     if test $ac_count -gt ${ac_path_SED_max-0}; then
5045       # Best one so far, save it but keep looking for a better one
5046       ac_cv_path_SED="$ac_path_SED"
5047       ac_path_SED_max=$ac_count
5048     fi
5049     # 10*(2^10) chars as input seems more than enough
5050     test $ac_count -gt 10 && break
5051   done
5052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5053 esac
5054
5055       $ac_path_SED_found && break 3
5056     done
5057   done
5058   done
5059 IFS=$as_save_IFS
5060   if test -z "$ac_cv_path_SED"; then
5061     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5062   fi
5063 else
5064   ac_cv_path_SED=$SED
5065 fi
5066
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5069 $as_echo "$ac_cv_path_SED" >&6; }
5070  SED="$ac_cv_path_SED"
5071   rm -f conftest.sed
5072
5073 test -z "$SED" && SED=sed
5074 Xsed="$SED -e 1s/^X//"
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5087 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5088 if ${ac_cv_path_GREP+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   if test -z "$GREP"; then
5092   ac_path_GREP_found=false
5093   # Loop through the user's path and test for each of PROGNAME-LIST
5094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099     for ac_prog in grep ggrep; do
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5102       as_fn_executable_p "$ac_path_GREP" || continue
5103 # Check for GNU ac_path_GREP and select it if it is found.
5104   # Check for GNU $ac_path_GREP
5105 case `"$ac_path_GREP" --version 2>&1` in
5106 *GNU*)
5107   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5108 *)
5109   ac_count=0
5110   $as_echo_n 0123456789 >"conftest.in"
5111   while :
5112   do
5113     cat "conftest.in" "conftest.in" >"conftest.tmp"
5114     mv "conftest.tmp" "conftest.in"
5115     cp "conftest.in" "conftest.nl"
5116     $as_echo 'GREP' >> "conftest.nl"
5117     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119     as_fn_arith $ac_count + 1 && ac_count=$as_val
5120     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5121       # Best one so far, save it but keep looking for a better one
5122       ac_cv_path_GREP="$ac_path_GREP"
5123       ac_path_GREP_max=$ac_count
5124     fi
5125     # 10*(2^10) chars as input seems more than enough
5126     test $ac_count -gt 10 && break
5127   done
5128   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129 esac
5130
5131       $ac_path_GREP_found && break 3
5132     done
5133   done
5134   done
5135 IFS=$as_save_IFS
5136   if test -z "$ac_cv_path_GREP"; then
5137     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138   fi
5139 else
5140   ac_cv_path_GREP=$GREP
5141 fi
5142
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5145 $as_echo "$ac_cv_path_GREP" >&6; }
5146  GREP="$ac_cv_path_GREP"
5147
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5150 $as_echo_n "checking for egrep... " >&6; }
5151 if ${ac_cv_path_EGREP+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5155    then ac_cv_path_EGREP="$GREP -E"
5156    else
5157      if test -z "$EGREP"; then
5158   ac_path_EGREP_found=false
5159   # Loop through the user's path and test for each of PROGNAME-LIST
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_prog in egrep; do
5166     for ac_exec_ext in '' $ac_executable_extensions; do
5167       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5168       as_fn_executable_p "$ac_path_EGREP" || continue
5169 # Check for GNU ac_path_EGREP and select it if it is found.
5170   # Check for GNU $ac_path_EGREP
5171 case `"$ac_path_EGREP" --version 2>&1` in
5172 *GNU*)
5173   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5174 *)
5175   ac_count=0
5176   $as_echo_n 0123456789 >"conftest.in"
5177   while :
5178   do
5179     cat "conftest.in" "conftest.in" >"conftest.tmp"
5180     mv "conftest.tmp" "conftest.in"
5181     cp "conftest.in" "conftest.nl"
5182     $as_echo 'EGREP' >> "conftest.nl"
5183     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5185     as_fn_arith $ac_count + 1 && ac_count=$as_val
5186     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5187       # Best one so far, save it but keep looking for a better one
5188       ac_cv_path_EGREP="$ac_path_EGREP"
5189       ac_path_EGREP_max=$ac_count
5190     fi
5191     # 10*(2^10) chars as input seems more than enough
5192     test $ac_count -gt 10 && break
5193   done
5194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195 esac
5196
5197       $ac_path_EGREP_found && break 3
5198     done
5199   done
5200   done
5201 IFS=$as_save_IFS
5202   if test -z "$ac_cv_path_EGREP"; then
5203     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204   fi
5205 else
5206   ac_cv_path_EGREP=$EGREP
5207 fi
5208
5209    fi
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5212 $as_echo "$ac_cv_path_EGREP" >&6; }
5213  EGREP="$ac_cv_path_EGREP"
5214
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5217 $as_echo_n "checking for fgrep... " >&6; }
5218 if ${ac_cv_path_FGREP+:} false; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5222    then ac_cv_path_FGREP="$GREP -F"
5223    else
5224      if test -z "$FGREP"; then
5225   ac_path_FGREP_found=false
5226   # Loop through the user's path and test for each of PROGNAME-LIST
5227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232     for ac_prog in fgrep; do
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5235       as_fn_executable_p "$ac_path_FGREP" || continue
5236 # Check for GNU ac_path_FGREP and select it if it is found.
5237   # Check for GNU $ac_path_FGREP
5238 case `"$ac_path_FGREP" --version 2>&1` in
5239 *GNU*)
5240   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5241 *)
5242   ac_count=0
5243   $as_echo_n 0123456789 >"conftest.in"
5244   while :
5245   do
5246     cat "conftest.in" "conftest.in" >"conftest.tmp"
5247     mv "conftest.tmp" "conftest.in"
5248     cp "conftest.in" "conftest.nl"
5249     $as_echo 'FGREP' >> "conftest.nl"
5250     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252     as_fn_arith $ac_count + 1 && ac_count=$as_val
5253     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5254       # Best one so far, save it but keep looking for a better one
5255       ac_cv_path_FGREP="$ac_path_FGREP"
5256       ac_path_FGREP_max=$ac_count
5257     fi
5258     # 10*(2^10) chars as input seems more than enough
5259     test $ac_count -gt 10 && break
5260   done
5261   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262 esac
5263
5264       $ac_path_FGREP_found && break 3
5265     done
5266   done
5267   done
5268 IFS=$as_save_IFS
5269   if test -z "$ac_cv_path_FGREP"; then
5270     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5271   fi
5272 else
5273   ac_cv_path_FGREP=$FGREP
5274 fi
5275
5276    fi
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5279 $as_echo "$ac_cv_path_FGREP" >&6; }
5280  FGREP="$ac_cv_path_FGREP"
5281
5282
5283 test -z "$GREP" && GREP=grep
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 # Check whether --with-gnu-ld was given.
5304 if test "${with_gnu_ld+set}" = set; then :
5305   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5306 else
5307   with_gnu_ld=no
5308 fi
5309
5310 ac_prog=ld
5311 if test "$GCC" = yes; then
5312   # Check if gcc -print-prog-name=ld gives a path.
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5314 $as_echo_n "checking for ld used by $CC... " >&6; }
5315   case $host in
5316   *-*-mingw*)
5317     # gcc leaves a trailing carriage return which upsets mingw
5318     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5319   *)
5320     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5321   esac
5322   case $ac_prog in
5323     # Accept absolute paths.
5324     [\\/]* | ?:[\\/]*)
5325       re_direlt='/[^/][^/]*/\.\./'
5326       # Canonicalize the pathname of ld
5327       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5328       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5329         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5330       done
5331       test -z "$LD" && LD="$ac_prog"
5332       ;;
5333   "")
5334     # If it fails, then pretend we aren't using GCC.
5335     ac_prog=ld
5336     ;;
5337   *)
5338     # If it is relative, then search for the first ld in PATH.
5339     with_gnu_ld=unknown
5340     ;;
5341   esac
5342 elif test "$with_gnu_ld" = yes; then
5343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5344 $as_echo_n "checking for GNU ld... " >&6; }
5345 else
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5347 $as_echo_n "checking for non-GNU ld... " >&6; }
5348 fi
5349 if ${lt_cv_path_LD+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   if test -z "$LD"; then
5353   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5354   for ac_dir in $PATH; do
5355     IFS="$lt_save_ifs"
5356     test -z "$ac_dir" && ac_dir=.
5357     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5358       lt_cv_path_LD="$ac_dir/$ac_prog"
5359       # Check to see if the program is GNU ld.  I'd rather use --version,
5360       # but apparently some variants of GNU ld only accept -v.
5361       # Break only if it was the GNU/non-GNU ld that we prefer.
5362       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5363       *GNU* | *'with BFD'*)
5364         test "$with_gnu_ld" != no && break
5365         ;;
5366       *)
5367         test "$with_gnu_ld" != yes && break
5368         ;;
5369       esac
5370     fi
5371   done
5372   IFS="$lt_save_ifs"
5373 else
5374   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5375 fi
5376 fi
5377
5378 LD="$lt_cv_path_LD"
5379 if test -n "$LD"; then
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5381 $as_echo "$LD" >&6; }
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5388 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5389 if ${lt_cv_prog_gnu_ld+:} false; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5393 case `$LD -v 2>&1 </dev/null` in
5394 *GNU* | *'with BFD'*)
5395   lt_cv_prog_gnu_ld=yes
5396   ;;
5397 *)
5398   lt_cv_prog_gnu_ld=no
5399   ;;
5400 esac
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5403 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5404 with_gnu_ld=$lt_cv_prog_gnu_ld
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5415 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5416 if ${lt_cv_path_NM+:} false; then :
5417   $as_echo_n "(cached) " >&6
5418 else
5419   if test -n "$NM"; then
5420   # Let the user override the test.
5421   lt_cv_path_NM="$NM"
5422 else
5423   lt_nm_to_check="${ac_tool_prefix}nm"
5424   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5425     lt_nm_to_check="$lt_nm_to_check nm"
5426   fi
5427   for lt_tmp_nm in $lt_nm_to_check; do
5428     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5429     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5430       IFS="$lt_save_ifs"
5431       test -z "$ac_dir" && ac_dir=.
5432       tmp_nm="$ac_dir/$lt_tmp_nm"
5433       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5434         # Check to see if the nm accepts a BSD-compat flag.
5435         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5436         #   nm: unknown option "B" ignored
5437         # Tru64's nm complains that /dev/null is an invalid object file
5438         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5439         */dev/null* | *'Invalid file or object type'*)
5440           lt_cv_path_NM="$tmp_nm -B"
5441           break
5442           ;;
5443         *)
5444           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5445           */dev/null*)
5446             lt_cv_path_NM="$tmp_nm -p"
5447             break
5448             ;;
5449           *)
5450             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5451             continue # so that we can try to find one that supports BSD flags
5452             ;;
5453           esac
5454           ;;
5455         esac
5456       fi
5457     done
5458     IFS="$lt_save_ifs"
5459   done
5460   : ${lt_cv_path_NM=no}
5461 fi
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5464 $as_echo "$lt_cv_path_NM" >&6; }
5465 if test "$lt_cv_path_NM" != "no"; then
5466   NM="$lt_cv_path_NM"
5467 else
5468   # Didn't find any BSD compatible name lister, look for dumpbin.
5469   if test -n "$DUMPBIN"; then :
5470     # Let the user override the test.
5471   else
5472     if test -n "$ac_tool_prefix"; then
5473   for ac_prog in dumpbin "link -dump"
5474   do
5475     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_DUMPBIN+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   if test -n "$DUMPBIN"; then
5483   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488   IFS=$as_save_IFS
5489   test -z "$as_dir" && as_dir=.
5490     for ac_exec_ext in '' $ac_executable_extensions; do
5491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494     break 2
5495   fi
5496 done
5497   done
5498 IFS=$as_save_IFS
5499
5500 fi
5501 fi
5502 DUMPBIN=$ac_cv_prog_DUMPBIN
5503 if test -n "$DUMPBIN"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5505 $as_echo "$DUMPBIN" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512     test -n "$DUMPBIN" && break
5513   done
5514 fi
5515 if test -z "$DUMPBIN"; then
5516   ac_ct_DUMPBIN=$DUMPBIN
5517   for ac_prog in dumpbin "link -dump"
5518 do
5519   # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   if test -n "$ac_ct_DUMPBIN"; then
5527   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5547 if test -n "$ac_ct_DUMPBIN"; then
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5549 $as_echo "$ac_ct_DUMPBIN" >&6; }
5550 else
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556   test -n "$ac_ct_DUMPBIN" && break
5557 done
5558
5559   if test "x$ac_ct_DUMPBIN" = x; then
5560     DUMPBIN=":"
5561   else
5562     case $cross_compiling:$ac_tool_warned in
5563 yes:)
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566 ac_tool_warned=yes ;;
5567 esac
5568     DUMPBIN=$ac_ct_DUMPBIN
5569   fi
5570 fi
5571
5572     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5573     *COFF*)
5574       DUMPBIN="$DUMPBIN -symbols"
5575       ;;
5576     *)
5577       DUMPBIN=:
5578       ;;
5579     esac
5580   fi
5581
5582   if test "$DUMPBIN" != ":"; then
5583     NM="$DUMPBIN"
5584   fi
5585 fi
5586 test -z "$NM" && NM=nm
5587
5588
5589
5590
5591
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5594 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5595 if ${lt_cv_nm_interface+:} false; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   lt_cv_nm_interface="BSD nm"
5599   echo "int some_variable = 0;" > conftest.$ac_ext
5600   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5601   (eval "$ac_compile" 2>conftest.err)
5602   cat conftest.err >&5
5603   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5604   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5605   cat conftest.err >&5
5606   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5607   cat conftest.out >&5
5608   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5609     lt_cv_nm_interface="MS dumpbin"
5610   fi
5611   rm -f conftest*
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5614 $as_echo "$lt_cv_nm_interface" >&6; }
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5617 $as_echo_n "checking whether ln -s works... " >&6; }
5618 LN_S=$as_ln_s
5619 if test "$LN_S" = "ln -s"; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 $as_echo "yes" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5624 $as_echo "no, using $LN_S" >&6; }
5625 fi
5626
5627 # find the maximum length of command line arguments
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5629 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5630 if ${lt_cv_sys_max_cmd_len+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633     i=0
5634   teststring="ABCD"
5635
5636   case $build_os in
5637   msdosdjgpp*)
5638     # On DJGPP, this test can blow up pretty badly due to problems in libc
5639     # (any single argument exceeding 2000 bytes causes a buffer overrun
5640     # during glob expansion).  Even if it were fixed, the result of this
5641     # check would be larger than it should be.
5642     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5643     ;;
5644
5645   gnu*)
5646     # Under GNU Hurd, this test is not required because there is
5647     # no limit to the length of command line arguments.
5648     # Libtool will interpret -1 as no limit whatsoever
5649     lt_cv_sys_max_cmd_len=-1;
5650     ;;
5651
5652   cygwin* | mingw* | cegcc*)
5653     # On Win9x/ME, this test blows up -- it succeeds, but takes
5654     # about 5 minutes as the teststring grows exponentially.
5655     # Worse, since 9x/ME are not pre-emptively multitasking,
5656     # you end up with a "frozen" computer, even though with patience
5657     # the test eventually succeeds (with a max line length of 256k).
5658     # Instead, let's just punt: use the minimum linelength reported by
5659     # all of the supported platforms: 8192 (on NT/2K/XP).
5660     lt_cv_sys_max_cmd_len=8192;
5661     ;;
5662
5663   mint*)
5664     # On MiNT this can take a long time and run out of memory.
5665     lt_cv_sys_max_cmd_len=8192;
5666     ;;
5667
5668   amigaos*)
5669     # On AmigaOS with pdksh, this test takes hours, literally.
5670     # So we just punt and use a minimum line length of 8192.
5671     lt_cv_sys_max_cmd_len=8192;
5672     ;;
5673
5674   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5675     # This has been around since 386BSD, at least.  Likely further.
5676     if test -x /sbin/sysctl; then
5677       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5678     elif test -x /usr/sbin/sysctl; then
5679       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5680     else
5681       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5682     fi
5683     # And add a safety zone
5684     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5685     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686     ;;
5687
5688   interix*)
5689     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5690     lt_cv_sys_max_cmd_len=196608
5691     ;;
5692
5693   os2*)
5694     # The test takes a long time on OS/2.
5695     lt_cv_sys_max_cmd_len=8192
5696     ;;
5697
5698   osf*)
5699     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5700     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5701     # nice to cause kernel panics so lets avoid the loop below.
5702     # First set a reasonable default.
5703     lt_cv_sys_max_cmd_len=16384
5704     #
5705     if test -x /sbin/sysconfig; then
5706       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5707         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5708       esac
5709     fi
5710     ;;
5711   sco3.2v5*)
5712     lt_cv_sys_max_cmd_len=102400
5713     ;;
5714   sysv5* | sco5v6* | sysv4.2uw2*)
5715     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5716     if test -n "$kargmax"; then
5717       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5718     else
5719       lt_cv_sys_max_cmd_len=32768
5720     fi
5721     ;;
5722   *)
5723     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5724     if test -n "$lt_cv_sys_max_cmd_len"; then
5725       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5726       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5727     else
5728       # Make teststring a little bigger before we do anything with it.
5729       # a 1K string should be a reasonable start.
5730       for i in 1 2 3 4 5 6 7 8 ; do
5731         teststring=$teststring$teststring
5732       done
5733       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5734       # If test is not a shell built-in, we'll probably end up computing a
5735       # maximum length that is only half of the actual maximum length, but
5736       # we can't tell.
5737       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5738                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5739               test $i != 17 # 1/2 MB should be enough
5740       do
5741         i=`expr $i + 1`
5742         teststring=$teststring$teststring
5743       done
5744       # Only check the string length outside the loop.
5745       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5746       teststring=
5747       # Add a significant safety factor because C++ compilers can tack on
5748       # massive amounts of additional arguments before passing them to the
5749       # linker.  It appears as though 1/2 is a usable value.
5750       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5751     fi
5752     ;;
5753   esac
5754
5755 fi
5756
5757 if test -n $lt_cv_sys_max_cmd_len ; then
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5759 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5760 else
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5762 $as_echo "none" >&6; }
5763 fi
5764 max_cmd_len=$lt_cv_sys_max_cmd_len
5765
5766
5767
5768
5769
5770
5771 : ${CP="cp -f"}
5772 : ${MV="mv -f"}
5773 : ${RM="rm -f"}
5774
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5776 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5777 # Try some XSI features
5778 xsi_shell=no
5779 ( _lt_dummy="a/b/c"
5780   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5781       = c,a/b,b/c, \
5782     && eval 'test $(( 1 + 1 )) -eq 2 \
5783     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5784   && xsi_shell=yes
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5786 $as_echo "$xsi_shell" >&6; }
5787
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5790 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5791 lt_shell_append=no
5792 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5793     >/dev/null 2>&1 \
5794   && lt_shell_append=yes
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5796 $as_echo "$lt_shell_append" >&6; }
5797
5798
5799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5800   lt_unset=unset
5801 else
5802   lt_unset=false
5803 fi
5804
5805
5806
5807
5808
5809 # test EBCDIC or ASCII
5810 case `echo X|tr X '\101'` in
5811  A) # ASCII based system
5812     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5813   lt_SP2NL='tr \040 \012'
5814   lt_NL2SP='tr \015\012 \040\040'
5815   ;;
5816  *) # EBCDIC based system
5817   lt_SP2NL='tr \100 \n'
5818   lt_NL2SP='tr \r\n \100\100'
5819   ;;
5820 esac
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5831 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5832 if ${lt_cv_to_host_file_cmd+:} false; then :
5833   $as_echo_n "(cached) " >&6
5834 else
5835   case $host in
5836   *-*-mingw* )
5837     case $build in
5838       *-*-mingw* ) # actually msys
5839         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5840         ;;
5841       *-*-cygwin* )
5842         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5843         ;;
5844       * ) # otherwise, assume *nix
5845         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5846         ;;
5847     esac
5848     ;;
5849   *-*-cygwin* )
5850     case $build in
5851       *-*-mingw* ) # actually msys
5852         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5853         ;;
5854       *-*-cygwin* )
5855         lt_cv_to_host_file_cmd=func_convert_file_noop
5856         ;;
5857       * ) # otherwise, assume *nix
5858         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5859         ;;
5860     esac
5861     ;;
5862   * ) # unhandled hosts (and "normal" native builds)
5863     lt_cv_to_host_file_cmd=func_convert_file_noop
5864     ;;
5865 esac
5866
5867 fi
5868
5869 to_host_file_cmd=$lt_cv_to_host_file_cmd
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5871 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5872
5873
5874
5875
5876
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5878 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5879 if ${lt_cv_to_tool_file_cmd+:} false; then :
5880   $as_echo_n "(cached) " >&6
5881 else
5882   #assume ordinary cross tools, or native build.
5883 lt_cv_to_tool_file_cmd=func_convert_file_noop
5884 case $host in
5885   *-*-mingw* )
5886     case $build in
5887       *-*-mingw* ) # actually msys
5888         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5889         ;;
5890     esac
5891     ;;
5892 esac
5893
5894 fi
5895
5896 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5898 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5899
5900
5901
5902
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5905 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5906 if ${lt_cv_ld_reload_flag+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   lt_cv_ld_reload_flag='-r'
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5912 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5913 reload_flag=$lt_cv_ld_reload_flag
5914 case $reload_flag in
5915 "" | " "*) ;;
5916 *) reload_flag=" $reload_flag" ;;
5917 esac
5918 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5919 case $host_os in
5920   cygwin* | mingw* | pw32* | cegcc*)
5921     if test "$GCC" != yes; then
5922       reload_cmds=false
5923     fi
5924     ;;
5925   darwin*)
5926     if test "$GCC" = yes; then
5927       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5928     else
5929       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5930     fi
5931     ;;
5932 esac
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942 if test -n "$ac_tool_prefix"; then
5943   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_OBJDUMP+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   if test -n "$OBJDUMP"; then
5951   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958     for ac_exec_ext in '' $ac_executable_extensions; do
5959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965   done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 OBJDUMP=$ac_cv_prog_OBJDUMP
5971 if test -n "$OBJDUMP"; then
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5973 $as_echo "$OBJDUMP" >&6; }
5974 else
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978
5979
5980 fi
5981 if test -z "$ac_cv_prog_OBJDUMP"; then
5982   ac_ct_OBJDUMP=$OBJDUMP
5983   # Extract the first word of "objdump", so it can be a program name with args.
5984 set dummy objdump; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   if test -n "$ac_ct_OBJDUMP"; then
5991   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998     for ac_exec_ext in '' $ac_executable_extensions; do
5999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005   done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6011 if test -n "$ac_ct_OBJDUMP"; then
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6013 $as_echo "$ac_ct_OBJDUMP" >&6; }
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018
6019   if test "x$ac_ct_OBJDUMP" = x; then
6020     OBJDUMP="false"
6021   else
6022     case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6027 esac
6028     OBJDUMP=$ac_ct_OBJDUMP
6029   fi
6030 else
6031   OBJDUMP="$ac_cv_prog_OBJDUMP"
6032 fi
6033
6034 test -z "$OBJDUMP" && OBJDUMP=objdump
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6045 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6046 if ${lt_cv_deplibs_check_method+:} false; then :
6047   $as_echo_n "(cached) " >&6
6048 else
6049   lt_cv_file_magic_cmd='$MAGIC_CMD'
6050 lt_cv_file_magic_test_file=
6051 lt_cv_deplibs_check_method='unknown'
6052 # Need to set the preceding variable on all platforms that support
6053 # interlibrary dependencies.
6054 # 'none' -- dependencies not supported.
6055 # `unknown' -- same as none, but documents that we really don't know.
6056 # 'pass_all' -- all dependencies passed with no checks.
6057 # 'test_compile' -- check by making test program.
6058 # 'file_magic [[regex]]' -- check by looking for files in library path
6059 # which responds to the $file_magic_cmd with a given extended regex.
6060 # If you have `file' or equivalent on your system and you're not sure
6061 # whether `pass_all' will *always* work, you probably want this one.
6062
6063 case $host_os in
6064 aix[4-9]*)
6065   lt_cv_deplibs_check_method=pass_all
6066   ;;
6067
6068 beos*)
6069   lt_cv_deplibs_check_method=pass_all
6070   ;;
6071
6072 bsdi[45]*)
6073   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6074   lt_cv_file_magic_cmd='/usr/bin/file -L'
6075   lt_cv_file_magic_test_file=/shlib/libc.so
6076   ;;
6077
6078 cygwin*)
6079   # func_win32_libid is a shell function defined in ltmain.sh
6080   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6081   lt_cv_file_magic_cmd='func_win32_libid'
6082   ;;
6083
6084 mingw* | pw32*)
6085   # Base MSYS/MinGW do not provide the 'file' command needed by
6086   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6087   # unless we find 'file', for example because we are cross-compiling.
6088   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6089   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6090     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6091     lt_cv_file_magic_cmd='func_win32_libid'
6092   else
6093     # Keep this pattern in sync with the one in func_win32_libid.
6094     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6095     lt_cv_file_magic_cmd='$OBJDUMP -f'
6096   fi
6097   ;;
6098
6099 cegcc*)
6100   # use the weaker test based on 'objdump'. See mingw*.
6101   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6102   lt_cv_file_magic_cmd='$OBJDUMP -f'
6103   ;;
6104
6105 darwin* | rhapsody*)
6106   lt_cv_deplibs_check_method=pass_all
6107   ;;
6108
6109 freebsd* | dragonfly*)
6110   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6111     case $host_cpu in
6112     i*86 )
6113       # Not sure whether the presence of OpenBSD here was a mistake.
6114       # Let's accept both of them until this is cleared up.
6115       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6116       lt_cv_file_magic_cmd=/usr/bin/file
6117       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6118       ;;
6119     esac
6120   else
6121     lt_cv_deplibs_check_method=pass_all
6122   fi
6123   ;;
6124
6125 gnu*)
6126   lt_cv_deplibs_check_method=pass_all
6127   ;;
6128
6129 haiku*)
6130   lt_cv_deplibs_check_method=pass_all
6131   ;;
6132
6133 hpux10.20* | hpux11*)
6134   lt_cv_file_magic_cmd=/usr/bin/file
6135   case $host_cpu in
6136   ia64*)
6137     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6138     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6139     ;;
6140   hppa*64*)
6141     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6142     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6143     ;;
6144   *)
6145     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6146     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6147     ;;
6148   esac
6149   ;;
6150
6151 interix[3-9]*)
6152   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6153   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6154   ;;
6155
6156 irix5* | irix6* | nonstopux*)
6157   case $LD in
6158   *-32|*"-32 ") libmagic=32-bit;;
6159   *-n32|*"-n32 ") libmagic=N32;;
6160   *-64|*"-64 ") libmagic=64-bit;;
6161   *) libmagic=never-match;;
6162   esac
6163   lt_cv_deplibs_check_method=pass_all
6164   ;;
6165
6166 # This must be glibc/ELF.
6167 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6168   lt_cv_deplibs_check_method=pass_all
6169   ;;
6170
6171 netbsd* | netbsdelf*-gnu)
6172   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6173     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6174   else
6175     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6176   fi
6177   ;;
6178
6179 newos6*)
6180   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6181   lt_cv_file_magic_cmd=/usr/bin/file
6182   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6183   ;;
6184
6185 *nto* | *qnx*)
6186   lt_cv_deplibs_check_method=pass_all
6187   ;;
6188
6189 openbsd*)
6190   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6191     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6192   else
6193     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6194   fi
6195   ;;
6196
6197 osf3* | osf4* | osf5*)
6198   lt_cv_deplibs_check_method=pass_all
6199   ;;
6200
6201 rdos*)
6202   lt_cv_deplibs_check_method=pass_all
6203   ;;
6204
6205 solaris*)
6206   lt_cv_deplibs_check_method=pass_all
6207   ;;
6208
6209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6210   lt_cv_deplibs_check_method=pass_all
6211   ;;
6212
6213 sysv4 | sysv4.3*)
6214   case $host_vendor in
6215   motorola)
6216     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]'
6217     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6218     ;;
6219   ncr)
6220     lt_cv_deplibs_check_method=pass_all
6221     ;;
6222   sequent)
6223     lt_cv_file_magic_cmd='/bin/file'
6224     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6225     ;;
6226   sni)
6227     lt_cv_file_magic_cmd='/bin/file'
6228     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6229     lt_cv_file_magic_test_file=/lib/libc.so
6230     ;;
6231   siemens)
6232     lt_cv_deplibs_check_method=pass_all
6233     ;;
6234   pc)
6235     lt_cv_deplibs_check_method=pass_all
6236     ;;
6237   esac
6238   ;;
6239
6240 tpf*)
6241   lt_cv_deplibs_check_method=pass_all
6242   ;;
6243 esac
6244
6245 fi
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6247 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6248
6249 file_magic_glob=
6250 want_nocaseglob=no
6251 if test "$build" = "$host"; then
6252   case $host_os in
6253   mingw* | pw32*)
6254     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6255       want_nocaseglob=yes
6256     else
6257       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6258     fi
6259     ;;
6260   esac
6261 fi
6262
6263 file_magic_cmd=$lt_cv_file_magic_cmd
6264 deplibs_check_method=$lt_cv_deplibs_check_method
6265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 if test -n "$ac_tool_prefix"; then
6289   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_DLLTOOL+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   if test -n "$DLLTOOL"; then
6297   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304     for ac_exec_ext in '' $ac_executable_extensions; do
6305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308     break 2
6309   fi
6310 done
6311   done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 DLLTOOL=$ac_cv_prog_DLLTOOL
6317 if test -n "$DLLTOOL"; then
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6319 $as_echo "$DLLTOOL" >&6; }
6320 else
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324
6325
6326 fi
6327 if test -z "$ac_cv_prog_DLLTOOL"; then
6328   ac_ct_DLLTOOL=$DLLTOOL
6329   # Extract the first word of "dlltool", so it can be a program name with args.
6330 set dummy dlltool; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   if test -n "$ac_ct_DLLTOOL"; then
6337   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344     for ac_exec_ext in '' $ac_executable_extensions; do
6345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351   done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6357 if test -n "$ac_ct_DLLTOOL"; then
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6359 $as_echo "$ac_ct_DLLTOOL" >&6; }
6360 else
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365   if test "x$ac_ct_DLLTOOL" = x; then
6366     DLLTOOL="false"
6367   else
6368     case $cross_compiling:$ac_tool_warned in
6369 yes:)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6373 esac
6374     DLLTOOL=$ac_ct_DLLTOOL
6375   fi
6376 else
6377   DLLTOOL="$ac_cv_prog_DLLTOOL"
6378 fi
6379
6380 test -z "$DLLTOOL" && DLLTOOL=dlltool
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6392 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6393 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   lt_cv_sharedlib_from_linklib_cmd='unknown'
6397
6398 case $host_os in
6399 cygwin* | mingw* | pw32* | cegcc*)
6400   # two different shell functions defined in ltmain.sh
6401   # decide which to use based on capabilities of $DLLTOOL
6402   case `$DLLTOOL --help 2>&1` in
6403   *--identify-strict*)
6404     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6405     ;;
6406   *)
6407     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6408     ;;
6409   esac
6410   ;;
6411 *)
6412   # fallback: assume linklib IS sharedlib
6413   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6414   ;;
6415 esac
6416
6417 fi
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6419 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6420 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6421 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6422
6423
6424
6425
6426
6427
6428
6429 if test -n "$ac_tool_prefix"; then
6430   for ac_prog in ar
6431   do
6432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_AR+:} false; then :
6437   $as_echo_n "(cached) " >&6
6438 else
6439   if test -n "$AR"; then
6440   ac_cv_prog_AR="$AR" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447     for ac_exec_ext in '' $ac_executable_extensions; do
6448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454   done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 AR=$ac_cv_prog_AR
6460 if test -n "$AR"; then
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6462 $as_echo "$AR" >&6; }
6463 else
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468
6469     test -n "$AR" && break
6470   done
6471 fi
6472 if test -z "$AR"; then
6473   ac_ct_AR=$AR
6474   for ac_prog in ar
6475 do
6476   # Extract the first word of "$ac_prog", so it can be a program name with args.
6477 set dummy $ac_prog; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   if test -n "$ac_ct_AR"; then
6484   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491     for ac_exec_ext in '' $ac_executable_extensions; do
6492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493     ac_cv_prog_ac_ct_AR="$ac_prog"
6494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498   done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6504 if test -n "$ac_ct_AR"; then
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6506 $as_echo "$ac_ct_AR" >&6; }
6507 else
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512
6513   test -n "$ac_ct_AR" && break
6514 done
6515
6516   if test "x$ac_ct_AR" = x; then
6517     AR="false"
6518   else
6519     case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525     AR=$ac_ct_AR
6526   fi
6527 fi
6528
6529 : ${AR=ar}
6530 : ${AR_FLAGS=cru}
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6543 $as_echo_n "checking for archiver @FILE support... " >&6; }
6544 if ${lt_cv_ar_at_file+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   lt_cv_ar_at_file=no
6548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h.  */
6550
6551 int
6552 main ()
6553 {
6554
6555   ;
6556   return 0;
6557 }
6558 _ACEOF
6559 if ac_fn_c_try_compile "$LINENO"; then :
6560   echo conftest.$ac_objext > conftest.lst
6561       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6562       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6563   (eval $lt_ar_try) 2>&5
6564   ac_status=$?
6565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566   test $ac_status = 0; }
6567       if test "$ac_status" -eq 0; then
6568         # Ensure the archiver fails upon bogus file names.
6569         rm -f conftest.$ac_objext libconftest.a
6570         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6571   (eval $lt_ar_try) 2>&5
6572   ac_status=$?
6573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574   test $ac_status = 0; }
6575         if test "$ac_status" -ne 0; then
6576           lt_cv_ar_at_file=@
6577         fi
6578       fi
6579       rm -f conftest.* libconftest.a
6580
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6586 $as_echo "$lt_cv_ar_at_file" >&6; }
6587
6588 if test "x$lt_cv_ar_at_file" = xno; then
6589   archiver_list_spec=
6590 else
6591   archiver_list_spec=$lt_cv_ar_at_file
6592 fi
6593
6594
6595
6596
6597
6598
6599
6600 if test -n "$ac_tool_prefix"; then
6601   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}strip; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_STRIP+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   if test -n "$STRIP"; then
6609   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616     for ac_exec_ext in '' $ac_executable_extensions; do
6617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623   done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 STRIP=$ac_cv_prog_STRIP
6629 if test -n "$STRIP"; then
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6631 $as_echo "$STRIP" >&6; }
6632 else
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637
6638 fi
6639 if test -z "$ac_cv_prog_STRIP"; then
6640   ac_ct_STRIP=$STRIP
6641   # Extract the first word of "strip", so it can be a program name with args.
6642 set dummy strip; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648   if test -n "$ac_ct_STRIP"; then
6649   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656     for ac_exec_ext in '' $ac_executable_extensions; do
6657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658     ac_cv_prog_ac_ct_STRIP="strip"
6659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663   done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6669 if test -n "$ac_ct_STRIP"; then
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6671 $as_echo "$ac_ct_STRIP" >&6; }
6672 else
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677   if test "x$ac_ct_STRIP" = x; then
6678     STRIP=":"
6679   else
6680     case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686     STRIP=$ac_ct_STRIP
6687   fi
6688 else
6689   STRIP="$ac_cv_prog_STRIP"
6690 fi
6691
6692 test -z "$STRIP" && STRIP=:
6693
6694
6695
6696
6697
6698
6699 if test -n "$ac_tool_prefix"; then
6700   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_RANLIB+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   if test -n "$RANLIB"; then
6708   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715     for ac_exec_ext in '' $ac_executable_extensions; do
6716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722   done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 RANLIB=$ac_cv_prog_RANLIB
6728 if test -n "$RANLIB"; then
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6730 $as_echo "$RANLIB" >&6; }
6731 else
6732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736
6737 fi
6738 if test -z "$ac_cv_prog_RANLIB"; then
6739   ac_ct_RANLIB=$RANLIB
6740   # Extract the first word of "ranlib", so it can be a program name with args.
6741 set dummy ranlib; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747   if test -n "$ac_ct_RANLIB"; then
6748   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755     for ac_exec_ext in '' $ac_executable_extensions; do
6756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757     ac_cv_prog_ac_ct_RANLIB="ranlib"
6758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762   done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768 if test -n "$ac_ct_RANLIB"; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6770 $as_echo "$ac_ct_RANLIB" >&6; }
6771 else
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776   if test "x$ac_ct_RANLIB" = x; then
6777     RANLIB=":"
6778   else
6779     case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785     RANLIB=$ac_ct_RANLIB
6786   fi
6787 else
6788   RANLIB="$ac_cv_prog_RANLIB"
6789 fi
6790
6791 test -z "$RANLIB" && RANLIB=:
6792
6793
6794
6795
6796
6797
6798 # Determine commands to create old-style static archives.
6799 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6800 old_postinstall_cmds='chmod 644 $oldlib'
6801 old_postuninstall_cmds=
6802
6803 if test -n "$RANLIB"; then
6804   case $host_os in
6805   openbsd*)
6806     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6807     ;;
6808   *)
6809     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6810     ;;
6811   esac
6812   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6813 fi
6814
6815 case $host_os in
6816   darwin*)
6817     lock_old_archive_extraction=yes ;;
6818   *)
6819     lock_old_archive_extraction=no ;;
6820 esac
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860 # If no C compiler was specified, use CC.
6861 LTCC=${LTCC-"$CC"}
6862
6863 # If no C compiler flags were specified, use CFLAGS.
6864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6865
6866 # Allow CC to be a program name with arguments.
6867 compiler=$CC
6868
6869
6870 # Check for command to grab the raw symbol name followed by C symbol from nm.
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6872 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6873 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876
6877 # These are sane defaults that work on at least a few old systems.
6878 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6879
6880 # Character class describing NM global symbol codes.
6881 symcode='[BCDEGRST]'
6882
6883 # Regexp to match symbols that can be accessed directly from C.
6884 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6885
6886 # Define system-specific variables.
6887 case $host_os in
6888 aix*)
6889   symcode='[BCDT]'
6890   ;;
6891 cygwin* | mingw* | pw32* | cegcc*)
6892   symcode='[ABCDGISTW]'
6893   ;;
6894 hpux*)
6895   if test "$host_cpu" = ia64; then
6896     symcode='[ABCDEGRST]'
6897   fi
6898   ;;
6899 irix* | nonstopux*)
6900   symcode='[BCDEGRST]'
6901   ;;
6902 osf*)
6903   symcode='[BCDEGQRST]'
6904   ;;
6905 solaris*)
6906   symcode='[BDRT]'
6907   ;;
6908 sco3.2v5*)
6909   symcode='[DT]'
6910   ;;
6911 sysv4.2uw2*)
6912   symcode='[DT]'
6913   ;;
6914 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6915   symcode='[ABDT]'
6916   ;;
6917 sysv4)
6918   symcode='[DFNSTU]'
6919   ;;
6920 esac
6921
6922 # If we're using GNU nm, then use its standard symbol codes.
6923 case `$NM -V 2>&1` in
6924 *GNU* | *'with BFD'*)
6925   symcode='[ABCDGIRSTW]' ;;
6926 esac
6927
6928 # Transform an extracted symbol line into a proper C declaration.
6929 # Some systems (esp. on ia64) link data and code symbols differently,
6930 # so use this general approach.
6931 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6932
6933 # Transform an extracted symbol line into symbol name and symbol address
6934 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6935 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'"
6936
6937 # Handle CRLF in mingw tool chain
6938 opt_cr=
6939 case $build_os in
6940 mingw*)
6941   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6942   ;;
6943 esac
6944
6945 # Try without a prefix underscore, then with it.
6946 for ac_symprfx in "" "_"; do
6947
6948   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6949   symxfrm="\\1 $ac_symprfx\\2 \\2"
6950
6951   # Write the raw and C identifiers.
6952   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6953     # Fake it for dumpbin and say T for any non-static function
6954     # and D for any global variable.
6955     # Also find C++ and __fastcall symbols from MSVC++,
6956     # which start with @ or ?.
6957     lt_cv_sys_global_symbol_pipe="$AWK '"\
6958 "     {last_section=section; section=\$ 3};"\
6959 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6960 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6961 "     \$ 0!~/External *\|/{next};"\
6962 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6963 "     {if(hide[section]) next};"\
6964 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6965 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6966 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6967 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6968 "     ' prfx=^$ac_symprfx"
6969   else
6970     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6971   fi
6972   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6973
6974   # Check to see that the pipe works correctly.
6975   pipe_works=no
6976
6977   rm -f conftest*
6978   cat > conftest.$ac_ext <<_LT_EOF
6979 #ifdef __cplusplus
6980 extern "C" {
6981 #endif
6982 char nm_test_var;
6983 void nm_test_func(void);
6984 void nm_test_func(void){}
6985 #ifdef __cplusplus
6986 }
6987 #endif
6988 int main(){nm_test_var='a';nm_test_func();return(0);}
6989 _LT_EOF
6990
6991   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6992   (eval $ac_compile) 2>&5
6993   ac_status=$?
6994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995   test $ac_status = 0; }; then
6996     # Now try to grab the symbols.
6997     nlist=conftest.nm
6998     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6999   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7000   ac_status=$?
7001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002   test $ac_status = 0; } && test -s "$nlist"; then
7003       # Try sorting and uniquifying the output.
7004       if sort "$nlist" | uniq > "$nlist"T; then
7005         mv -f "$nlist"T "$nlist"
7006       else
7007         rm -f "$nlist"T
7008       fi
7009
7010       # Make sure that we snagged all the symbols we need.
7011       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7012         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7013           cat <<_LT_EOF > conftest.$ac_ext
7014 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7015 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7016 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7017    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7018 # define LT_DLSYM_CONST
7019 #elif defined(__osf__)
7020 /* This system does not cope well with relocations in const data.  */
7021 # define LT_DLSYM_CONST
7022 #else
7023 # define LT_DLSYM_CONST const
7024 #endif
7025
7026 #ifdef __cplusplus
7027 extern "C" {
7028 #endif
7029
7030 _LT_EOF
7031           # Now generate the symbol file.
7032           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7033
7034           cat <<_LT_EOF >> conftest.$ac_ext
7035
7036 /* The mapping between symbol names and symbols.  */
7037 LT_DLSYM_CONST struct {
7038   const char *name;
7039   void       *address;
7040 }
7041 lt__PROGRAM__LTX_preloaded_symbols[] =
7042 {
7043   { "@PROGRAM@", (void *) 0 },
7044 _LT_EOF
7045           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7046           cat <<\_LT_EOF >> conftest.$ac_ext
7047   {0, (void *) 0}
7048 };
7049
7050 /* This works around a problem in FreeBSD linker */
7051 #ifdef FREEBSD_WORKAROUND
7052 static const void *lt_preloaded_setup() {
7053   return lt__PROGRAM__LTX_preloaded_symbols;
7054 }
7055 #endif
7056
7057 #ifdef __cplusplus
7058 }
7059 #endif
7060 _LT_EOF
7061           # Now try linking the two files.
7062           mv conftest.$ac_objext conftstm.$ac_objext
7063           lt_globsym_save_LIBS=$LIBS
7064           lt_globsym_save_CFLAGS=$CFLAGS
7065           LIBS="conftstm.$ac_objext"
7066           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7067           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7068   (eval $ac_link) 2>&5
7069   ac_status=$?
7070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7072             pipe_works=yes
7073           fi
7074           LIBS=$lt_globsym_save_LIBS
7075           CFLAGS=$lt_globsym_save_CFLAGS
7076         else
7077           echo "cannot find nm_test_func in $nlist" >&5
7078         fi
7079       else
7080         echo "cannot find nm_test_var in $nlist" >&5
7081       fi
7082     else
7083       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7084     fi
7085   else
7086     echo "$progname: failed program was:" >&5
7087     cat conftest.$ac_ext >&5
7088   fi
7089   rm -rf conftest* conftst*
7090
7091   # Do not use the global_symbol_pipe unless it works.
7092   if test "$pipe_works" = yes; then
7093     break
7094   else
7095     lt_cv_sys_global_symbol_pipe=
7096   fi
7097 done
7098
7099 fi
7100
7101 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7102   lt_cv_sys_global_symbol_to_cdecl=
7103 fi
7104 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7106 $as_echo "failed" >&6; }
7107 else
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7109 $as_echo "ok" >&6; }
7110 fi
7111
7112 # Response file support.
7113 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7114   nm_file_list_spec='@'
7115 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7116   nm_file_list_spec='@'
7117 fi
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7146 $as_echo_n "checking for sysroot... " >&6; }
7147
7148 # Check whether --with-sysroot was given.
7149 if test "${with_sysroot+set}" = set; then :
7150   withval=$with_sysroot;
7151 else
7152   with_sysroot=no
7153 fi
7154
7155
7156 lt_sysroot=
7157 case ${with_sysroot} in #(
7158  yes)
7159    if test "$GCC" = yes; then
7160      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7161    fi
7162    ;; #(
7163  /*)
7164    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7165    ;; #(
7166  no|'')
7167    ;; #(
7168  *)
7169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7170 $as_echo "${with_sysroot}" >&6; }
7171    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7172    ;;
7173 esac
7174
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7176 $as_echo "${lt_sysroot:-no}" >&6; }
7177
7178
7179
7180
7181
7182 # Check whether --enable-libtool-lock was given.
7183 if test "${enable_libtool_lock+set}" = set; then :
7184   enableval=$enable_libtool_lock;
7185 fi
7186
7187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7188
7189 # Some flags need to be propagated to the compiler or linker for good
7190 # libtool support.
7191 case $host in
7192 ia64-*-hpux*)
7193   # Find out which ABI we are using.
7194   echo 'int i;' > conftest.$ac_ext
7195   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7196   (eval $ac_compile) 2>&5
7197   ac_status=$?
7198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7199   test $ac_status = 0; }; then
7200     case `/usr/bin/file conftest.$ac_objext` in
7201       *ELF-32*)
7202         HPUX_IA64_MODE="32"
7203         ;;
7204       *ELF-64*)
7205         HPUX_IA64_MODE="64"
7206         ;;
7207     esac
7208   fi
7209   rm -rf conftest*
7210   ;;
7211 *-*-irix6*)
7212   # Find out which ABI we are using.
7213   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7214   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7215   (eval $ac_compile) 2>&5
7216   ac_status=$?
7217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7218   test $ac_status = 0; }; then
7219     if test "$lt_cv_prog_gnu_ld" = yes; then
7220       case `/usr/bin/file conftest.$ac_objext` in
7221         *32-bit*)
7222           LD="${LD-ld} -melf32bsmip"
7223           ;;
7224         *N32*)
7225           LD="${LD-ld} -melf32bmipn32"
7226           ;;
7227         *64-bit*)
7228           LD="${LD-ld} -melf64bmip"
7229         ;;
7230       esac
7231     else
7232       case `/usr/bin/file conftest.$ac_objext` in
7233         *32-bit*)
7234           LD="${LD-ld} -32"
7235           ;;
7236         *N32*)
7237           LD="${LD-ld} -n32"
7238           ;;
7239         *64-bit*)
7240           LD="${LD-ld} -64"
7241           ;;
7242       esac
7243     fi
7244   fi
7245   rm -rf conftest*
7246   ;;
7247
7248 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7249 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7250   # Find out which ABI we are using.
7251   echo 'int i;' > conftest.$ac_ext
7252   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253   (eval $ac_compile) 2>&5
7254   ac_status=$?
7255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256   test $ac_status = 0; }; then
7257     case `/usr/bin/file conftest.o` in
7258       *32-bit*)
7259         case $host in
7260           x86_64-*kfreebsd*-gnu)
7261             LD="${LD-ld} -m elf_i386_fbsd"
7262             ;;
7263           x86_64-*linux*)
7264             LD="${LD-ld} -m elf_i386"
7265             ;;
7266           ppc64-*linux*|powerpc64-*linux*)
7267             LD="${LD-ld} -m elf32ppclinux"
7268             ;;
7269           s390x-*linux*)
7270             LD="${LD-ld} -m elf_s390"
7271             ;;
7272           sparc64-*linux*)
7273             LD="${LD-ld} -m elf32_sparc"
7274             ;;
7275         esac
7276         ;;
7277       *64-bit*)
7278         case $host in
7279           x86_64-*kfreebsd*-gnu)
7280             LD="${LD-ld} -m elf_x86_64_fbsd"
7281             ;;
7282           x86_64-*linux*)
7283             LD="${LD-ld} -m elf_x86_64"
7284             ;;
7285           ppc*-*linux*|powerpc*-*linux*)
7286             LD="${LD-ld} -m elf64ppc"
7287             ;;
7288           s390*-*linux*|s390*-*tpf*)
7289             LD="${LD-ld} -m elf64_s390"
7290             ;;
7291           sparc*-*linux*)
7292             LD="${LD-ld} -m elf64_sparc"
7293             ;;
7294         esac
7295         ;;
7296     esac
7297   fi
7298   rm -rf conftest*
7299   ;;
7300
7301 *-*-sco3.2v5*)
7302   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7303   SAVE_CFLAGS="$CFLAGS"
7304   CFLAGS="$CFLAGS -belf"
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7306 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7307 if ${lt_cv_cc_needs_belf+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   ac_ext=c
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315
7316      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h.  */
7318
7319 int
7320 main ()
7321 {
7322
7323   ;
7324   return 0;
7325 }
7326 _ACEOF
7327 if ac_fn_c_try_link "$LINENO"; then :
7328   lt_cv_cc_needs_belf=yes
7329 else
7330   lt_cv_cc_needs_belf=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext \
7333     conftest$ac_exeext conftest.$ac_ext
7334      ac_ext=c
7335 ac_cpp='$CPP $CPPFLAGS'
7336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7342 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7343   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7344     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7345     CFLAGS="$SAVE_CFLAGS"
7346   fi
7347   ;;
7348 *-*solaris*)
7349   # Find out which ABI we are using.
7350   echo 'int i;' > conftest.$ac_ext
7351   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352   (eval $ac_compile) 2>&5
7353   ac_status=$?
7354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355   test $ac_status = 0; }; then
7356     case `/usr/bin/file conftest.o` in
7357     *64-bit*)
7358       case $lt_cv_prog_gnu_ld in
7359       yes*)
7360         case $host in
7361         i?86-*-solaris*)
7362           LD="${LD-ld} -m elf_x86_64"
7363           ;;
7364         sparc*-*-solaris*)
7365           LD="${LD-ld} -m elf64_sparc"
7366           ;;
7367         esac
7368         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7369         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7370           LD="${LD-ld}_sol2"
7371         fi
7372         ;;
7373       *)
7374         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7375           LD="${LD-ld} -64"
7376         fi
7377         ;;
7378       esac
7379       ;;
7380     esac
7381   fi
7382   rm -rf conftest*
7383   ;;
7384 esac
7385
7386 need_locks="$enable_libtool_lock"
7387
7388 if test -n "$ac_tool_prefix"; then
7389   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7390 set dummy ${ac_tool_prefix}mt; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   if test -n "$MANIFEST_TOOL"; then
7397   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404     for ac_exec_ext in '' $ac_executable_extensions; do
7405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411   done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7417 if test -n "$MANIFEST_TOOL"; then
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7419 $as_echo "$MANIFEST_TOOL" >&6; }
7420 else
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425
7426 fi
7427 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7428   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7429   # Extract the first word of "mt", so it can be a program name with args.
7430 set dummy mt; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   if test -n "$ac_ct_MANIFEST_TOOL"; then
7437   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451   done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7457 if test -n "$ac_ct_MANIFEST_TOOL"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7459 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7466     MANIFEST_TOOL=":"
7467   else
7468     case $cross_compiling:$ac_tool_warned in
7469 yes:)
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned=yes ;;
7473 esac
7474     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7475   fi
7476 else
7477   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7478 fi
7479
7480 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7482 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7483 if ${lt_cv_path_mainfest_tool+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   lt_cv_path_mainfest_tool=no
7487   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7488   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7489   cat conftest.err >&5
7490   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7491     lt_cv_path_mainfest_tool=yes
7492   fi
7493   rm -f conftest*
7494 fi
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7496 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7497 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7498   MANIFEST_TOOL=:
7499 fi
7500
7501
7502
7503
7504
7505
7506   case $host_os in
7507     rhapsody* | darwin*)
7508     if test -n "$ac_tool_prefix"; then
7509   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   if test -n "$DSYMUTIL"; then
7517   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524     for ac_exec_ext in '' $ac_executable_extensions; do
7525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531   done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7537 if test -n "$DSYMUTIL"; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7539 $as_echo "$DSYMUTIL" >&6; }
7540 else
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_DSYMUTIL"; then
7548   ac_ct_DSYMUTIL=$DSYMUTIL
7549   # Extract the first word of "dsymutil", so it can be a program name with args.
7550 set dummy dsymutil; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7554   $as_echo_n "(cached) " >&6
7555 else
7556   if test -n "$ac_ct_DSYMUTIL"; then
7557   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564     for ac_exec_ext in '' $ac_executable_extensions; do
7565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571   done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7577 if test -n "$ac_ct_DSYMUTIL"; then
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7579 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7580 else
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585   if test "x$ac_ct_DSYMUTIL" = x; then
7586     DSYMUTIL=":"
7587   else
7588     case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594     DSYMUTIL=$ac_ct_DSYMUTIL
7595   fi
7596 else
7597   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7598 fi
7599
7600     if test -n "$ac_tool_prefix"; then
7601   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_prog_NMEDIT+:} false; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   if test -n "$NMEDIT"; then
7609   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616     for ac_exec_ext in '' $ac_executable_extensions; do
7617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623   done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 NMEDIT=$ac_cv_prog_NMEDIT
7629 if test -n "$NMEDIT"; then
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7631 $as_echo "$NMEDIT" >&6; }
7632 else
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 fi
7639 if test -z "$ac_cv_prog_NMEDIT"; then
7640   ac_ct_NMEDIT=$NMEDIT
7641   # Extract the first word of "nmedit", so it can be a program name with args.
7642 set dummy nmedit; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   if test -n "$ac_ct_NMEDIT"; then
7649   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656     for ac_exec_ext in '' $ac_executable_extensions; do
7657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663   done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7669 if test -n "$ac_ct_NMEDIT"; then
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7671 $as_echo "$ac_ct_NMEDIT" >&6; }
7672 else
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677   if test "x$ac_ct_NMEDIT" = x; then
7678     NMEDIT=":"
7679   else
7680     case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7685 esac
7686     NMEDIT=$ac_ct_NMEDIT
7687   fi
7688 else
7689   NMEDIT="$ac_cv_prog_NMEDIT"
7690 fi
7691
7692     if test -n "$ac_tool_prefix"; then
7693   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7694 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if ${ac_cv_prog_LIPO+:} false; then :
7698   $as_echo_n "(cached) " >&6
7699 else
7700   if test -n "$LIPO"; then
7701   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706   IFS=$as_save_IFS
7707   test -z "$as_dir" && as_dir=.
7708     for ac_exec_ext in '' $ac_executable_extensions; do
7709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712     break 2
7713   fi
7714 done
7715   done
7716 IFS=$as_save_IFS
7717
7718 fi
7719 fi
7720 LIPO=$ac_cv_prog_LIPO
7721 if test -n "$LIPO"; then
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7723 $as_echo "$LIPO" >&6; }
7724 else
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728
7729
7730 fi
7731 if test -z "$ac_cv_prog_LIPO"; then
7732   ac_ct_LIPO=$LIPO
7733   # Extract the first word of "lipo", so it can be a program name with args.
7734 set dummy lipo; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   if test -n "$ac_ct_LIPO"; then
7741   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746   IFS=$as_save_IFS
7747   test -z "$as_dir" && as_dir=.
7748     for ac_exec_ext in '' $ac_executable_extensions; do
7749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750     ac_cv_prog_ac_ct_LIPO="lipo"
7751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752     break 2
7753   fi
7754 done
7755   done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7761 if test -n "$ac_ct_LIPO"; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7763 $as_echo "$ac_ct_LIPO" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769   if test "x$ac_ct_LIPO" = x; then
7770     LIPO=":"
7771   else
7772     case $cross_compiling:$ac_tool_warned in
7773 yes:)
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776 ac_tool_warned=yes ;;
7777 esac
7778     LIPO=$ac_ct_LIPO
7779   fi
7780 else
7781   LIPO="$ac_cv_prog_LIPO"
7782 fi
7783
7784     if test -n "$ac_tool_prefix"; then
7785   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}otool; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if ${ac_cv_prog_OTOOL+:} false; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   if test -n "$OTOOL"; then
7793   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800     for ac_exec_ext in '' $ac_executable_extensions; do
7801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804     break 2
7805   fi
7806 done
7807   done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 OTOOL=$ac_cv_prog_OTOOL
7813 if test -n "$OTOOL"; then
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7815 $as_echo "$OTOOL" >&6; }
7816 else
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822 fi
7823 if test -z "$ac_cv_prog_OTOOL"; then
7824   ac_ct_OTOOL=$OTOOL
7825   # Extract the first word of "otool", so it can be a program name with args.
7826 set dummy otool; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   if test -n "$ac_ct_OTOOL"; then
7833   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838   IFS=$as_save_IFS
7839   test -z "$as_dir" && as_dir=.
7840     for ac_exec_ext in '' $ac_executable_extensions; do
7841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842     ac_cv_prog_ac_ct_OTOOL="otool"
7843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847   done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7853 if test -n "$ac_ct_OTOOL"; then
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7855 $as_echo "$ac_ct_OTOOL" >&6; }
7856 else
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 fi
7860
7861   if test "x$ac_ct_OTOOL" = x; then
7862     OTOOL=":"
7863   else
7864     case $cross_compiling:$ac_tool_warned in
7865 yes:)
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868 ac_tool_warned=yes ;;
7869 esac
7870     OTOOL=$ac_ct_OTOOL
7871   fi
7872 else
7873   OTOOL="$ac_cv_prog_OTOOL"
7874 fi
7875
7876     if test -n "$ac_tool_prefix"; then
7877   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7878 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if ${ac_cv_prog_OTOOL64+:} false; then :
7882   $as_echo_n "(cached) " >&6
7883 else
7884   if test -n "$OTOOL64"; then
7885   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890   IFS=$as_save_IFS
7891   test -z "$as_dir" && as_dir=.
7892     for ac_exec_ext in '' $ac_executable_extensions; do
7893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896     break 2
7897   fi
7898 done
7899   done
7900 IFS=$as_save_IFS
7901
7902 fi
7903 fi
7904 OTOOL64=$ac_cv_prog_OTOOL64
7905 if test -n "$OTOOL64"; then
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7907 $as_echo "$OTOOL64" >&6; }
7908 else
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912
7913
7914 fi
7915 if test -z "$ac_cv_prog_OTOOL64"; then
7916   ac_ct_OTOOL64=$OTOOL64
7917   # Extract the first word of "otool64", so it can be a program name with args.
7918 set dummy otool64; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   if test -n "$ac_ct_OTOOL64"; then
7925   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930   IFS=$as_save_IFS
7931   test -z "$as_dir" && as_dir=.
7932     for ac_exec_ext in '' $ac_executable_extensions; do
7933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934     ac_cv_prog_ac_ct_OTOOL64="otool64"
7935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936     break 2
7937   fi
7938 done
7939   done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7945 if test -n "$ac_ct_OTOOL64"; then
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7947 $as_echo "$ac_ct_OTOOL64" >&6; }
7948 else
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953   if test "x$ac_ct_OTOOL64" = x; then
7954     OTOOL64=":"
7955   else
7956     case $cross_compiling:$ac_tool_warned in
7957 yes:)
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7960 ac_tool_warned=yes ;;
7961 esac
7962     OTOOL64=$ac_ct_OTOOL64
7963   fi
7964 else
7965   OTOOL64="$ac_cv_prog_OTOOL64"
7966 fi
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7995 $as_echo_n "checking for -single_module linker flag... " >&6; }
7996 if ${lt_cv_apple_cc_single_mod+:} false; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   lt_cv_apple_cc_single_mod=no
8000       if test -z "${LT_MULTI_MODULE}"; then
8001         # By default we will add the -single_module flag. You can override
8002         # by either setting the environment variable LT_MULTI_MODULE
8003         # non-empty at configure time, or by adding -multi_module to the
8004         # link flags.
8005         rm -rf libconftest.dylib*
8006         echo "int foo(void){return 1;}" > conftest.c
8007         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8008 -dynamiclib -Wl,-single_module conftest.c" >&5
8009         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8010           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8011         _lt_result=$?
8012         # If there is a non-empty error log, and "single_module"
8013         # appears in it, assume the flag caused a linker warning
8014         if test -s conftest.err && $GREP single_module conftest.err; then
8015           cat conftest.err >&5
8016         # Otherwise, if the output was created with a 0 exit code from
8017         # the compiler, it worked.
8018         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8019           lt_cv_apple_cc_single_mod=yes
8020         else
8021           cat conftest.err >&5
8022         fi
8023         rm -rf libconftest.dylib*
8024         rm -f conftest.*
8025       fi
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8028 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8029
8030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8031 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8032 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   lt_cv_ld_exported_symbols_list=no
8036       save_LDFLAGS=$LDFLAGS
8037       echo "_main" > conftest.sym
8038       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h.  */
8041
8042 int
8043 main ()
8044 {
8045
8046   ;
8047   return 0;
8048 }
8049 _ACEOF
8050 if ac_fn_c_try_link "$LINENO"; then :
8051   lt_cv_ld_exported_symbols_list=yes
8052 else
8053   lt_cv_ld_exported_symbols_list=no
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext \
8056     conftest$ac_exeext conftest.$ac_ext
8057         LDFLAGS="$save_LDFLAGS"
8058
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8061 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8062
8063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8064 $as_echo_n "checking for -force_load linker flag... " >&6; }
8065 if ${lt_cv_ld_force_load+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   lt_cv_ld_force_load=no
8069       cat > conftest.c << _LT_EOF
8070 int forced_loaded() { return 2;}
8071 _LT_EOF
8072       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8073       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8074       echo "$AR cru libconftest.a conftest.o" >&5
8075       $AR cru libconftest.a conftest.o 2>&5
8076       echo "$RANLIB libconftest.a" >&5
8077       $RANLIB libconftest.a 2>&5
8078       cat > conftest.c << _LT_EOF
8079 int main() { return 0;}
8080 _LT_EOF
8081       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8082       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8083       _lt_result=$?
8084       if test -s conftest.err && $GREP force_load conftest.err; then
8085         cat conftest.err >&5
8086       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8087         lt_cv_ld_force_load=yes
8088       else
8089         cat conftest.err >&5
8090       fi
8091         rm -f conftest.err libconftest.a conftest conftest.c
8092         rm -rf conftest.dSYM
8093
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8096 $as_echo "$lt_cv_ld_force_load" >&6; }
8097     case $host_os in
8098     rhapsody* | darwin1.[012])
8099       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8100     darwin1.*)
8101       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8102     darwin*) # darwin 5.x on
8103       # if running on 10.5 or later, the deployment target defaults
8104       # to the OS version, if on x86, and 10.4, the deployment
8105       # target defaults to 10.4. Don't you love it?
8106       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8107         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8108           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8109         10.[012]*)
8110           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8111         10.*)
8112           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8113       esac
8114     ;;
8115   esac
8116     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8117       _lt_dar_single_mod='$single_module'
8118     fi
8119     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8120       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8121     else
8122       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8123     fi
8124     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8125       _lt_dsymutil='~$DSYMUTIL $lib || :'
8126     else
8127       _lt_dsymutil=
8128     fi
8129     ;;
8130   esac
8131
8132 ac_ext=c
8133 ac_cpp='$CPP $CPPFLAGS'
8134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8138 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8139 # On Suns, sometimes $CPP names a directory.
8140 if test -n "$CPP" && test -d "$CPP"; then
8141   CPP=
8142 fi
8143 if test -z "$CPP"; then
8144   if ${ac_cv_prog_CPP+:} false; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147       # Double quotes because CPP needs to be expanded
8148     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8149     do
8150       ac_preproc_ok=false
8151 for ac_c_preproc_warn_flag in '' yes
8152 do
8153   # Use a header file that comes with gcc, so configuring glibc
8154   # with a fresh cross-compiler works.
8155   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8156   # <limits.h> exists even on freestanding compilers.
8157   # On the NeXT, cc -E runs the code through the compiler's parser,
8158   # not just through cpp. "Syntax error" is here to catch this case.
8159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h.  */
8161 #ifdef __STDC__
8162 # include <limits.h>
8163 #else
8164 # include <assert.h>
8165 #endif
8166                      Syntax error
8167 _ACEOF
8168 if ac_fn_c_try_cpp "$LINENO"; then :
8169
8170 else
8171   # Broken: fails on valid input.
8172 continue
8173 fi
8174 rm -f conftest.err conftest.i conftest.$ac_ext
8175
8176   # OK, works on sane cases.  Now check whether nonexistent headers
8177   # can be detected and how.
8178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h.  */
8180 #include <ac_nonexistent.h>
8181 _ACEOF
8182 if ac_fn_c_try_cpp "$LINENO"; then :
8183   # Broken: success on invalid input.
8184 continue
8185 else
8186   # Passes both tests.
8187 ac_preproc_ok=:
8188 break
8189 fi
8190 rm -f conftest.err conftest.i conftest.$ac_ext
8191
8192 done
8193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8194 rm -f conftest.i conftest.err conftest.$ac_ext
8195 if $ac_preproc_ok; then :
8196   break
8197 fi
8198
8199     done
8200     ac_cv_prog_CPP=$CPP
8201
8202 fi
8203   CPP=$ac_cv_prog_CPP
8204 else
8205   ac_cv_prog_CPP=$CPP
8206 fi
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8208 $as_echo "$CPP" >&6; }
8209 ac_preproc_ok=false
8210 for ac_c_preproc_warn_flag in '' yes
8211 do
8212   # Use a header file that comes with gcc, so configuring glibc
8213   # with a fresh cross-compiler works.
8214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8215   # <limits.h> exists even on freestanding compilers.
8216   # On the NeXT, cc -E runs the code through the compiler's parser,
8217   # not just through cpp. "Syntax error" is here to catch this case.
8218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h.  */
8220 #ifdef __STDC__
8221 # include <limits.h>
8222 #else
8223 # include <assert.h>
8224 #endif
8225                      Syntax error
8226 _ACEOF
8227 if ac_fn_c_try_cpp "$LINENO"; then :
8228
8229 else
8230   # Broken: fails on valid input.
8231 continue
8232 fi
8233 rm -f conftest.err conftest.i conftest.$ac_ext
8234
8235   # OK, works on sane cases.  Now check whether nonexistent headers
8236   # can be detected and how.
8237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h.  */
8239 #include <ac_nonexistent.h>
8240 _ACEOF
8241 if ac_fn_c_try_cpp "$LINENO"; then :
8242   # Broken: success on invalid input.
8243 continue
8244 else
8245   # Passes both tests.
8246 ac_preproc_ok=:
8247 break
8248 fi
8249 rm -f conftest.err conftest.i conftest.$ac_ext
8250
8251 done
8252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8253 rm -f conftest.i conftest.err conftest.$ac_ext
8254 if $ac_preproc_ok; then :
8255
8256 else
8257   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8259 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8260 See \`config.log' for more details" "$LINENO" 5; }
8261 fi
8262
8263 ac_ext=c
8264 ac_cpp='$CPP $CPPFLAGS'
8265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8268
8269
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8271 $as_echo_n "checking for ANSI C header files... " >&6; }
8272 if ${ac_cv_header_stdc+:} false; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h.  */
8277 #include <stdlib.h>
8278 #include <stdarg.h>
8279 #include <string.h>
8280 #include <float.h>
8281
8282 int
8283 main ()
8284 {
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 if ac_fn_c_try_compile "$LINENO"; then :
8291   ac_cv_header_stdc=yes
8292 else
8293   ac_cv_header_stdc=no
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296
8297 if test $ac_cv_header_stdc = yes; then
8298   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301 #include <string.h>
8302
8303 _ACEOF
8304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8305   $EGREP "memchr" >/dev/null 2>&1; then :
8306
8307 else
8308   ac_cv_header_stdc=no
8309 fi
8310 rm -f conftest*
8311
8312 fi
8313
8314 if test $ac_cv_header_stdc = yes; then
8315   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h.  */
8318 #include <stdlib.h>
8319
8320 _ACEOF
8321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8322   $EGREP "free" >/dev/null 2>&1; then :
8323
8324 else
8325   ac_cv_header_stdc=no
8326 fi
8327 rm -f conftest*
8328
8329 fi
8330
8331 if test $ac_cv_header_stdc = yes; then
8332   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8333   if test "$cross_compiling" = yes; then :
8334   :
8335 else
8336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h.  */
8338 #include <ctype.h>
8339 #include <stdlib.h>
8340 #if ((' ' & 0x0FF) == 0x020)
8341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8343 #else
8344 # define ISLOWER(c) \
8345                    (('a' <= (c) && (c) <= 'i') \
8346                      || ('j' <= (c) && (c) <= 'r') \
8347                      || ('s' <= (c) && (c) <= 'z'))
8348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8349 #endif
8350
8351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8352 int
8353 main ()
8354 {
8355   int i;
8356   for (i = 0; i < 256; i++)
8357     if (XOR (islower (i), ISLOWER (i))
8358         || toupper (i) != TOUPPER (i))
8359       return 2;
8360   return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_run "$LINENO"; then :
8364
8365 else
8366   ac_cv_header_stdc=no
8367 fi
8368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8369   conftest.$ac_objext conftest.beam conftest.$ac_ext
8370 fi
8371
8372 fi
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8375 $as_echo "$ac_cv_header_stdc" >&6; }
8376 if test $ac_cv_header_stdc = yes; then
8377
8378 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8379
8380 fi
8381
8382 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8383 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8384                   inttypes.h stdint.h unistd.h
8385 do :
8386   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8388 "
8389 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8390   cat >>confdefs.h <<_ACEOF
8391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8392 _ACEOF
8393
8394 fi
8395
8396 done
8397
8398
8399 for ac_header in dlfcn.h
8400 do :
8401   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8402 "
8403 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8404   cat >>confdefs.h <<_ACEOF
8405 #define HAVE_DLFCN_H 1
8406 _ACEOF
8407
8408 fi
8409
8410 done
8411
8412
8413
8414
8415
8416 # Set options
8417
8418
8419
8420         enable_dlopen=no
8421
8422
8423   enable_win32_dll=no
8424
8425
8426             # Check whether --enable-shared was given.
8427 if test "${enable_shared+set}" = set; then :
8428   enableval=$enable_shared; p=${PACKAGE-default}
8429     case $enableval in
8430     yes) enable_shared=yes ;;
8431     no) enable_shared=no ;;
8432     *)
8433       enable_shared=no
8434       # Look at the argument we got.  We use all the common list separators.
8435       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8436       for pkg in $enableval; do
8437         IFS="$lt_save_ifs"
8438         if test "X$pkg" = "X$p"; then
8439           enable_shared=yes
8440         fi
8441       done
8442       IFS="$lt_save_ifs"
8443       ;;
8444     esac
8445 else
8446   enable_shared=yes
8447 fi
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459 # Check whether --with-pic was given.
8460 if test "${with_pic+set}" = set; then :
8461   withval=$with_pic; lt_p=${PACKAGE-default}
8462     case $withval in
8463     yes|no) pic_mode=$withval ;;
8464     *)
8465       pic_mode=default
8466       # Look at the argument we got.  We use all the common list separators.
8467       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8468       for lt_pkg in $withval; do
8469         IFS="$lt_save_ifs"
8470         if test "X$lt_pkg" = "X$lt_p"; then
8471           pic_mode=yes
8472         fi
8473       done
8474       IFS="$lt_save_ifs"
8475       ;;
8476     esac
8477 else
8478   pic_mode=default
8479 fi
8480
8481
8482 test -z "$pic_mode" && pic_mode=default
8483
8484
8485
8486
8487
8488
8489
8490   # Check whether --enable-fast-install was given.
8491 if test "${enable_fast_install+set}" = set; then :
8492   enableval=$enable_fast_install; p=${PACKAGE-default}
8493     case $enableval in
8494     yes) enable_fast_install=yes ;;
8495     no) enable_fast_install=no ;;
8496     *)
8497       enable_fast_install=no
8498       # Look at the argument we got.  We use all the common list separators.
8499       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8500       for pkg in $enableval; do
8501         IFS="$lt_save_ifs"
8502         if test "X$pkg" = "X$p"; then
8503           enable_fast_install=yes
8504         fi
8505       done
8506       IFS="$lt_save_ifs"
8507       ;;
8508     esac
8509 else
8510   enable_fast_install=yes
8511 fi
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523 # This can be used to rebuild libtool when needed
8524 LIBTOOL_DEPS="$ltmain"
8525
8526 # Always use our own libtool.
8527 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 test -z "$LN_S" && LN_S="ln -s"
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573 if test -n "${ZSH_VERSION+set}" ; then
8574    setopt NO_GLOB_SUBST
8575 fi
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8578 $as_echo_n "checking for objdir... " >&6; }
8579 if ${lt_cv_objdir+:} false; then :
8580   $as_echo_n "(cached) " >&6
8581 else
8582   rm -f .libs 2>/dev/null
8583 mkdir .libs 2>/dev/null
8584 if test -d .libs; then
8585   lt_cv_objdir=.libs
8586 else
8587   # MS-DOS does not allow filenames that begin with a dot.
8588   lt_cv_objdir=_libs
8589 fi
8590 rmdir .libs 2>/dev/null
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8593 $as_echo "$lt_cv_objdir" >&6; }
8594 objdir=$lt_cv_objdir
8595
8596
8597
8598
8599
8600 cat >>confdefs.h <<_ACEOF
8601 #define LT_OBJDIR "$lt_cv_objdir/"
8602 _ACEOF
8603
8604
8605
8606
8607 case $host_os in
8608 aix3*)
8609   # AIX sometimes has problems with the GCC collect2 program.  For some
8610   # reason, if we set the COLLECT_NAMES environment variable, the problems
8611   # vanish in a puff of smoke.
8612   if test "X${COLLECT_NAMES+set}" != Xset; then
8613     COLLECT_NAMES=
8614     export COLLECT_NAMES
8615   fi
8616   ;;
8617 esac
8618
8619 # Global variables:
8620 ofile=libtool
8621 can_build_shared=yes
8622
8623 # All known linkers require a `.a' archive for static linking (except MSVC,
8624 # which needs '.lib').
8625 libext=a
8626
8627 with_gnu_ld="$lt_cv_prog_gnu_ld"
8628
8629 old_CC="$CC"
8630 old_CFLAGS="$CFLAGS"
8631
8632 # Set sane defaults for various variables
8633 test -z "$CC" && CC=cc
8634 test -z "$LTCC" && LTCC=$CC
8635 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8636 test -z "$LD" && LD=ld
8637 test -z "$ac_objext" && ac_objext=o
8638
8639 for cc_temp in $compiler""; do
8640   case $cc_temp in
8641     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8642     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8643     \-*) ;;
8644     *) break;;
8645   esac
8646 done
8647 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8648
8649
8650 # Only perform the check for file, if the check method requires it
8651 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8652 case $deplibs_check_method in
8653 file_magic*)
8654   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8656 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8657 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   case $MAGIC_CMD in
8661 [\\/*] |  ?:[\\/]*)
8662   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8663   ;;
8664 *)
8665   lt_save_MAGIC_CMD="$MAGIC_CMD"
8666   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8667   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8668   for ac_dir in $ac_dummy; do
8669     IFS="$lt_save_ifs"
8670     test -z "$ac_dir" && ac_dir=.
8671     if test -f $ac_dir/${ac_tool_prefix}file; then
8672       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8673       if test -n "$file_magic_test_file"; then
8674         case $deplibs_check_method in
8675         "file_magic "*)
8676           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8677           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8678           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8679             $EGREP "$file_magic_regex" > /dev/null; then
8680             :
8681           else
8682             cat <<_LT_EOF 1>&2
8683
8684 *** Warning: the command libtool uses to detect shared libraries,
8685 *** $file_magic_cmd, produces output that libtool cannot recognize.
8686 *** The result is that libtool may fail to recognize shared libraries
8687 *** as such.  This will affect the creation of libtool libraries that
8688 *** depend on shared libraries, but programs linked with such libtool
8689 *** libraries will work regardless of this problem.  Nevertheless, you
8690 *** may want to report the problem to your system manager and/or to
8691 *** bug-libtool@gnu.org
8692
8693 _LT_EOF
8694           fi ;;
8695         esac
8696       fi
8697       break
8698     fi
8699   done
8700   IFS="$lt_save_ifs"
8701   MAGIC_CMD="$lt_save_MAGIC_CMD"
8702   ;;
8703 esac
8704 fi
8705
8706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8707 if test -n "$MAGIC_CMD"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8709 $as_echo "$MAGIC_CMD" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714
8715
8716
8717
8718
8719 if test -z "$lt_cv_path_MAGIC_CMD"; then
8720   if test -n "$ac_tool_prefix"; then
8721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8722 $as_echo_n "checking for file... " >&6; }
8723 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   case $MAGIC_CMD in
8727 [\\/*] |  ?:[\\/]*)
8728   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8729   ;;
8730 *)
8731   lt_save_MAGIC_CMD="$MAGIC_CMD"
8732   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8733   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8734   for ac_dir in $ac_dummy; do
8735     IFS="$lt_save_ifs"
8736     test -z "$ac_dir" && ac_dir=.
8737     if test -f $ac_dir/file; then
8738       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8739       if test -n "$file_magic_test_file"; then
8740         case $deplibs_check_method in
8741         "file_magic "*)
8742           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8743           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8744           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8745             $EGREP "$file_magic_regex" > /dev/null; then
8746             :
8747           else
8748             cat <<_LT_EOF 1>&2
8749
8750 *** Warning: the command libtool uses to detect shared libraries,
8751 *** $file_magic_cmd, produces output that libtool cannot recognize.
8752 *** The result is that libtool may fail to recognize shared libraries
8753 *** as such.  This will affect the creation of libtool libraries that
8754 *** depend on shared libraries, but programs linked with such libtool
8755 *** libraries will work regardless of this problem.  Nevertheless, you
8756 *** may want to report the problem to your system manager and/or to
8757 *** bug-libtool@gnu.org
8758
8759 _LT_EOF
8760           fi ;;
8761         esac
8762       fi
8763       break
8764     fi
8765   done
8766   IFS="$lt_save_ifs"
8767   MAGIC_CMD="$lt_save_MAGIC_CMD"
8768   ;;
8769 esac
8770 fi
8771
8772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8773 if test -n "$MAGIC_CMD"; then
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8775 $as_echo "$MAGIC_CMD" >&6; }
8776 else
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8779 fi
8780
8781
8782   else
8783     MAGIC_CMD=:
8784   fi
8785 fi
8786
8787   fi
8788   ;;
8789 esac
8790
8791 # Use C for the default configuration in the libtool script
8792
8793 lt_save_CC="$CC"
8794 ac_ext=c
8795 ac_cpp='$CPP $CPPFLAGS'
8796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8799
8800
8801 # Source file extension for C test sources.
8802 ac_ext=c
8803
8804 # Object file extension for compiled C test sources.
8805 objext=o
8806 objext=$objext
8807
8808 # Code to be used in simple compile tests
8809 lt_simple_compile_test_code="int some_variable = 0;"
8810
8811 # Code to be used in simple link tests
8812 lt_simple_link_test_code='int main(){return(0);}'
8813
8814
8815
8816
8817
8818
8819
8820 # If no C compiler was specified, use CC.
8821 LTCC=${LTCC-"$CC"}
8822
8823 # If no C compiler flags were specified, use CFLAGS.
8824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8825
8826 # Allow CC to be a program name with arguments.
8827 compiler=$CC
8828
8829 # Save the default compiler, since it gets overwritten when the other
8830 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8831 compiler_DEFAULT=$CC
8832
8833 # save warnings/boilerplate of simple test code
8834 ac_outfile=conftest.$ac_objext
8835 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8836 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8837 _lt_compiler_boilerplate=`cat conftest.err`
8838 $RM conftest*
8839
8840 ac_outfile=conftest.$ac_objext
8841 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8842 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8843 _lt_linker_boilerplate=`cat conftest.err`
8844 $RM -r conftest*
8845
8846
8847 if test -n "$compiler"; then
8848
8849 lt_prog_compiler_no_builtin_flag=
8850
8851 if test "$GCC" = yes; then
8852   case $cc_basename in
8853   nvcc*)
8854     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8855   *)
8856     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8857   esac
8858
8859   { $as_echo "$as_me:${as_lineno-$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 ${lt_cv_prog_compiler_rtti_exceptions+:} false; 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:$LINENO: $lt_compile\"" >&5)
8878    (eval "$lt_compile" 2>conftest.err)
8879    ac_status=$?
8880    cat conftest.err >&5
8881    echo "$as_me:$LINENO: \$? = $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 "$_lt_compiler_boilerplate" | $SED '/^$/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:${as_lineno-$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
8915   if test "$GCC" = yes; then
8916     lt_prog_compiler_wl='-Wl,'
8917     lt_prog_compiler_static='-static'
8918
8919     case $host_os in
8920       aix*)
8921       # All AIX code is PIC.
8922       if test "$host_cpu" = ia64; then
8923         # AIX 5 now supports IA64 processor
8924         lt_prog_compiler_static='-Bstatic'
8925       fi
8926       ;;
8927
8928     amigaos*)
8929       case $host_cpu in
8930       powerpc)
8931             # see comment about AmigaOS4 .so support
8932             lt_prog_compiler_pic='-fPIC'
8933         ;;
8934       m68k)
8935             # FIXME: we need at least 68020 code to build shared libraries, but
8936             # adding the `-m68020' flag to GCC prevents building anything better,
8937             # like `-m68040'.
8938             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8939         ;;
8940       esac
8941       ;;
8942
8943     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8944       # PIC is the default for these OSes.
8945       ;;
8946
8947     mingw* | cygwin* | pw32* | os2* | cegcc*)
8948       # This hack is so that the source file can tell whether it is being
8949       # built for inclusion in a dll (and should export symbols for example).
8950       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8951       # (--disable-auto-import) libraries
8952       lt_prog_compiler_pic='-DDLL_EXPORT'
8953       ;;
8954
8955     darwin* | rhapsody*)
8956       # PIC is the default on this platform
8957       # Common symbols not allowed in MH_DYLIB files
8958       lt_prog_compiler_pic='-fno-common'
8959       ;;
8960
8961     haiku*)
8962       # PIC is the default for Haiku.
8963       # The "-static" flag exists, but is broken.
8964       lt_prog_compiler_static=
8965       ;;
8966
8967     hpux*)
8968       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8969       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8970       # sets the default TLS model and affects inlining.
8971       case $host_cpu in
8972       hppa*64*)
8973         # +Z the default
8974         ;;
8975       *)
8976         lt_prog_compiler_pic='-fPIC'
8977         ;;
8978       esac
8979       ;;
8980
8981     interix[3-9]*)
8982       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8983       # Instead, we relocate shared libraries at runtime.
8984       ;;
8985
8986     msdosdjgpp*)
8987       # Just because we use GCC doesn't mean we suddenly get shared libraries
8988       # on systems that don't support them.
8989       lt_prog_compiler_can_build_shared=no
8990       enable_shared=no
8991       ;;
8992
8993     *nto* | *qnx*)
8994       # QNX uses GNU C++, but need to define -shared option too, otherwise
8995       # it will coredump.
8996       lt_prog_compiler_pic='-fPIC -shared'
8997       ;;
8998
8999     sysv4*MP*)
9000       if test -d /usr/nec; then
9001         lt_prog_compiler_pic=-Kconform_pic
9002       fi
9003       ;;
9004
9005     *)
9006       lt_prog_compiler_pic='-fPIC'
9007       ;;
9008     esac
9009
9010     case $cc_basename in
9011     nvcc*) # Cuda Compiler Driver 2.2
9012       lt_prog_compiler_wl='-Xlinker '
9013       if test -n "$lt_prog_compiler_pic"; then
9014         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9015       fi
9016       ;;
9017     esac
9018   else
9019     # PORTME Check for flag to pass linker flags through the system compiler.
9020     case $host_os in
9021     aix*)
9022       lt_prog_compiler_wl='-Wl,'
9023       if test "$host_cpu" = ia64; then
9024         # AIX 5 now supports IA64 processor
9025         lt_prog_compiler_static='-Bstatic'
9026       else
9027         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9028       fi
9029       ;;
9030
9031     mingw* | cygwin* | pw32* | os2* | cegcc*)
9032       # This hack is so that the source file can tell whether it is being
9033       # built for inclusion in a dll (and should export symbols for example).
9034       lt_prog_compiler_pic='-DDLL_EXPORT'
9035       ;;
9036
9037     hpux9* | hpux10* | hpux11*)
9038       lt_prog_compiler_wl='-Wl,'
9039       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9040       # not for PA HP-UX.
9041       case $host_cpu in
9042       hppa*64*|ia64*)
9043         # +Z the default
9044         ;;
9045       *)
9046         lt_prog_compiler_pic='+Z'
9047         ;;
9048       esac
9049       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9050       lt_prog_compiler_static='${wl}-a ${wl}archive'
9051       ;;
9052
9053     irix5* | irix6* | nonstopux*)
9054       lt_prog_compiler_wl='-Wl,'
9055       # PIC (with -KPIC) is the default.
9056       lt_prog_compiler_static='-non_shared'
9057       ;;
9058
9059     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9060       case $cc_basename in
9061       # old Intel for x86_64 which still supported -KPIC.
9062       ecc*)
9063         lt_prog_compiler_wl='-Wl,'
9064         lt_prog_compiler_pic='-KPIC'
9065         lt_prog_compiler_static='-static'
9066         ;;
9067       # icc used to be incompatible with GCC.
9068       # ICC 10 doesn't accept -KPIC any more.
9069       icc* | ifort*)
9070         lt_prog_compiler_wl='-Wl,'
9071         lt_prog_compiler_pic='-fPIC'
9072         lt_prog_compiler_static='-static'
9073         ;;
9074       # Lahey Fortran 8.1.
9075       lf95*)
9076         lt_prog_compiler_wl='-Wl,'
9077         lt_prog_compiler_pic='--shared'
9078         lt_prog_compiler_static='--static'
9079         ;;
9080       nagfor*)
9081         # NAG Fortran compiler
9082         lt_prog_compiler_wl='-Wl,-Wl,,'
9083         lt_prog_compiler_pic='-PIC'
9084         lt_prog_compiler_static='-Bstatic'
9085         ;;
9086       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9087         # Portland Group compilers (*not* the Pentium gcc compiler,
9088         # which looks to be a dead project)
9089         lt_prog_compiler_wl='-Wl,'
9090         lt_prog_compiler_pic='-fpic'
9091         lt_prog_compiler_static='-Bstatic'
9092         ;;
9093       ccc*)
9094         lt_prog_compiler_wl='-Wl,'
9095         # All Alpha code is PIC.
9096         lt_prog_compiler_static='-non_shared'
9097         ;;
9098       xl* | bgxl* | bgf* | mpixl*)
9099         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9100         lt_prog_compiler_wl='-Wl,'
9101         lt_prog_compiler_pic='-qpic'
9102         lt_prog_compiler_static='-qstaticlink'
9103         ;;
9104       *)
9105         case `$CC -V 2>&1 | sed 5q` in
9106         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9107           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9108           lt_prog_compiler_pic='-KPIC'
9109           lt_prog_compiler_static='-Bstatic'
9110           lt_prog_compiler_wl=''
9111           ;;
9112         *Sun\ F* | *Sun*Fortran*)
9113           lt_prog_compiler_pic='-KPIC'
9114           lt_prog_compiler_static='-Bstatic'
9115           lt_prog_compiler_wl='-Qoption ld '
9116           ;;
9117         *Sun\ C*)
9118           # Sun C 5.9
9119           lt_prog_compiler_pic='-KPIC'
9120           lt_prog_compiler_static='-Bstatic'
9121           lt_prog_compiler_wl='-Wl,'
9122           ;;
9123         *Intel*\ [CF]*Compiler*)
9124           lt_prog_compiler_wl='-Wl,'
9125           lt_prog_compiler_pic='-fPIC'
9126           lt_prog_compiler_static='-static'
9127           ;;
9128         *Portland\ Group*)
9129           lt_prog_compiler_wl='-Wl,'
9130           lt_prog_compiler_pic='-fpic'
9131           lt_prog_compiler_static='-Bstatic'
9132           ;;
9133         esac
9134         ;;
9135       esac
9136       ;;
9137
9138     newsos6)
9139       lt_prog_compiler_pic='-KPIC'
9140       lt_prog_compiler_static='-Bstatic'
9141       ;;
9142
9143     *nto* | *qnx*)
9144       # QNX uses GNU C++, but need to define -shared option too, otherwise
9145       # it will coredump.
9146       lt_prog_compiler_pic='-fPIC -shared'
9147       ;;
9148
9149     osf3* | osf4* | osf5*)
9150       lt_prog_compiler_wl='-Wl,'
9151       # All OSF/1 code is PIC.
9152       lt_prog_compiler_static='-non_shared'
9153       ;;
9154
9155     rdos*)
9156       lt_prog_compiler_static='-non_shared'
9157       ;;
9158
9159     solaris*)
9160       lt_prog_compiler_pic='-KPIC'
9161       lt_prog_compiler_static='-Bstatic'
9162       case $cc_basename in
9163       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9164         lt_prog_compiler_wl='-Qoption ld ';;
9165       *)
9166         lt_prog_compiler_wl='-Wl,';;
9167       esac
9168       ;;
9169
9170     sunos4*)
9171       lt_prog_compiler_wl='-Qoption ld '
9172       lt_prog_compiler_pic='-PIC'
9173       lt_prog_compiler_static='-Bstatic'
9174       ;;
9175
9176     sysv4 | sysv4.2uw2* | sysv4.3*)
9177       lt_prog_compiler_wl='-Wl,'
9178       lt_prog_compiler_pic='-KPIC'
9179       lt_prog_compiler_static='-Bstatic'
9180       ;;
9181
9182     sysv4*MP*)
9183       if test -d /usr/nec ;then
9184         lt_prog_compiler_pic='-Kconform_pic'
9185         lt_prog_compiler_static='-Bstatic'
9186       fi
9187       ;;
9188
9189     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9190       lt_prog_compiler_wl='-Wl,'
9191       lt_prog_compiler_pic='-KPIC'
9192       lt_prog_compiler_static='-Bstatic'
9193       ;;
9194
9195     unicos*)
9196       lt_prog_compiler_wl='-Wl,'
9197       lt_prog_compiler_can_build_shared=no
9198       ;;
9199
9200     uts4*)
9201       lt_prog_compiler_pic='-pic'
9202       lt_prog_compiler_static='-Bstatic'
9203       ;;
9204
9205     *)
9206       lt_prog_compiler_can_build_shared=no
9207       ;;
9208     esac
9209   fi
9210
9211 case $host_os in
9212   # For platforms which do not support PIC, -DPIC is meaningless:
9213   *djgpp*)
9214     lt_prog_compiler_pic=
9215     ;;
9216   *)
9217     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9218     ;;
9219 esac
9220
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9222 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9223 if ${lt_cv_prog_compiler_pic+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9229 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9230 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9231
9232 #
9233 # Check to make sure the PIC flag actually works.
9234 #
9235 if test -n "$lt_prog_compiler_pic"; then
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9238 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   lt_cv_prog_compiler_pic_works=no
9242    ac_outfile=conftest.$ac_objext
9243    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9244    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9245    # Insert the option either (1) after the last *FLAGS variable, or
9246    # (2) before a word containing "conftest.", or (3) at the end.
9247    # Note that $ac_compile itself does not contain backslashes and begins
9248    # with a dollar sign (not a hyphen), so the echo should work correctly.
9249    # The option is referenced via a variable to avoid confusing sed.
9250    lt_compile=`echo "$ac_compile" | $SED \
9251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9253    -e 's:$: $lt_compiler_flag:'`
9254    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9255    (eval "$lt_compile" 2>conftest.err)
9256    ac_status=$?
9257    cat conftest.err >&5
9258    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259    if (exit $ac_status) && test -s "$ac_outfile"; then
9260      # The compiler can only warn and ignore the option if not recognized
9261      # So say no if there are warnings other than the usual output.
9262      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9263      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9264      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9265        lt_cv_prog_compiler_pic_works=yes
9266      fi
9267    fi
9268    $RM conftest*
9269
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9272 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9273
9274 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9275     case $lt_prog_compiler_pic in
9276      "" | " "*) ;;
9277      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9278      esac
9279 else
9280     lt_prog_compiler_pic=
9281      lt_prog_compiler_can_build_shared=no
9282 fi
9283
9284 fi
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296 #
9297 # Check to make sure the static flag actually works.
9298 #
9299 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9301 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9302 if ${lt_cv_prog_compiler_static_works+:} false; then :
9303   $as_echo_n "(cached) " >&6
9304 else
9305   lt_cv_prog_compiler_static_works=no
9306    save_LDFLAGS="$LDFLAGS"
9307    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9308    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9309    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9310      # The linker can only warn and ignore the option if not recognized
9311      # So say no if there are warnings
9312      if test -s conftest.err; then
9313        # Append any errors to the config.log.
9314        cat conftest.err 1>&5
9315        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9316        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317        if diff conftest.exp conftest.er2 >/dev/null; then
9318          lt_cv_prog_compiler_static_works=yes
9319        fi
9320      else
9321        lt_cv_prog_compiler_static_works=yes
9322      fi
9323    fi
9324    $RM -r conftest*
9325    LDFLAGS="$save_LDFLAGS"
9326
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9329 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9330
9331 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9332     :
9333 else
9334     lt_prog_compiler_static=
9335 fi
9336
9337
9338
9339
9340
9341
9342
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9345 if ${lt_cv_prog_compiler_c_o+:} false; then :
9346   $as_echo_n "(cached) " >&6
9347 else
9348   lt_cv_prog_compiler_c_o=no
9349    $RM -r conftest 2>/dev/null
9350    mkdir conftest
9351    cd conftest
9352    mkdir out
9353    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9354
9355    lt_compiler_flag="-o out/conftest2.$ac_objext"
9356    # Insert the option either (1) after the last *FLAGS variable, or
9357    # (2) before a word containing "conftest.", or (3) at the end.
9358    # Note that $ac_compile itself does not contain backslashes and begins
9359    # with a dollar sign (not a hyphen), so the echo should work correctly.
9360    lt_compile=`echo "$ac_compile" | $SED \
9361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9363    -e 's:$: $lt_compiler_flag:'`
9364    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9365    (eval "$lt_compile" 2>out/conftest.err)
9366    ac_status=$?
9367    cat out/conftest.err >&5
9368    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9370    then
9371      # The compiler can only warn and ignore the option if not recognized
9372      # So say no if there are warnings
9373      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9374      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9375      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9376        lt_cv_prog_compiler_c_o=yes
9377      fi
9378    fi
9379    chmod u+w . 2>&5
9380    $RM conftest*
9381    # SGI C++ compiler will create directory out/ii_files/ for
9382    # template instantiation
9383    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9384    $RM out/* && rmdir out
9385    cd ..
9386    $RM -r conftest
9387    $RM conftest*
9388
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9391 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9392
9393
9394
9395
9396
9397
9398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9399 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9400 if ${lt_cv_prog_compiler_c_o+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   lt_cv_prog_compiler_c_o=no
9404    $RM -r conftest 2>/dev/null
9405    mkdir conftest
9406    cd conftest
9407    mkdir out
9408    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9409
9410    lt_compiler_flag="-o out/conftest2.$ac_objext"
9411    # Insert the option either (1) after the last *FLAGS variable, or
9412    # (2) before a word containing "conftest.", or (3) at the end.
9413    # Note that $ac_compile itself does not contain backslashes and begins
9414    # with a dollar sign (not a hyphen), so the echo should work correctly.
9415    lt_compile=`echo "$ac_compile" | $SED \
9416    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9417    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9418    -e 's:$: $lt_compiler_flag:'`
9419    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9420    (eval "$lt_compile" 2>out/conftest.err)
9421    ac_status=$?
9422    cat out/conftest.err >&5
9423    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9425    then
9426      # The compiler can only warn and ignore the option if not recognized
9427      # So say no if there are warnings
9428      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9429      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9430      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9431        lt_cv_prog_compiler_c_o=yes
9432      fi
9433    fi
9434    chmod u+w . 2>&5
9435    $RM conftest*
9436    # SGI C++ compiler will create directory out/ii_files/ for
9437    # template instantiation
9438    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9439    $RM out/* && rmdir out
9440    cd ..
9441    $RM -r conftest
9442    $RM conftest*
9443
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9446 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9447
9448
9449
9450
9451 hard_links="nottested"
9452 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9453   # do not overwrite the value of need_locks provided by the user
9454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9455 $as_echo_n "checking if we can lock with hard links... " >&6; }
9456   hard_links=yes
9457   $RM conftest*
9458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9459   touch conftest.a
9460   ln conftest.a conftest.b 2>&5 || hard_links=no
9461   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9463 $as_echo "$hard_links" >&6; }
9464   if test "$hard_links" = no; then
9465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9466 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9467     need_locks=warn
9468   fi
9469 else
9470   need_locks=no
9471 fi
9472
9473
9474
9475
9476
9477
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9480
9481   runpath_var=
9482   allow_undefined_flag=
9483   always_export_symbols=no
9484   archive_cmds=
9485   archive_expsym_cmds=
9486   compiler_needs_object=no
9487   enable_shared_with_static_runtimes=no
9488   export_dynamic_flag_spec=
9489   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9490   hardcode_automatic=no
9491   hardcode_direct=no
9492   hardcode_direct_absolute=no
9493   hardcode_libdir_flag_spec=
9494   hardcode_libdir_separator=
9495   hardcode_minus_L=no
9496   hardcode_shlibpath_var=unsupported
9497   inherit_rpath=no
9498   link_all_deplibs=unknown
9499   module_cmds=
9500   module_expsym_cmds=
9501   old_archive_from_new_cmds=
9502   old_archive_from_expsyms_cmds=
9503   thread_safe_flag_spec=
9504   whole_archive_flag_spec=
9505   # include_expsyms should be a list of space-separated symbols to be *always*
9506   # included in the symbol list
9507   include_expsyms=
9508   # exclude_expsyms can be an extended regexp of symbols to exclude
9509   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9510   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9511   # as well as any symbol that contains `d'.
9512   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9513   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9514   # platforms (ab)use it in PIC code, but their linkers get confused if
9515   # the symbol is explicitly referenced.  Since portable code cannot
9516   # rely on this symbol name, it's probably fine to never include it in
9517   # preloaded symbol tables.
9518   # Exclude shared library initialization/finalization symbols.
9519   extract_expsyms_cmds=
9520
9521   case $host_os in
9522   cygwin* | mingw* | pw32* | cegcc*)
9523     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9524     # When not using gcc, we currently assume that we are using
9525     # Microsoft Visual C++.
9526     if test "$GCC" != yes; then
9527       with_gnu_ld=no
9528     fi
9529     ;;
9530   interix*)
9531     # we just hope/assume this is gcc and not c89 (= MSVC++)
9532     with_gnu_ld=yes
9533     ;;
9534   openbsd*)
9535     with_gnu_ld=no
9536     ;;
9537   linux* | k*bsd*-gnu | gnu*)
9538     link_all_deplibs=no
9539     ;;
9540   esac
9541
9542   ld_shlibs=yes
9543
9544   # On some targets, GNU ld is compatible enough with the native linker
9545   # that we're better off using the native interface for both.
9546   lt_use_gnu_ld_interface=no
9547   if test "$with_gnu_ld" = yes; then
9548     case $host_os in
9549       aix*)
9550         # The AIX port of GNU ld has always aspired to compatibility
9551         # with the native linker.  However, as the warning in the GNU ld
9552         # block says, versions before 2.19.5* couldn't really create working
9553         # shared libraries, regardless of the interface used.
9554         case `$LD -v 2>&1` in
9555           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9556           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9557           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9558           *)
9559             lt_use_gnu_ld_interface=yes
9560             ;;
9561         esac
9562         ;;
9563       *)
9564         lt_use_gnu_ld_interface=yes
9565         ;;
9566     esac
9567   fi
9568
9569   if test "$lt_use_gnu_ld_interface" = yes; then
9570     # If archive_cmds runs LD, not CC, wlarc should be empty
9571     wlarc='${wl}'
9572
9573     # Set some defaults for GNU ld with shared library support. These
9574     # are reset later if shared libraries are not supported. Putting them
9575     # here allows them to be overridden if necessary.
9576     runpath_var=LD_RUN_PATH
9577     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578     export_dynamic_flag_spec='${wl}--export-dynamic'
9579     # ancient GNU ld didn't support --whole-archive et. al.
9580     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9581       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9582     else
9583       whole_archive_flag_spec=
9584     fi
9585     supports_anon_versioning=no
9586     case `$LD -v 2>&1` in
9587       *GNU\ gold*) supports_anon_versioning=yes ;;
9588       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9589       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9590       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9591       *\ 2.11.*) ;; # other 2.11 versions
9592       *) supports_anon_versioning=yes ;;
9593     esac
9594
9595     # See if GNU ld supports shared libraries.
9596     case $host_os in
9597     aix[3-9]*)
9598       # On AIX/PPC, the GNU linker is very broken
9599       if test "$host_cpu" != ia64; then
9600         ld_shlibs=no
9601         cat <<_LT_EOF 1>&2
9602
9603 *** Warning: the GNU linker, at least up to release 2.19, is reported
9604 *** to be unable to reliably create shared libraries on AIX.
9605 *** Therefore, libtool is disabling shared libraries support.  If you
9606 *** really care for shared libraries, you may want to install binutils
9607 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9608 *** You will then need to restart the configuration process.
9609
9610 _LT_EOF
9611       fi
9612       ;;
9613
9614     amigaos*)
9615       case $host_cpu in
9616       powerpc)
9617             # see comment about AmigaOS4 .so support
9618             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9619             archive_expsym_cmds=''
9620         ;;
9621       m68k)
9622             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)'
9623             hardcode_libdir_flag_spec='-L$libdir'
9624             hardcode_minus_L=yes
9625         ;;
9626       esac
9627       ;;
9628
9629     beos*)
9630       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9631         allow_undefined_flag=unsupported
9632         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9633         # support --undefined.  This deserves some investigation.  FIXME
9634         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635       else
9636         ld_shlibs=no
9637       fi
9638       ;;
9639
9640     cygwin* | mingw* | pw32* | cegcc*)
9641       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9642       # as there is no search path for DLLs.
9643       hardcode_libdir_flag_spec='-L$libdir'
9644       export_dynamic_flag_spec='${wl}--export-all-symbols'
9645       allow_undefined_flag=unsupported
9646       always_export_symbols=no
9647       enable_shared_with_static_runtimes=yes
9648       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9649       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9650
9651       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9652         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9653         # If the export-symbols file already is a .def file (1st line
9654         # is EXPORTS), use it as is; otherwise, prepend...
9655         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9656           cp $export_symbols $output_objdir/$soname.def;
9657         else
9658           echo EXPORTS > $output_objdir/$soname.def;
9659           cat $export_symbols >> $output_objdir/$soname.def;
9660         fi~
9661         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9662       else
9663         ld_shlibs=no
9664       fi
9665       ;;
9666
9667     haiku*)
9668       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669       link_all_deplibs=yes
9670       ;;
9671
9672     interix[3-9]*)
9673       hardcode_direct=no
9674       hardcode_shlibpath_var=no
9675       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9676       export_dynamic_flag_spec='${wl}-E'
9677       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9678       # Instead, shared libraries are loaded at an image base (0x10000000 by
9679       # default) and relocated if they conflict, which is a slow very memory
9680       # consuming and fragmenting process.  To avoid this, we pick a random,
9681       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9682       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9683       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9684       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'
9685       ;;
9686
9687     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9688       tmp_diet=no
9689       if test "$host_os" = linux-dietlibc; then
9690         case $cc_basename in
9691           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9692         esac
9693       fi
9694       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9695          && test "$tmp_diet" = no
9696       then
9697         tmp_addflag=' $pic_flag'
9698         tmp_sharedflag='-shared'
9699         case $cc_basename,$host_cpu in
9700         pgcc*)                          # Portland Group C compiler
9701           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9702           tmp_addflag=' $pic_flag'
9703           ;;
9704         pgf77* | pgf90* | pgf95* | pgfortran*)
9705                                         # Portland Group f77 and f90 compilers
9706           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9707           tmp_addflag=' $pic_flag -Mnomain' ;;
9708         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9709           tmp_addflag=' -i_dynamic' ;;
9710         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9711           tmp_addflag=' -i_dynamic -nofor_main' ;;
9712         ifc* | ifort*)                  # Intel Fortran compiler
9713           tmp_addflag=' -nofor_main' ;;
9714         lf95*)                          # Lahey Fortran 8.1
9715           whole_archive_flag_spec=
9716           tmp_sharedflag='--shared' ;;
9717         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9718           tmp_sharedflag='-qmkshrobj'
9719           tmp_addflag= ;;
9720         nvcc*)  # Cuda Compiler Driver 2.2
9721           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9722           compiler_needs_object=yes
9723           ;;
9724         esac
9725         case `$CC -V 2>&1 | sed 5q` in
9726         *Sun\ C*)                       # Sun C 5.9
9727           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9728           compiler_needs_object=yes
9729           tmp_sharedflag='-G' ;;
9730         *Sun\ F*)                       # Sun Fortran 8.3
9731           tmp_sharedflag='-G' ;;
9732         esac
9733         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734
9735         if test "x$supports_anon_versioning" = xyes; then
9736           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9737             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9738             echo "local: *; };" >> $output_objdir/$libname.ver~
9739             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9740         fi
9741
9742         case $cc_basename in
9743         xlf* | bgf* | bgxlf* | mpixlf*)
9744           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9745           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9746           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9747           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9748           if test "x$supports_anon_versioning" = xyes; then
9749             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9750               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9751               echo "local: *; };" >> $output_objdir/$libname.ver~
9752               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9753           fi
9754           ;;
9755         esac
9756       else
9757         ld_shlibs=no
9758       fi
9759       ;;
9760
9761     netbsd* | netbsdelf*-gnu)
9762       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9763         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9764         wlarc=
9765       else
9766         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9768       fi
9769       ;;
9770
9771     solaris*)
9772       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9773         ld_shlibs=no
9774         cat <<_LT_EOF 1>&2
9775
9776 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9777 *** create shared libraries on Solaris systems.  Therefore, libtool
9778 *** is disabling shared libraries support.  We urge you to upgrade GNU
9779 *** binutils to release 2.9.1 or newer.  Another option is to modify
9780 *** your PATH or compiler configuration so that the native linker is
9781 *** used, and then restart.
9782
9783 _LT_EOF
9784       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9785         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9786         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9787       else
9788         ld_shlibs=no
9789       fi
9790       ;;
9791
9792     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9793       case `$LD -v 2>&1` in
9794         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9795         ld_shlibs=no
9796         cat <<_LT_EOF 1>&2
9797
9798 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9799 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9800 *** is disabling shared libraries support.  We urge you to upgrade GNU
9801 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9802 *** your PATH or compiler configuration so that the native linker is
9803 *** used, and then restart.
9804
9805 _LT_EOF
9806         ;;
9807         *)
9808           # For security reasons, it is highly recommended that you always
9809           # use absolute paths for naming shared libraries, and exclude the
9810           # DT_RUNPATH tag from executables and libraries.  But doing so
9811           # requires that you compile everything twice, which is a pain.
9812           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9813             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9816           else
9817             ld_shlibs=no
9818           fi
9819         ;;
9820       esac
9821       ;;
9822
9823     sunos4*)
9824       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9825       wlarc=
9826       hardcode_direct=yes
9827       hardcode_shlibpath_var=no
9828       ;;
9829
9830     *)
9831       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9832         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9834       else
9835         ld_shlibs=no
9836       fi
9837       ;;
9838     esac
9839
9840     if test "$ld_shlibs" = no; then
9841       runpath_var=
9842       hardcode_libdir_flag_spec=
9843       export_dynamic_flag_spec=
9844       whole_archive_flag_spec=
9845     fi
9846   else
9847     # PORTME fill in a description of your system's linker (not GNU ld)
9848     case $host_os in
9849     aix3*)
9850       allow_undefined_flag=unsupported
9851       always_export_symbols=yes
9852       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'
9853       # Note: this linker hardcodes the directories in LIBPATH if there
9854       # are no directories specified by -L.
9855       hardcode_minus_L=yes
9856       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9857         # Neither direct hardcoding nor static linking is supported with a
9858         # broken collect2.
9859         hardcode_direct=unsupported
9860       fi
9861       ;;
9862
9863     aix[4-9]*)
9864       if test "$host_cpu" = ia64; then
9865         # On IA64, the linker does run time linking by default, so we don't
9866         # have to do anything special.
9867         aix_use_runtimelinking=no
9868         exp_sym_flag='-Bexport'
9869         no_entry_flag=""
9870       else
9871         # If we're using GNU nm, then we don't want the "-C" option.
9872         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9873         # Also, AIX nm treats weak defined symbols like other global
9874         # defined symbols, whereas GNU nm marks them as "W".
9875         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9876           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9877         else
9878           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'
9879         fi
9880         aix_use_runtimelinking=no
9881
9882         # Test if we are trying to use run time linking or normal
9883         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9884         # need to do runtime linking.
9885         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9886           for ld_flag in $LDFLAGS; do
9887           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9888             aix_use_runtimelinking=yes
9889             break
9890           fi
9891           done
9892           ;;
9893         esac
9894
9895         exp_sym_flag='-bexport'
9896         no_entry_flag='-bnoentry'
9897       fi
9898
9899       # When large executables or shared objects are built, AIX ld can
9900       # have problems creating the table of contents.  If linking a library
9901       # or program results in "error TOC overflow" add -mminimal-toc to
9902       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9903       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9904
9905       archive_cmds=''
9906       hardcode_direct=yes
9907       hardcode_direct_absolute=yes
9908       hardcode_libdir_separator=':'
9909       link_all_deplibs=yes
9910       file_list_spec='${wl}-f,'
9911
9912       if test "$GCC" = yes; then
9913         case $host_os in aix4.[012]|aix4.[012].*)
9914         # We only want to do this on AIX 4.2 and lower, the check
9915         # below for broken collect2 doesn't work under 4.3+
9916           collect2name=`${CC} -print-prog-name=collect2`
9917           if test -f "$collect2name" &&
9918            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9919           then
9920           # We have reworked collect2
9921           :
9922           else
9923           # We have old collect2
9924           hardcode_direct=unsupported
9925           # It fails to find uninstalled libraries when the uninstalled
9926           # path is not listed in the libpath.  Setting hardcode_minus_L
9927           # to unsupported forces relinking
9928           hardcode_minus_L=yes
9929           hardcode_libdir_flag_spec='-L$libdir'
9930           hardcode_libdir_separator=
9931           fi
9932           ;;
9933         esac
9934         shared_flag='-shared'
9935         if test "$aix_use_runtimelinking" = yes; then
9936           shared_flag="$shared_flag "'${wl}-G'
9937         fi
9938         link_all_deplibs=no
9939       else
9940         # not using gcc
9941         if test "$host_cpu" = ia64; then
9942         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9943         # chokes on -Wl,-G. The following line is correct:
9944           shared_flag='-G'
9945         else
9946           if test "$aix_use_runtimelinking" = yes; then
9947             shared_flag='${wl}-G'
9948           else
9949             shared_flag='${wl}-bM:SRE'
9950           fi
9951         fi
9952       fi
9953
9954       export_dynamic_flag_spec='${wl}-bexpall'
9955       # It seems that -bexpall does not export symbols beginning with
9956       # underscore (_), so it is better to generate a list of symbols to export.
9957       always_export_symbols=yes
9958       if test "$aix_use_runtimelinking" = yes; then
9959         # Warning - without using the other runtime loading flags (-brtl),
9960         # -berok will link without error, but may produce a broken library.
9961         allow_undefined_flag='-berok'
9962         # Determine the default libpath from the value encoded in an
9963         # empty executable.
9964         if test "${lt_cv_aix_libpath+set}" = set; then
9965   aix_libpath=$lt_cv_aix_libpath
9966 else
9967   if ${lt_cv_aix_libpath_+:} false; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h.  */
9972
9973 int
9974 main ()
9975 {
9976
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"; then :
9982
9983   lt_aix_libpath_sed='
9984       /Import File Strings/,/^$/ {
9985           /^0/ {
9986               s/^0  *\([^ ]*\) *$/\1/
9987               p
9988           }
9989       }'
9990   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9991   # Check for a 64-bit object if we didn't find anything.
9992   if test -z "$lt_cv_aix_libpath_"; then
9993     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9994   fi
9995 fi
9996 rm -f core conftest.err conftest.$ac_objext \
9997     conftest$ac_exeext conftest.$ac_ext
9998   if test -z "$lt_cv_aix_libpath_"; then
9999     lt_cv_aix_libpath_="/usr/lib:/lib"
10000   fi
10001
10002 fi
10003
10004   aix_libpath=$lt_cv_aix_libpath_
10005 fi
10006
10007         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10008         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10009       else
10010         if test "$host_cpu" = ia64; then
10011           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10012           allow_undefined_flag="-z nodefs"
10013           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"
10014         else
10015          # Determine the default libpath from the value encoded in an
10016          # empty executable.
10017          if test "${lt_cv_aix_libpath+set}" = set; then
10018   aix_libpath=$lt_cv_aix_libpath
10019 else
10020   if ${lt_cv_aix_libpath_+:} false; then :
10021   $as_echo_n "(cached) " >&6
10022 else
10023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h.  */
10025
10026 int
10027 main ()
10028 {
10029
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 if ac_fn_c_try_link "$LINENO"; then :
10035
10036   lt_aix_libpath_sed='
10037       /Import File Strings/,/^$/ {
10038           /^0/ {
10039               s/^0  *\([^ ]*\) *$/\1/
10040               p
10041           }
10042       }'
10043   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10044   # Check for a 64-bit object if we didn't find anything.
10045   if test -z "$lt_cv_aix_libpath_"; then
10046     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10047   fi
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext \
10050     conftest$ac_exeext conftest.$ac_ext
10051   if test -z "$lt_cv_aix_libpath_"; then
10052     lt_cv_aix_libpath_="/usr/lib:/lib"
10053   fi
10054
10055 fi
10056
10057   aix_libpath=$lt_cv_aix_libpath_
10058 fi
10059
10060          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10061           # Warning - without using the other run time loading flags,
10062           # -berok will link without error, but may produce a broken library.
10063           no_undefined_flag=' ${wl}-bernotok'
10064           allow_undefined_flag=' ${wl}-berok'
10065           if test "$with_gnu_ld" = yes; then
10066             # We only use this code for GNU lds that support --whole-archive.
10067             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10068           else
10069             # Exported symbols can be pulled into shared objects from archives
10070             whole_archive_flag_spec='$convenience'
10071           fi
10072           archive_cmds_need_lc=yes
10073           # This is similar to how AIX traditionally builds its shared libraries.
10074           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'
10075         fi
10076       fi
10077       ;;
10078
10079     amigaos*)
10080       case $host_cpu in
10081       powerpc)
10082             # see comment about AmigaOS4 .so support
10083             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084             archive_expsym_cmds=''
10085         ;;
10086       m68k)
10087             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)'
10088             hardcode_libdir_flag_spec='-L$libdir'
10089             hardcode_minus_L=yes
10090         ;;
10091       esac
10092       ;;
10093
10094     bsdi[45]*)
10095       export_dynamic_flag_spec=-rdynamic
10096       ;;
10097
10098     cygwin* | mingw* | pw32* | cegcc*)
10099       # When not using gcc, we currently assume that we are using
10100       # Microsoft Visual C++.
10101       # hardcode_libdir_flag_spec is actually meaningless, as there is
10102       # no search path for DLLs.
10103       case $cc_basename in
10104       cl*)
10105         # Native MSVC
10106         hardcode_libdir_flag_spec=' '
10107         allow_undefined_flag=unsupported
10108         always_export_symbols=yes
10109         file_list_spec='@'
10110         # Tell ltmain to make .lib files, not .a files.
10111         libext=lib
10112         # Tell ltmain to make .dll files, not .so files.
10113         shrext_cmds=".dll"
10114         # FIXME: Setting linknames here is a bad hack.
10115         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10116         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10117             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10118           else
10119             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10120           fi~
10121           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10122           linknames='
10123         # The linker will not automatically build a static lib if we build a DLL.
10124         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10125         enable_shared_with_static_runtimes=yes
10126         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10127         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10128         # Don't use ranlib
10129         old_postinstall_cmds='chmod 644 $oldlib'
10130         postlink_cmds='lt_outputfile="@OUTPUT@"~
10131           lt_tool_outputfile="@TOOL_OUTPUT@"~
10132           case $lt_outputfile in
10133             *.exe|*.EXE) ;;
10134             *)
10135               lt_outputfile="$lt_outputfile.exe"
10136               lt_tool_outputfile="$lt_tool_outputfile.exe"
10137               ;;
10138           esac~
10139           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10140             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10141             $RM "$lt_outputfile.manifest";
10142           fi'
10143         ;;
10144       *)
10145         # Assume MSVC wrapper
10146         hardcode_libdir_flag_spec=' '
10147         allow_undefined_flag=unsupported
10148         # Tell ltmain to make .lib files, not .a files.
10149         libext=lib
10150         # Tell ltmain to make .dll files, not .so files.
10151         shrext_cmds=".dll"
10152         # FIXME: Setting linknames here is a bad hack.
10153         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10154         # The linker will automatically build a .lib file if we build a DLL.
10155         old_archive_from_new_cmds='true'
10156         # FIXME: Should let the user specify the lib program.
10157         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10158         enable_shared_with_static_runtimes=yes
10159         ;;
10160       esac
10161       ;;
10162
10163     darwin* | rhapsody*)
10164
10165
10166   archive_cmds_need_lc=no
10167   hardcode_direct=no
10168   hardcode_automatic=yes
10169   hardcode_shlibpath_var=unsupported
10170   if test "$lt_cv_ld_force_load" = "yes"; then
10171     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10172
10173   else
10174     whole_archive_flag_spec=''
10175   fi
10176   link_all_deplibs=yes
10177   allow_undefined_flag="$_lt_dar_allow_undefined"
10178   case $cc_basename in
10179      ifort*) _lt_dar_can_shared=yes ;;
10180      *) _lt_dar_can_shared=$GCC ;;
10181   esac
10182   if test "$_lt_dar_can_shared" = "yes"; then
10183     output_verbose_link_cmd=func_echo_all
10184     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10185     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10186     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}"
10187     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}"
10188
10189   else
10190   ld_shlibs=no
10191   fi
10192
10193       ;;
10194
10195     dgux*)
10196       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197       hardcode_libdir_flag_spec='-L$libdir'
10198       hardcode_shlibpath_var=no
10199       ;;
10200
10201     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10202     # support.  Future versions do this automatically, but an explicit c++rt0.o
10203     # does not break anything, and helps significantly (at the cost of a little
10204     # extra space).
10205     freebsd2.2*)
10206       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10207       hardcode_libdir_flag_spec='-R$libdir'
10208       hardcode_direct=yes
10209       hardcode_shlibpath_var=no
10210       ;;
10211
10212     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10213     freebsd2.*)
10214       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10215       hardcode_direct=yes
10216       hardcode_minus_L=yes
10217       hardcode_shlibpath_var=no
10218       ;;
10219
10220     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10221     freebsd* | dragonfly*)
10222       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10223       hardcode_libdir_flag_spec='-R$libdir'
10224       hardcode_direct=yes
10225       hardcode_shlibpath_var=no
10226       ;;
10227
10228     hpux9*)
10229       if test "$GCC" = yes; then
10230         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10231       else
10232         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'
10233       fi
10234       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10235       hardcode_libdir_separator=:
10236       hardcode_direct=yes
10237
10238       # hardcode_minus_L: Not really in the search PATH,
10239       # but as the default location of the library.
10240       hardcode_minus_L=yes
10241       export_dynamic_flag_spec='${wl}-E'
10242       ;;
10243
10244     hpux10*)
10245       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10246         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10247       else
10248         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10249       fi
10250       if test "$with_gnu_ld" = no; then
10251         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252         hardcode_libdir_separator=:
10253         hardcode_direct=yes
10254         hardcode_direct_absolute=yes
10255         export_dynamic_flag_spec='${wl}-E'
10256         # hardcode_minus_L: Not really in the search PATH,
10257         # but as the default location of the library.
10258         hardcode_minus_L=yes
10259       fi
10260       ;;
10261
10262     hpux11*)
10263       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10264         case $host_cpu in
10265         hppa*64*)
10266           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10267           ;;
10268         ia64*)
10269           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10270           ;;
10271         *)
10272           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10273           ;;
10274         esac
10275       else
10276         case $host_cpu in
10277         hppa*64*)
10278           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10279           ;;
10280         ia64*)
10281           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10282           ;;
10283         *)
10284
10285           # Older versions of the 11.00 compiler do not understand -b yet
10286           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10287           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10288 $as_echo_n "checking if $CC understands -b... " >&6; }
10289 if ${lt_cv_prog_compiler__b+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   lt_cv_prog_compiler__b=no
10293    save_LDFLAGS="$LDFLAGS"
10294    LDFLAGS="$LDFLAGS -b"
10295    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10296    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10297      # The linker can only warn and ignore the option if not recognized
10298      # So say no if there are warnings
10299      if test -s conftest.err; then
10300        # Append any errors to the config.log.
10301        cat conftest.err 1>&5
10302        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10303        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10304        if diff conftest.exp conftest.er2 >/dev/null; then
10305          lt_cv_prog_compiler__b=yes
10306        fi
10307      else
10308        lt_cv_prog_compiler__b=yes
10309      fi
10310    fi
10311    $RM -r conftest*
10312    LDFLAGS="$save_LDFLAGS"
10313
10314 fi
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10316 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10317
10318 if test x"$lt_cv_prog_compiler__b" = xyes; then
10319     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10320 else
10321     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10322 fi
10323
10324           ;;
10325         esac
10326       fi
10327       if test "$with_gnu_ld" = no; then
10328         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10329         hardcode_libdir_separator=:
10330
10331         case $host_cpu in
10332         hppa*64*|ia64*)
10333           hardcode_direct=no
10334           hardcode_shlibpath_var=no
10335           ;;
10336         *)
10337           hardcode_direct=yes
10338           hardcode_direct_absolute=yes
10339           export_dynamic_flag_spec='${wl}-E'
10340
10341           # hardcode_minus_L: Not really in the search PATH,
10342           # but as the default location of the library.
10343           hardcode_minus_L=yes
10344           ;;
10345         esac
10346       fi
10347       ;;
10348
10349     irix5* | irix6* | nonstopux*)
10350       if test "$GCC" = yes; then
10351         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10352         # Try to use the -exported_symbol ld option, if it does not
10353         # work, assume that -exports_file does not work either and
10354         # implicitly export all symbols.
10355         # This should be the same for all languages, so no per-tag cache variable.
10356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10357 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10358 if ${lt_cv_irix_exported_symbol+:} false; then :
10359   $as_echo_n "(cached) " >&6
10360 else
10361   save_LDFLAGS="$LDFLAGS"
10362            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10363            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h.  */
10365 int foo (void) { return 0; }
10366 _ACEOF
10367 if ac_fn_c_try_link "$LINENO"; then :
10368   lt_cv_irix_exported_symbol=yes
10369 else
10370   lt_cv_irix_exported_symbol=no
10371 fi
10372 rm -f core conftest.err conftest.$ac_objext \
10373     conftest$ac_exeext conftest.$ac_ext
10374            LDFLAGS="$save_LDFLAGS"
10375 fi
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10377 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10378         if test "$lt_cv_irix_exported_symbol" = yes; then
10379           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10380         fi
10381       else
10382         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10383         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10384       fi
10385       archive_cmds_need_lc='no'
10386       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10387       hardcode_libdir_separator=:
10388       inherit_rpath=yes
10389       link_all_deplibs=yes
10390       ;;
10391
10392     netbsd* | netbsdelf*-gnu)
10393       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10394         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10395       else
10396         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10397       fi
10398       hardcode_libdir_flag_spec='-R$libdir'
10399       hardcode_direct=yes
10400       hardcode_shlibpath_var=no
10401       ;;
10402
10403     newsos6)
10404       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405       hardcode_direct=yes
10406       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10407       hardcode_libdir_separator=:
10408       hardcode_shlibpath_var=no
10409       ;;
10410
10411     *nto* | *qnx*)
10412       ;;
10413
10414     openbsd*)
10415       if test -f /usr/libexec/ld.so; then
10416         hardcode_direct=yes
10417         hardcode_shlibpath_var=no
10418         hardcode_direct_absolute=yes
10419         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10420           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10421           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10422           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10423           export_dynamic_flag_spec='${wl}-E'
10424         else
10425           case $host_os in
10426            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10427              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10428              hardcode_libdir_flag_spec='-R$libdir'
10429              ;;
10430            *)
10431              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10432              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10433              ;;
10434           esac
10435         fi
10436       else
10437         ld_shlibs=no
10438       fi
10439       ;;
10440
10441     os2*)
10442       hardcode_libdir_flag_spec='-L$libdir'
10443       hardcode_minus_L=yes
10444       allow_undefined_flag=unsupported
10445       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'
10446       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10447       ;;
10448
10449     osf3*)
10450       if test "$GCC" = yes; then
10451         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10452         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10453       else
10454         allow_undefined_flag=' -expect_unresolved \*'
10455         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10456       fi
10457       archive_cmds_need_lc='no'
10458       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10459       hardcode_libdir_separator=:
10460       ;;
10461
10462     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10463       if test "$GCC" = yes; then
10464         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10465         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10466         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10467       else
10468         allow_undefined_flag=' -expect_unresolved \*'
10469         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10470         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~
10471         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10472
10473         # Both c and cxx compiler support -rpath directly
10474         hardcode_libdir_flag_spec='-rpath $libdir'
10475       fi
10476       archive_cmds_need_lc='no'
10477       hardcode_libdir_separator=:
10478       ;;
10479
10480     solaris*)
10481       no_undefined_flag=' -z defs'
10482       if test "$GCC" = yes; then
10483         wlarc='${wl}'
10484         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10485         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10486           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10487       else
10488         case `$CC -V 2>&1` in
10489         *"Compilers 5.0"*)
10490           wlarc=''
10491           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10493           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10494           ;;
10495         *)
10496           wlarc='${wl}'
10497           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10498           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10499           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10500           ;;
10501         esac
10502       fi
10503       hardcode_libdir_flag_spec='-R$libdir'
10504       hardcode_shlibpath_var=no
10505       case $host_os in
10506       solaris2.[0-5] | solaris2.[0-5].*) ;;
10507       *)
10508         # The compiler driver will combine and reorder linker options,
10509         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10510         # but is careful enough not to reorder.
10511         # Supported since Solaris 2.6 (maybe 2.5.1?)
10512         if test "$GCC" = yes; then
10513           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10514         else
10515           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10516         fi
10517         ;;
10518       esac
10519       link_all_deplibs=yes
10520       ;;
10521
10522     sunos4*)
10523       if test "x$host_vendor" = xsequent; then
10524         # Use $CC to link under sequent, because it throws in some extra .o
10525         # files that make .init and .fini sections work.
10526         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10527       else
10528         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10529       fi
10530       hardcode_libdir_flag_spec='-L$libdir'
10531       hardcode_direct=yes
10532       hardcode_minus_L=yes
10533       hardcode_shlibpath_var=no
10534       ;;
10535
10536     sysv4)
10537       case $host_vendor in
10538         sni)
10539           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10540           hardcode_direct=yes # is this really true???
10541         ;;
10542         siemens)
10543           ## LD is ld it makes a PLAMLIB
10544           ## CC just makes a GrossModule.
10545           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10546           reload_cmds='$CC -r -o $output$reload_objs'
10547           hardcode_direct=no
10548         ;;
10549         motorola)
10550           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10552         ;;
10553       esac
10554       runpath_var='LD_RUN_PATH'
10555       hardcode_shlibpath_var=no
10556       ;;
10557
10558     sysv4.3*)
10559       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10560       hardcode_shlibpath_var=no
10561       export_dynamic_flag_spec='-Bexport'
10562       ;;
10563
10564     sysv4*MP*)
10565       if test -d /usr/nec; then
10566         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567         hardcode_shlibpath_var=no
10568         runpath_var=LD_RUN_PATH
10569         hardcode_runpath_var=yes
10570         ld_shlibs=yes
10571       fi
10572       ;;
10573
10574     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10575       no_undefined_flag='${wl}-z,text'
10576       archive_cmds_need_lc=no
10577       hardcode_shlibpath_var=no
10578       runpath_var='LD_RUN_PATH'
10579
10580       if test "$GCC" = yes; then
10581         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583       else
10584         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586       fi
10587       ;;
10588
10589     sysv5* | sco3.2v5* | sco5v6*)
10590       # Note: We can NOT use -z defs as we might desire, because we do not
10591       # link with -lc, and that would cause any symbols used from libc to
10592       # always be unresolved, which means just about no library would
10593       # ever link correctly.  If we're not using GNU ld we use -z text
10594       # though, which does catch some bad symbols but isn't as heavy-handed
10595       # as -z defs.
10596       no_undefined_flag='${wl}-z,text'
10597       allow_undefined_flag='${wl}-z,nodefs'
10598       archive_cmds_need_lc=no
10599       hardcode_shlibpath_var=no
10600       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10601       hardcode_libdir_separator=':'
10602       link_all_deplibs=yes
10603       export_dynamic_flag_spec='${wl}-Bexport'
10604       runpath_var='LD_RUN_PATH'
10605
10606       if test "$GCC" = yes; then
10607         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609       else
10610         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612       fi
10613       ;;
10614
10615     uts4*)
10616       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617       hardcode_libdir_flag_spec='-L$libdir'
10618       hardcode_shlibpath_var=no
10619       ;;
10620
10621     *)
10622       ld_shlibs=no
10623       ;;
10624     esac
10625
10626     if test x$host_vendor = xsni; then
10627       case $host in
10628       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10629         export_dynamic_flag_spec='${wl}-Blargedynsym'
10630         ;;
10631       esac
10632     fi
10633   fi
10634
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10636 $as_echo "$ld_shlibs" >&6; }
10637 test "$ld_shlibs" = no && can_build_shared=no
10638
10639 with_gnu_ld=$with_gnu_ld
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655 #
10656 # Do we need to explicitly link libc?
10657 #
10658 case "x$archive_cmds_need_lc" in
10659 x|xyes)
10660   # Assume -lc should be added
10661   archive_cmds_need_lc=yes
10662
10663   if test "$enable_shared" = yes && test "$GCC" = yes; then
10664     case $archive_cmds in
10665     *'~'*)
10666       # FIXME: we may have to deal with multi-command sequences.
10667       ;;
10668     '$CC '*)
10669       # Test whether the compiler implicitly links with -lc since on some
10670       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10671       # to ld, don't add -lc before -lgcc.
10672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10673 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10674 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   $RM conftest*
10678         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10679
10680         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10681   (eval $ac_compile) 2>&5
10682   ac_status=$?
10683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684   test $ac_status = 0; } 2>conftest.err; then
10685           soname=conftest
10686           lib=conftest
10687           libobjs=conftest.$ac_objext
10688           deplibs=
10689           wl=$lt_prog_compiler_wl
10690           pic_flag=$lt_prog_compiler_pic
10691           compiler_flags=-v
10692           linker_flags=-v
10693           verstring=
10694           output_objdir=.
10695           libname=conftest
10696           lt_save_allow_undefined_flag=$allow_undefined_flag
10697           allow_undefined_flag=
10698           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10699   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10700   ac_status=$?
10701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10702   test $ac_status = 0; }
10703           then
10704             lt_cv_archive_cmds_need_lc=no
10705           else
10706             lt_cv_archive_cmds_need_lc=yes
10707           fi
10708           allow_undefined_flag=$lt_save_allow_undefined_flag
10709         else
10710           cat conftest.err 1>&5
10711         fi
10712         $RM conftest*
10713
10714 fi
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10716 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10717       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10718       ;;
10719     esac
10720   fi
10721   ;;
10722 esac
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
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10876 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10877
10878 if test "$GCC" = yes; then
10879   case $host_os in
10880     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10881     *) lt_awk_arg="/^libraries:/" ;;
10882   esac
10883   case $host_os in
10884     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10885     *) lt_sed_strip_eq="s,=/,/,g" ;;
10886   esac
10887   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10888   case $lt_search_path_spec in
10889   *\;*)
10890     # if the path contains ";" then we assume it to be the separator
10891     # otherwise default to the standard path separator (i.e. ":") - it is
10892     # assumed that no part of a normal pathname contains ";" but that should
10893     # okay in the real world where ";" in dirpaths is itself problematic.
10894     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10895     ;;
10896   *)
10897     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10898     ;;
10899   esac
10900   # Ok, now we have the path, separated by spaces, we can step through it
10901   # and add multilib dir if necessary.
10902   lt_tmp_lt_search_path_spec=
10903   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10904   for lt_sys_path in $lt_search_path_spec; do
10905     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10906       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10907     else
10908       test -d "$lt_sys_path" && \
10909         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10910     fi
10911   done
10912   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10913 BEGIN {RS=" "; FS="/|\n";} {
10914   lt_foo="";
10915   lt_count=0;
10916   for (lt_i = NF; lt_i > 0; lt_i--) {
10917     if ($lt_i != "" && $lt_i != ".") {
10918       if ($lt_i == "..") {
10919         lt_count++;
10920       } else {
10921         if (lt_count == 0) {
10922           lt_foo="/" $lt_i lt_foo;
10923         } else {
10924           lt_count--;
10925         }
10926       }
10927     }
10928   }
10929   if (lt_foo != "") { lt_freq[lt_foo]++; }
10930   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10931 }'`
10932   # AWK program above erroneously prepends '/' to C:/dos/paths
10933   # for these hosts.
10934   case $host_os in
10935     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10936       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10937   esac
10938   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10939 else
10940   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10941 fi
10942 library_names_spec=
10943 libname_spec='lib$name'
10944 soname_spec=
10945 shrext_cmds=".so"
10946 postinstall_cmds=
10947 postuninstall_cmds=
10948 finish_cmds=
10949 finish_eval=
10950 shlibpath_var=
10951 shlibpath_overrides_runpath=unknown
10952 version_type=none
10953 dynamic_linker="$host_os ld.so"
10954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10955 need_lib_prefix=unknown
10956 hardcode_into_libs=no
10957
10958 # when you set need_version to no, make sure it does not cause -set_version
10959 # flags to be left without arguments
10960 need_version=unknown
10961
10962 case $host_os in
10963 aix3*)
10964   version_type=linux # correct to gnu/linux during the next big refactor
10965   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10966   shlibpath_var=LIBPATH
10967
10968   # AIX 3 has no versioning support, so we append a major version to the name.
10969   soname_spec='${libname}${release}${shared_ext}$major'
10970   ;;
10971
10972 aix[4-9]*)
10973   version_type=linux # correct to gnu/linux during the next big refactor
10974   need_lib_prefix=no
10975   need_version=no
10976   hardcode_into_libs=yes
10977   if test "$host_cpu" = ia64; then
10978     # AIX 5 supports IA64
10979     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10980     shlibpath_var=LD_LIBRARY_PATH
10981   else
10982     # With GCC up to 2.95.x, collect2 would create an import file
10983     # for dependence libraries.  The import file would start with
10984     # the line `#! .'.  This would cause the generated library to
10985     # depend on `.', always an invalid library.  This was fixed in
10986     # development snapshots of GCC prior to 3.0.
10987     case $host_os in
10988       aix4 | aix4.[01] | aix4.[01].*)
10989       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10990            echo ' yes '
10991            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10992         :
10993       else
10994         can_build_shared=no
10995       fi
10996       ;;
10997     esac
10998     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10999     # soname into executable. Probably we can add versioning support to
11000     # collect2, so additional links can be useful in future.
11001     if test "$aix_use_runtimelinking" = yes; then
11002       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11003       # instead of lib<name>.a to let people know that these are not
11004       # typical AIX shared libraries.
11005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006     else
11007       # We preserve .a as extension for shared libraries through AIX4.2
11008       # and later when we are not doing run time linking.
11009       library_names_spec='${libname}${release}.a $libname.a'
11010       soname_spec='${libname}${release}${shared_ext}$major'
11011     fi
11012     shlibpath_var=LIBPATH
11013   fi
11014   ;;
11015
11016 amigaos*)
11017   case $host_cpu in
11018   powerpc)
11019     # Since July 2007 AmigaOS4 officially supports .so libraries.
11020     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022     ;;
11023   m68k)
11024     library_names_spec='$libname.ixlibrary $libname.a'
11025     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11026     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11027     ;;
11028   esac
11029   ;;
11030
11031 beos*)
11032   library_names_spec='${libname}${shared_ext}'
11033   dynamic_linker="$host_os ld.so"
11034   shlibpath_var=LIBRARY_PATH
11035   ;;
11036
11037 bsdi[45]*)
11038   version_type=linux # correct to gnu/linux during the next big refactor
11039   need_version=no
11040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041   soname_spec='${libname}${release}${shared_ext}$major'
11042   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11043   shlibpath_var=LD_LIBRARY_PATH
11044   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11045   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11046   # the default ld.so.conf also contains /usr/contrib/lib and
11047   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11048   # libtool to hard-code these into programs
11049   ;;
11050
11051 cygwin* | mingw* | pw32* | cegcc*)
11052   version_type=windows
11053   shrext_cmds=".dll"
11054   need_version=no
11055   need_lib_prefix=no
11056
11057   case $GCC,$cc_basename in
11058   yes,*)
11059     # gcc
11060     library_names_spec='$libname.dll.a'
11061     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11062     postinstall_cmds='base_file=`basename \${file}`~
11063       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11064       dldir=$destdir/`dirname \$dlpath`~
11065       test -d \$dldir || mkdir -p \$dldir~
11066       $install_prog $dir/$dlname \$dldir/$dlname~
11067       chmod a+x \$dldir/$dlname~
11068       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11069         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11070       fi'
11071     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11072       dlpath=$dir/\$dldll~
11073        $RM \$dlpath'
11074     shlibpath_overrides_runpath=yes
11075
11076     case $host_os in
11077     cygwin*)
11078       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11079       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11080
11081       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11082       ;;
11083     mingw* | cegcc*)
11084       # MinGW DLLs use traditional 'lib' prefix
11085       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11086       ;;
11087     pw32*)
11088       # pw32 DLLs use 'pw' prefix rather than 'lib'
11089       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11090       ;;
11091     esac
11092     dynamic_linker='Win32 ld.exe'
11093     ;;
11094
11095   *,cl*)
11096     # Native MSVC
11097     libname_spec='$name'
11098     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11099     library_names_spec='${libname}.dll.lib'
11100
11101     case $build_os in
11102     mingw*)
11103       sys_lib_search_path_spec=
11104       lt_save_ifs=$IFS
11105       IFS=';'
11106       for lt_path in $LIB
11107       do
11108         IFS=$lt_save_ifs
11109         # Let DOS variable expansion print the short 8.3 style file name.
11110         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11111         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11112       done
11113       IFS=$lt_save_ifs
11114       # Convert to MSYS style.
11115       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11116       ;;
11117     cygwin*)
11118       # Convert to unix form, then to dos form, then back to unix form
11119       # but this time dos style (no spaces!) so that the unix form looks
11120       # like /cygdrive/c/PROGRA~1:/cygdr...
11121       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11122       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11123       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11124       ;;
11125     *)
11126       sys_lib_search_path_spec="$LIB"
11127       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11128         # It is most probably a Windows format PATH.
11129         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11130       else
11131         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11132       fi
11133       # FIXME: find the short name or the path components, as spaces are
11134       # common. (e.g. "Program Files" -> "PROGRA~1")
11135       ;;
11136     esac
11137
11138     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11139     postinstall_cmds='base_file=`basename \${file}`~
11140       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11141       dldir=$destdir/`dirname \$dlpath`~
11142       test -d \$dldir || mkdir -p \$dldir~
11143       $install_prog $dir/$dlname \$dldir/$dlname'
11144     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11145       dlpath=$dir/\$dldll~
11146        $RM \$dlpath'
11147     shlibpath_overrides_runpath=yes
11148     dynamic_linker='Win32 link.exe'
11149     ;;
11150
11151   *)
11152     # Assume MSVC wrapper
11153     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11154     dynamic_linker='Win32 ld.exe'
11155     ;;
11156   esac
11157   # FIXME: first we should search . and the directory the executable is in
11158   shlibpath_var=PATH
11159   ;;
11160
11161 darwin* | rhapsody*)
11162   dynamic_linker="$host_os dyld"
11163   version_type=darwin
11164   need_lib_prefix=no
11165   need_version=no
11166   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11167   soname_spec='${libname}${release}${major}$shared_ext'
11168   shlibpath_overrides_runpath=yes
11169   shlibpath_var=DYLD_LIBRARY_PATH
11170   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11171
11172   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11173   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11174   ;;
11175
11176 dgux*)
11177   version_type=linux # correct to gnu/linux during the next big refactor
11178   need_lib_prefix=no
11179   need_version=no
11180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11181   soname_spec='${libname}${release}${shared_ext}$major'
11182   shlibpath_var=LD_LIBRARY_PATH
11183   ;;
11184
11185 freebsd* | dragonfly*)
11186   # DragonFly does not have aout.  When/if they implement a new
11187   # versioning mechanism, adjust this.
11188   if test -x /usr/bin/objformat; then
11189     objformat=`/usr/bin/objformat`
11190   else
11191     case $host_os in
11192     freebsd[23].*) objformat=aout ;;
11193     *) objformat=elf ;;
11194     esac
11195   fi
11196   version_type=freebsd-$objformat
11197   case $version_type in
11198     freebsd-elf*)
11199       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11200       need_version=no
11201       need_lib_prefix=no
11202       ;;
11203     freebsd-*)
11204       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11205       need_version=yes
11206       ;;
11207   esac
11208   shlibpath_var=LD_LIBRARY_PATH
11209   case $host_os in
11210   freebsd2.*)
11211     shlibpath_overrides_runpath=yes
11212     ;;
11213   freebsd3.[01]* | freebsdelf3.[01]*)
11214     shlibpath_overrides_runpath=yes
11215     hardcode_into_libs=yes
11216     ;;
11217   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11218   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11219     shlibpath_overrides_runpath=no
11220     hardcode_into_libs=yes
11221     ;;
11222   *) # from 4.6 on, and DragonFly
11223     shlibpath_overrides_runpath=yes
11224     hardcode_into_libs=yes
11225     ;;
11226   esac
11227   ;;
11228
11229 gnu*)
11230   version_type=linux # correct to gnu/linux during the next big refactor
11231   need_lib_prefix=no
11232   need_version=no
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11234   soname_spec='${libname}${release}${shared_ext}$major'
11235   shlibpath_var=LD_LIBRARY_PATH
11236   shlibpath_overrides_runpath=no
11237   hardcode_into_libs=yes
11238   ;;
11239
11240 haiku*)
11241   version_type=linux # correct to gnu/linux during the next big refactor
11242   need_lib_prefix=no
11243   need_version=no
11244   dynamic_linker="$host_os runtime_loader"
11245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11246   soname_spec='${libname}${release}${shared_ext}$major'
11247   shlibpath_var=LIBRARY_PATH
11248   shlibpath_overrides_runpath=yes
11249   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11250   hardcode_into_libs=yes
11251   ;;
11252
11253 hpux9* | hpux10* | hpux11*)
11254   # Give a soname corresponding to the major version so that dld.sl refuses to
11255   # link against other versions.
11256   version_type=sunos
11257   need_lib_prefix=no
11258   need_version=no
11259   case $host_cpu in
11260   ia64*)
11261     shrext_cmds='.so'
11262     hardcode_into_libs=yes
11263     dynamic_linker="$host_os dld.so"
11264     shlibpath_var=LD_LIBRARY_PATH
11265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267     soname_spec='${libname}${release}${shared_ext}$major'
11268     if test "X$HPUX_IA64_MODE" = X32; then
11269       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11270     else
11271       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11272     fi
11273     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11274     ;;
11275   hppa*64*)
11276     shrext_cmds='.sl'
11277     hardcode_into_libs=yes
11278     dynamic_linker="$host_os dld.sl"
11279     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11280     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282     soname_spec='${libname}${release}${shared_ext}$major'
11283     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11284     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11285     ;;
11286   *)
11287     shrext_cmds='.sl'
11288     dynamic_linker="$host_os dld.sl"
11289     shlibpath_var=SHLIB_PATH
11290     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292     soname_spec='${libname}${release}${shared_ext}$major'
11293     ;;
11294   esac
11295   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11296   postinstall_cmds='chmod 555 $lib'
11297   # or fails outright, so override atomically:
11298   install_override_mode=555
11299   ;;
11300
11301 interix[3-9]*)
11302   version_type=linux # correct to gnu/linux during the next big refactor
11303   need_lib_prefix=no
11304   need_version=no
11305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11306   soname_spec='${libname}${release}${shared_ext}$major'
11307   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   shlibpath_overrides_runpath=no
11310   hardcode_into_libs=yes
11311   ;;
11312
11313 irix5* | irix6* | nonstopux*)
11314   case $host_os in
11315     nonstopux*) version_type=nonstopux ;;
11316     *)
11317         if test "$lt_cv_prog_gnu_ld" = yes; then
11318                 version_type=linux # correct to gnu/linux during the next big refactor
11319         else
11320                 version_type=irix
11321         fi ;;
11322   esac
11323   need_lib_prefix=no
11324   need_version=no
11325   soname_spec='${libname}${release}${shared_ext}$major'
11326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11327   case $host_os in
11328   irix5* | nonstopux*)
11329     libsuff= shlibsuff=
11330     ;;
11331   *)
11332     case $LD in # libtool.m4 will add one of these switches to LD
11333     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11334       libsuff= shlibsuff= libmagic=32-bit;;
11335     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11336       libsuff=32 shlibsuff=N32 libmagic=N32;;
11337     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11338       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11339     *) libsuff= shlibsuff= libmagic=never-match;;
11340     esac
11341     ;;
11342   esac
11343   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11344   shlibpath_overrides_runpath=no
11345   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11346   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11347   hardcode_into_libs=yes
11348   ;;
11349
11350 # No shared lib support for Linux oldld, aout, or coff.
11351 linux*oldld* | linux*aout* | linux*coff*)
11352   dynamic_linker=no
11353   ;;
11354
11355 # This must be glibc/ELF.
11356 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11357   version_type=linux # correct to gnu/linux during the next big refactor
11358   need_lib_prefix=no
11359   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11363   shlibpath_var=LD_LIBRARY_PATH
11364   shlibpath_overrides_runpath=no
11365
11366   # Some binutils ld are patched to set DT_RUNPATH
11367   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370   lt_cv_shlibpath_overrides_runpath=no
11371     save_LDFLAGS=$LDFLAGS
11372     save_libdir=$libdir
11373     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11374          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h.  */
11377
11378 int
11379 main ()
11380 {
11381
11382   ;
11383   return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_c_try_link "$LINENO"; then :
11387   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11388   lt_cv_shlibpath_overrides_runpath=yes
11389 fi
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392     conftest$ac_exeext conftest.$ac_ext
11393     LDFLAGS=$save_LDFLAGS
11394     libdir=$save_libdir
11395
11396 fi
11397
11398   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11399
11400   # This implies no fast_install, which is unacceptable.
11401   # Some rework will be needed to allow for fast_install
11402   # before this can be enabled.
11403   hardcode_into_libs=yes
11404
11405   # Append ld.so.conf contents to the search path
11406   if test -f /etc/ld.so.conf; then
11407     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11408     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11409   fi
11410
11411   # We used to test for /lib/ld.so.1 and disable shared libraries on
11412   # powerpc, because MkLinux only supported shared libraries with the
11413   # GNU dynamic linker.  Since this was broken with cross compilers,
11414   # most powerpc-linux boxes support dynamic linking these days and
11415   # people can always --disable-shared, the test was removed, and we
11416   # assume the GNU/Linux dynamic linker is in use.
11417   dynamic_linker='GNU/Linux ld.so'
11418   ;;
11419
11420 netbsdelf*-gnu)
11421   version_type=linux
11422   need_lib_prefix=no
11423   need_version=no
11424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11425   soname_spec='${libname}${release}${shared_ext}$major'
11426   shlibpath_var=LD_LIBRARY_PATH
11427   shlibpath_overrides_runpath=no
11428   hardcode_into_libs=yes
11429   dynamic_linker='NetBSD ld.elf_so'
11430   ;;
11431
11432 netbsd*)
11433   version_type=sunos
11434   need_lib_prefix=no
11435   need_version=no
11436   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11438     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11439     dynamic_linker='NetBSD (a.out) ld.so'
11440   else
11441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11442     soname_spec='${libname}${release}${shared_ext}$major'
11443     dynamic_linker='NetBSD ld.elf_so'
11444   fi
11445   shlibpath_var=LD_LIBRARY_PATH
11446   shlibpath_overrides_runpath=yes
11447   hardcode_into_libs=yes
11448   ;;
11449
11450 newsos6)
11451   version_type=linux # correct to gnu/linux during the next big refactor
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   shlibpath_overrides_runpath=yes
11455   ;;
11456
11457 *nto* | *qnx*)
11458   version_type=qnx
11459   need_lib_prefix=no
11460   need_version=no
11461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462   soname_spec='${libname}${release}${shared_ext}$major'
11463   shlibpath_var=LD_LIBRARY_PATH
11464   shlibpath_overrides_runpath=no
11465   hardcode_into_libs=yes
11466   dynamic_linker='ldqnx.so'
11467   ;;
11468
11469 openbsd*)
11470   version_type=sunos
11471   sys_lib_dlsearch_path_spec="/usr/lib"
11472   need_lib_prefix=no
11473   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11474   case $host_os in
11475     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11476     *)                          need_version=no  ;;
11477   esac
11478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11479   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11480   shlibpath_var=LD_LIBRARY_PATH
11481   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11482     case $host_os in
11483       openbsd2.[89] | openbsd2.[89].*)
11484         shlibpath_overrides_runpath=no
11485         ;;
11486       *)
11487         shlibpath_overrides_runpath=yes
11488         ;;
11489       esac
11490   else
11491     shlibpath_overrides_runpath=yes
11492   fi
11493   ;;
11494
11495 os2*)
11496   libname_spec='$name'
11497   shrext_cmds=".dll"
11498   need_lib_prefix=no
11499   library_names_spec='$libname${shared_ext} $libname.a'
11500   dynamic_linker='OS/2 ld.exe'
11501   shlibpath_var=LIBPATH
11502   ;;
11503
11504 osf3* | osf4* | osf5*)
11505   version_type=osf
11506   need_lib_prefix=no
11507   need_version=no
11508   soname_spec='${libname}${release}${shared_ext}$major'
11509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510   shlibpath_var=LD_LIBRARY_PATH
11511   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11512   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11513   ;;
11514
11515 rdos*)
11516   dynamic_linker=no
11517   ;;
11518
11519 solaris*)
11520   version_type=linux # correct to gnu/linux during the next big refactor
11521   need_lib_prefix=no
11522   need_version=no
11523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524   soname_spec='${libname}${release}${shared_ext}$major'
11525   shlibpath_var=LD_LIBRARY_PATH
11526   shlibpath_overrides_runpath=yes
11527   hardcode_into_libs=yes
11528   # ldd complains unless libraries are executable
11529   postinstall_cmds='chmod +x $lib'
11530   ;;
11531
11532 sunos4*)
11533   version_type=sunos
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   shlibpath_overrides_runpath=yes
11538   if test "$with_gnu_ld" = yes; then
11539     need_lib_prefix=no
11540   fi
11541   need_version=yes
11542   ;;
11543
11544 sysv4 | sysv4.3*)
11545   version_type=linux # correct to gnu/linux during the next big refactor
11546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547   soname_spec='${libname}${release}${shared_ext}$major'
11548   shlibpath_var=LD_LIBRARY_PATH
11549   case $host_vendor in
11550     sni)
11551       shlibpath_overrides_runpath=no
11552       need_lib_prefix=no
11553       runpath_var=LD_RUN_PATH
11554       ;;
11555     siemens)
11556       need_lib_prefix=no
11557       ;;
11558     motorola)
11559       need_lib_prefix=no
11560       need_version=no
11561       shlibpath_overrides_runpath=no
11562       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11563       ;;
11564   esac
11565   ;;
11566
11567 sysv4*MP*)
11568   if test -d /usr/nec ;then
11569     version_type=linux # correct to gnu/linux during the next big refactor
11570     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11571     soname_spec='$libname${shared_ext}.$major'
11572     shlibpath_var=LD_LIBRARY_PATH
11573   fi
11574   ;;
11575
11576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11577   version_type=freebsd-elf
11578   need_lib_prefix=no
11579   need_version=no
11580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11581   soname_spec='${libname}${release}${shared_ext}$major'
11582   shlibpath_var=LD_LIBRARY_PATH
11583   shlibpath_overrides_runpath=yes
11584   hardcode_into_libs=yes
11585   if test "$with_gnu_ld" = yes; then
11586     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11587   else
11588     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11589     case $host_os in
11590       sco3.2v5*)
11591         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11592         ;;
11593     esac
11594   fi
11595   sys_lib_dlsearch_path_spec='/usr/lib'
11596   ;;
11597
11598 tpf*)
11599   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11600   version_type=linux # correct to gnu/linux during the next big refactor
11601   need_lib_prefix=no
11602   need_version=no
11603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604   shlibpath_var=LD_LIBRARY_PATH
11605   shlibpath_overrides_runpath=no
11606   hardcode_into_libs=yes
11607   ;;
11608
11609 uts4*)
11610   version_type=linux # correct to gnu/linux during the next big refactor
11611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612   soname_spec='${libname}${release}${shared_ext}$major'
11613   shlibpath_var=LD_LIBRARY_PATH
11614   ;;
11615
11616 *)
11617   dynamic_linker=no
11618   ;;
11619 esac
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11621 $as_echo "$dynamic_linker" >&6; }
11622 test "$dynamic_linker" = no && can_build_shared=no
11623
11624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11625 if test "$GCC" = yes; then
11626   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11627 fi
11628
11629 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11630   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11631 fi
11632 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11633   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11634 fi
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11728 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11729 hardcode_action=
11730 if test -n "$hardcode_libdir_flag_spec" ||
11731    test -n "$runpath_var" ||
11732    test "X$hardcode_automatic" = "Xyes" ; then
11733
11734   # We can hardcode non-existent directories.
11735   if test "$hardcode_direct" != no &&
11736      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11737      # have to relink, otherwise we might link with an installed library
11738      # when we should be linking with a yet-to-be-installed one
11739      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11740      test "$hardcode_minus_L" != no; then
11741     # Linking always hardcodes the temporary library directory.
11742     hardcode_action=relink
11743   else
11744     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11745     hardcode_action=immediate
11746   fi
11747 else
11748   # We cannot hardcode anything, or else we can only hardcode existing
11749   # directories.
11750   hardcode_action=unsupported
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11753 $as_echo "$hardcode_action" >&6; }
11754
11755 if test "$hardcode_action" = relink ||
11756    test "$inherit_rpath" = yes; then
11757   # Fast installation is not supported
11758   enable_fast_install=no
11759 elif test "$shlibpath_overrides_runpath" = yes ||
11760      test "$enable_shared" = no; then
11761   # Fast installation is not necessary
11762   enable_fast_install=needless
11763 fi
11764
11765
11766
11767
11768
11769
11770   if test "x$enable_dlopen" != xyes; then
11771   enable_dlopen=unknown
11772   enable_dlopen_self=unknown
11773   enable_dlopen_self_static=unknown
11774 else
11775   lt_cv_dlopen=no
11776   lt_cv_dlopen_libs=
11777
11778   case $host_os in
11779   beos*)
11780     lt_cv_dlopen="load_add_on"
11781     lt_cv_dlopen_libs=
11782     lt_cv_dlopen_self=yes
11783     ;;
11784
11785   mingw* | pw32* | cegcc*)
11786     lt_cv_dlopen="LoadLibrary"
11787     lt_cv_dlopen_libs=
11788     ;;
11789
11790   cygwin*)
11791     lt_cv_dlopen="dlopen"
11792     lt_cv_dlopen_libs=
11793     ;;
11794
11795   darwin*)
11796   # if libdl is installed we need to link against it
11797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11799 if ${ac_cv_lib_dl_dlopen+:} false; then :
11800   $as_echo_n "(cached) " >&6
11801 else
11802   ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-ldl  $LIBS"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h.  */
11806
11807 /* Override any GCC internal prototype to avoid an error.
11808    Use char because int might match the return type of a GCC
11809    builtin and then its argument prototype would still apply.  */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 char dlopen ();
11814 int
11815 main ()
11816 {
11817 return dlopen ();
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823   ac_cv_lib_dl_dlopen=yes
11824 else
11825   ac_cv_lib_dl_dlopen=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext \
11828     conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11834   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11835 else
11836
11837     lt_cv_dlopen="dyld"
11838     lt_cv_dlopen_libs=
11839     lt_cv_dlopen_self=yes
11840
11841 fi
11842
11843     ;;
11844
11845   *)
11846     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11847 if test "x$ac_cv_func_shl_load" = xyes; then :
11848   lt_cv_dlopen="shl_load"
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11851 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11852 if ${ac_cv_lib_dld_shl_load+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-ldld  $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char shl_load ();
11867 int
11868 main ()
11869 {
11870 return shl_load ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876   ac_cv_lib_dld_shl_load=yes
11877 else
11878   ac_cv_lib_dld_shl_load=no
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881     conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11885 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11886 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11887   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11888 else
11889   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11890 if test "x$ac_cv_func_dlopen" = xyes; then :
11891   lt_cv_dlopen="dlopen"
11892 else
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11895 if ${ac_cv_lib_dl_dlopen+:} false; then :
11896   $as_echo_n "(cached) " >&6
11897 else
11898   ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldl  $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h.  */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904    Use char because int might match the return type of a GCC
11905    builtin and then its argument prototype would still apply.  */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dlopen ();
11910 int
11911 main ()
11912 {
11913 return dlopen ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919   ac_cv_lib_dl_dlopen=yes
11920 else
11921   ac_cv_lib_dl_dlopen=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924     conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11933 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11934 if ${ac_cv_lib_svld_dlopen+:} false; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lsvld  $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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 if ac_fn_c_try_link "$LINENO"; then :
11958   ac_cv_lib_svld_dlopen=yes
11959 else
11960   ac_cv_lib_svld_dlopen=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext \
11963     conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11967 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11968 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11970 else
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11972 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11973 if ${ac_cv_lib_dld_dld_link+:} false; then :
11974   $as_echo_n "(cached) " >&6
11975 else
11976   ac_check_lib_save_LIBS=$LIBS
11977 LIBS="-ldld  $LIBS"
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h.  */
11980
11981 /* Override any GCC internal prototype to avoid an error.
11982    Use char because int might match the return type of a GCC
11983    builtin and then its argument prototype would still apply.  */
11984 #ifdef __cplusplus
11985 extern "C"
11986 #endif
11987 char dld_link ();
11988 int
11989 main ()
11990 {
11991 return dld_link ();
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997   ac_cv_lib_dld_dld_link=yes
11998 else
11999   ac_cv_lib_dld_dld_link=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext \
12002     conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12006 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12007 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12008   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12009 fi
12010
12011
12012 fi
12013
12014
12015 fi
12016
12017
12018 fi
12019
12020
12021 fi
12022
12023
12024 fi
12025
12026     ;;
12027   esac
12028
12029   if test "x$lt_cv_dlopen" != xno; then
12030     enable_dlopen=yes
12031   else
12032     enable_dlopen=no
12033   fi
12034
12035   case $lt_cv_dlopen in
12036   dlopen)
12037     save_CPPFLAGS="$CPPFLAGS"
12038     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12039
12040     save_LDFLAGS="$LDFLAGS"
12041     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12042
12043     save_LIBS="$LIBS"
12044     LIBS="$lt_cv_dlopen_libs $LIBS"
12045
12046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12047 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12048 if ${lt_cv_dlopen_self+:} false; then :
12049   $as_echo_n "(cached) " >&6
12050 else
12051           if test "$cross_compiling" = yes; then :
12052   lt_cv_dlopen_self=cross
12053 else
12054   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12055   lt_status=$lt_dlunknown
12056   cat > conftest.$ac_ext <<_LT_EOF
12057 #line $LINENO "configure"
12058 #include "confdefs.h"
12059
12060 #if HAVE_DLFCN_H
12061 #include <dlfcn.h>
12062 #endif
12063
12064 #include <stdio.h>
12065
12066 #ifdef RTLD_GLOBAL
12067 #  define LT_DLGLOBAL           RTLD_GLOBAL
12068 #else
12069 #  ifdef DL_GLOBAL
12070 #    define LT_DLGLOBAL         DL_GLOBAL
12071 #  else
12072 #    define LT_DLGLOBAL         0
12073 #  endif
12074 #endif
12075
12076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12077    find out it does not work in some platform. */
12078 #ifndef LT_DLLAZY_OR_NOW
12079 #  ifdef RTLD_LAZY
12080 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12081 #  else
12082 #    ifdef DL_LAZY
12083 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12084 #    else
12085 #      ifdef RTLD_NOW
12086 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12087 #      else
12088 #        ifdef DL_NOW
12089 #          define LT_DLLAZY_OR_NOW      DL_NOW
12090 #        else
12091 #          define LT_DLLAZY_OR_NOW      0
12092 #        endif
12093 #      endif
12094 #    endif
12095 #  endif
12096 #endif
12097
12098 /* When -fvisbility=hidden is used, assume the code has been annotated
12099    correspondingly for the symbols needed.  */
12100 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12101 int fnord () __attribute__((visibility("default")));
12102 #endif
12103
12104 int fnord () { return 42; }
12105 int main ()
12106 {
12107   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12108   int status = $lt_dlunknown;
12109
12110   if (self)
12111     {
12112       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12113       else
12114         {
12115           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12116           else puts (dlerror ());
12117         }
12118       /* dlclose (self); */
12119     }
12120   else
12121     puts (dlerror ());
12122
12123   return status;
12124 }
12125 _LT_EOF
12126   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12127   (eval $ac_link) 2>&5
12128   ac_status=$?
12129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12131     (./conftest; exit; ) >&5 2>/dev/null
12132     lt_status=$?
12133     case x$lt_status in
12134       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12135       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12136       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12137     esac
12138   else :
12139     # compilation failed
12140     lt_cv_dlopen_self=no
12141   fi
12142 fi
12143 rm -fr conftest*
12144
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12148 $as_echo "$lt_cv_dlopen_self" >&6; }
12149
12150     if test "x$lt_cv_dlopen_self" = xyes; then
12151       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12152       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12153 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12154 if ${lt_cv_dlopen_self_static+:} false; then :
12155   $as_echo_n "(cached) " >&6
12156 else
12157           if test "$cross_compiling" = yes; then :
12158   lt_cv_dlopen_self_static=cross
12159 else
12160   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12161   lt_status=$lt_dlunknown
12162   cat > conftest.$ac_ext <<_LT_EOF
12163 #line $LINENO "configure"
12164 #include "confdefs.h"
12165
12166 #if HAVE_DLFCN_H
12167 #include <dlfcn.h>
12168 #endif
12169
12170 #include <stdio.h>
12171
12172 #ifdef RTLD_GLOBAL
12173 #  define LT_DLGLOBAL           RTLD_GLOBAL
12174 #else
12175 #  ifdef DL_GLOBAL
12176 #    define LT_DLGLOBAL         DL_GLOBAL
12177 #  else
12178 #    define LT_DLGLOBAL         0
12179 #  endif
12180 #endif
12181
12182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12183    find out it does not work in some platform. */
12184 #ifndef LT_DLLAZY_OR_NOW
12185 #  ifdef RTLD_LAZY
12186 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12187 #  else
12188 #    ifdef DL_LAZY
12189 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12190 #    else
12191 #      ifdef RTLD_NOW
12192 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12193 #      else
12194 #        ifdef DL_NOW
12195 #          define LT_DLLAZY_OR_NOW      DL_NOW
12196 #        else
12197 #          define LT_DLLAZY_OR_NOW      0
12198 #        endif
12199 #      endif
12200 #    endif
12201 #  endif
12202 #endif
12203
12204 /* When -fvisbility=hidden is used, assume the code has been annotated
12205    correspondingly for the symbols needed.  */
12206 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12207 int fnord () __attribute__((visibility("default")));
12208 #endif
12209
12210 int fnord () { return 42; }
12211 int main ()
12212 {
12213   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12214   int status = $lt_dlunknown;
12215
12216   if (self)
12217     {
12218       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12219       else
12220         {
12221           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12222           else puts (dlerror ());
12223         }
12224       /* dlclose (self); */
12225     }
12226   else
12227     puts (dlerror ());
12228
12229   return status;
12230 }
12231 _LT_EOF
12232   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12233   (eval $ac_link) 2>&5
12234   ac_status=$?
12235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12236   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12237     (./conftest; exit; ) >&5 2>/dev/null
12238     lt_status=$?
12239     case x$lt_status in
12240       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12241       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12242       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12243     esac
12244   else :
12245     # compilation failed
12246     lt_cv_dlopen_self_static=no
12247   fi
12248 fi
12249 rm -fr conftest*
12250
12251
12252 fi
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12254 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12255     fi
12256
12257     CPPFLAGS="$save_CPPFLAGS"
12258     LDFLAGS="$save_LDFLAGS"
12259     LIBS="$save_LIBS"
12260     ;;
12261   esac
12262
12263   case $lt_cv_dlopen_self in
12264   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12265   *) enable_dlopen_self=unknown ;;
12266   esac
12267
12268   case $lt_cv_dlopen_self_static in
12269   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12270   *) enable_dlopen_self_static=unknown ;;
12271   esac
12272 fi
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290 striplib=
12291 old_striplib=
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12293 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12294 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12295   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12296   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12298 $as_echo "yes" >&6; }
12299 else
12300 # FIXME - insert some real tests, host_os isn't really good enough
12301   case $host_os in
12302   darwin*)
12303     if test -n "$STRIP" ; then
12304       striplib="$STRIP -x"
12305       old_striplib="$STRIP -S"
12306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12307 $as_echo "yes" >&6; }
12308     else
12309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12311     fi
12312     ;;
12313   *)
12314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316     ;;
12317   esac
12318 fi
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331   # Report which library types will actually be built
12332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12333 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12335 $as_echo "$can_build_shared" >&6; }
12336
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12338 $as_echo_n "checking whether to build shared libraries... " >&6; }
12339   test "$can_build_shared" = "no" && enable_shared=no
12340
12341   # On AIX, shared libraries and static libraries use the same namespace, and
12342   # are all built from PIC.
12343   case $host_os in
12344   aix3*)
12345     test "$enable_shared" = yes && enable_static=no
12346     if test -n "$RANLIB"; then
12347       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12348       postinstall_cmds='$RANLIB $lib'
12349     fi
12350     ;;
12351
12352   aix[4-9]*)
12353     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12354       test "$enable_shared" = yes && enable_static=no
12355     fi
12356     ;;
12357   esac
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12359 $as_echo "$enable_shared" >&6; }
12360
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12362 $as_echo_n "checking whether to build static libraries... " >&6; }
12363   # Make sure either enable_shared or enable_static is yes.
12364   test "$enable_shared" = yes || enable_static=yes
12365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12366 $as_echo "$enable_static" >&6; }
12367
12368
12369
12370
12371 fi
12372 ac_ext=c
12373 ac_cpp='$CPP $CPPFLAGS'
12374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12377
12378 CC="$lt_save_CC"
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394         ac_config_commands="$ac_config_commands libtool"
12395
12396
12397
12398
12399 # Only expand once:
12400
12401
12402
12403 # Check whether --enable-optimization was given.
12404 if test "${enable_optimization+set}" = set; then :
12405   enableval=$enable_optimization;
12406         if (test "${enableval}" = "no"); then
12407                 CFLAGS="$CFLAGS -O0"
12408         fi
12409
12410 fi
12411
12412
12413 # Check whether --enable-debug was given.
12414 if test "${enable_debug+set}" = set; then :
12415   enableval=$enable_debug;
12416         if (test "${enableval}" = "yes" &&
12417                                 test "${ac_cv_prog_cc_g}" = "yes"); then
12418                 CFLAGS="$CFLAGS -g"
12419         fi
12420
12421 fi
12422
12423
12424 # Check whether --enable-test was given.
12425 if test "${enable_test+set}" = set; then :
12426   enableval=$enable_test; enable_test=${enableval}
12427 fi
12428
12429  if test "${enable_test}" = "yes"; then
12430   TEST_TRUE=
12431   TEST_FALSE='#'
12432 else
12433   TEST_TRUE='#'
12434   TEST_FALSE=
12435 fi
12436
12437
12438 # Check whether --enable-pie was given.
12439 if test "${enable_pie+set}" = set; then :
12440   enableval=$enable_pie;
12441         if (test "${enableval}" = "yes" &&
12442                                 test "${ac_cv_prog_cc_pie}" = "yes"); then
12443                 CFLAGS="$CFLAGS -fPIE"
12444                 LDFLAGS="$LDFLAGS -pie"
12445         fi
12446
12447 fi
12448
12449
12450 # Check whether --enable-threads was given.
12451 if test "${enable_threads+set}" = set; then :
12452   enableval=$enable_threads; enable_threads=${enableval}
12453 fi
12454
12455
12456 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12457 if test "x$ac_cv_func_signalfd" = xyes; then :
12458   dummy=yes
12459 else
12460   as_fn_error $? "signalfd support is required" "$LINENO" 5
12461 fi
12462
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12465 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12466 if ${ac_cv_lib_dl_dlopen+:} false; then :
12467   $as_echo_n "(cached) " >&6
12468 else
12469   ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-ldl  $LIBS"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h.  */
12473
12474 /* Override any GCC internal prototype to avoid an error.
12475    Use char because int might match the return type of a GCC
12476    builtin and then its argument prototype would still apply.  */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char dlopen ();
12481 int
12482 main ()
12483 {
12484 return dlopen ();
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"; then :
12490   ac_cv_lib_dl_dlopen=yes
12491 else
12492   ac_cv_lib_dl_dlopen=no
12493 fi
12494 rm -f core conftest.err conftest.$ac_objext \
12495     conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12497 fi
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12500 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12501   dummy=yes
12502 else
12503   as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12504 fi
12505
12506
12507
12508 pkg_failed=no
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12510 $as_echo_n "checking for GLIB... " >&6; }
12511
12512 if test -n "$GLIB_CFLAGS"; then
12513     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12514  elif test -n "$PKG_CONFIG"; then
12515     if test -n "$PKG_CONFIG" && \
12516     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12517   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12518   ac_status=$?
12519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520   test $ac_status = 0; }; then
12521   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12522                       test "x$?" != "x0" && pkg_failed=yes
12523 else
12524   pkg_failed=yes
12525 fi
12526  else
12527     pkg_failed=untried
12528 fi
12529 if test -n "$GLIB_LIBS"; then
12530     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12531  elif test -n "$PKG_CONFIG"; then
12532     if test -n "$PKG_CONFIG" && \
12533     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12534   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12535   ac_status=$?
12536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537   test $ac_status = 0; }; then
12538   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12539                       test "x$?" != "x0" && pkg_failed=yes
12540 else
12541   pkg_failed=yes
12542 fi
12543  else
12544     pkg_failed=untried
12545 fi
12546
12547
12548
12549 if test $pkg_failed = yes; then
12550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12552
12553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12554         _pkg_short_errors_supported=yes
12555 else
12556         _pkg_short_errors_supported=no
12557 fi
12558         if test $_pkg_short_errors_supported = yes; then
12559                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12560         else
12561                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12562         fi
12563         # Put the nasty error message in config.log where it belongs
12564         echo "$GLIB_PKG_ERRORS" >&5
12565
12566         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12567 elif test $pkg_failed = untried; then
12568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12570         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12571 else
12572         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12573         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12576         dummy=yes
12577 fi
12578
12579
12580
12581 if (test "${enable_threads}" = "yes"); then
12582
12583 $as_echo "#define NEED_THREADS 1" >>confdefs.h
12584
12585
12586 pkg_failed=no
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12588 $as_echo_n "checking for GTHREAD... " >&6; }
12589
12590 if test -n "$GTHREAD_CFLAGS"; then
12591     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12592  elif test -n "$PKG_CONFIG"; then
12593     if test -n "$PKG_CONFIG" && \
12594     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12595   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12596   ac_status=$?
12597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12598   test $ac_status = 0; }; then
12599   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
12600                       test "x$?" != "x0" && pkg_failed=yes
12601 else
12602   pkg_failed=yes
12603 fi
12604  else
12605     pkg_failed=untried
12606 fi
12607 if test -n "$GTHREAD_LIBS"; then
12608     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12609  elif test -n "$PKG_CONFIG"; then
12610     if test -n "$PKG_CONFIG" && \
12611     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12612   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12613   ac_status=$?
12614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615   test $ac_status = 0; }; then
12616   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
12617                       test "x$?" != "x0" && pkg_failed=yes
12618 else
12619   pkg_failed=yes
12620 fi
12621  else
12622     pkg_failed=untried
12623 fi
12624
12625
12626
12627 if test $pkg_failed = yes; then
12628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630
12631 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12632         _pkg_short_errors_supported=yes
12633 else
12634         _pkg_short_errors_supported=no
12635 fi
12636         if test $_pkg_short_errors_supported = yes; then
12637                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12638         else
12639                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12640         fi
12641         # Put the nasty error message in config.log where it belongs
12642         echo "$GTHREAD_PKG_ERRORS" >&5
12643
12644         as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12645 elif test $pkg_failed = untried; then
12646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648         as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12649 else
12650         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12651         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12653 $as_echo "yes" >&6; }
12654         dummy=yes
12655 fi
12656         GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
12657         GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
12658 fi
12659
12660
12661 pkg_failed=no
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12663 $as_echo_n "checking for DBUS... " >&6; }
12664
12665 if test -n "$DBUS_CFLAGS"; then
12666     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12667  elif test -n "$PKG_CONFIG"; then
12668     if test -n "$PKG_CONFIG" && \
12669     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12670   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12671   ac_status=$?
12672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673   test $ac_status = 0; }; then
12674   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12675                       test "x$?" != "x0" && pkg_failed=yes
12676 else
12677   pkg_failed=yes
12678 fi
12679  else
12680     pkg_failed=untried
12681 fi
12682 if test -n "$DBUS_LIBS"; then
12683     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12684  elif test -n "$PKG_CONFIG"; then
12685     if test -n "$PKG_CONFIG" && \
12686     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12687   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12688   ac_status=$?
12689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690   test $ac_status = 0; }; then
12691   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12692                       test "x$?" != "x0" && pkg_failed=yes
12693 else
12694   pkg_failed=yes
12695 fi
12696  else
12697     pkg_failed=untried
12698 fi
12699
12700
12701
12702 if test $pkg_failed = yes; then
12703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12705
12706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12707         _pkg_short_errors_supported=yes
12708 else
12709         _pkg_short_errors_supported=no
12710 fi
12711         if test $_pkg_short_errors_supported = yes; then
12712                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12713         else
12714                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12715         fi
12716         # Put the nasty error message in config.log where it belongs
12717         echo "$DBUS_PKG_ERRORS" >&5
12718
12719         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12720 elif test $pkg_failed = untried; then
12721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12724 else
12725         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12726         DBUS_LIBS=$pkg_cv_DBUS_LIBS
12727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12728 $as_echo "yes" >&6; }
12729         dummy=yes
12730 fi
12731
12732
12733
12734
12735 # Check whether --with-dbusconfdir was given.
12736 if test "${with_dbusconfdir+set}" = set; then :
12737   withval=$with_dbusconfdir; path_dbusconf=${withval}
12738 else
12739   path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
12740 fi
12741
12742 if (test -z "${path_dbusconf}"); then
12743         DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
12744 else
12745         DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
12746 fi
12747
12748
12749
12750 # Check whether --with-dbusdatadir was given.
12751 if test "${with_dbusdatadir+set}" = set; then :
12752   withval=$with_dbusdatadir; path_dbusdata=${withval}
12753 else
12754   path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
12755 fi
12756
12757 if (test -z "${path_dbusdata}"); then
12758         DBUS_DATADIR="${datadir}/dbus-1/system-services"
12759 else
12760         DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
12761 fi
12762
12763
12764
12765 # Check whether --with-systemdunitdir was given.
12766 if test "${with_systemdunitdir+set}" = set; then :
12767   withval=$with_systemdunitdir; path_systemdunit=${withval}
12768 else
12769   path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
12770 fi
12771
12772 if (test -n "${path_systemdunit}"); then
12773         SYSTEMD_UNITDIR="${path_systemdunit}"
12774
12775 fi
12776  if test -n "${path_systemdunit}"; then
12777   SYSTEMD_TRUE=
12778   SYSTEMD_FALSE='#'
12779 else
12780   SYSTEMD_TRUE='#'
12781   SYSTEMD_FALSE=
12782 fi
12783
12784
12785 # Check whether --enable-udev was given.
12786 if test "${enable_udev+set}" = set; then :
12787   enableval=$enable_udev; enable_udev=${enableval}
12788 fi
12789
12790 if (test "${enable_udev}" != "no"); then
12791
12792 pkg_failed=no
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
12794 $as_echo_n "checking for UDEV... " >&6; }
12795
12796 if test -n "$UDEV_CFLAGS"; then
12797     pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
12798  elif test -n "$PKG_CONFIG"; then
12799     if test -n "$PKG_CONFIG" && \
12800     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
12801   ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
12802   ac_status=$?
12803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12804   test $ac_status = 0; }; then
12805   pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
12806                       test "x$?" != "x0" && pkg_failed=yes
12807 else
12808   pkg_failed=yes
12809 fi
12810  else
12811     pkg_failed=untried
12812 fi
12813 if test -n "$UDEV_LIBS"; then
12814     pkg_cv_UDEV_LIBS="$UDEV_LIBS"
12815  elif test -n "$PKG_CONFIG"; then
12816     if test -n "$PKG_CONFIG" && \
12817     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
12818   ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
12819   ac_status=$?
12820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821   test $ac_status = 0; }; then
12822   pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
12823                       test "x$?" != "x0" && pkg_failed=yes
12824 else
12825   pkg_failed=yes
12826 fi
12827  else
12828     pkg_failed=untried
12829 fi
12830
12831
12832
12833 if test $pkg_failed = yes; then
12834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836
12837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12838         _pkg_short_errors_supported=yes
12839 else
12840         _pkg_short_errors_supported=no
12841 fi
12842         if test $_pkg_short_errors_supported = yes; then
12843                 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1`
12844         else
12845                 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
12846         fi
12847         # Put the nasty error message in config.log where it belongs
12848         echo "$UDEV_PKG_ERRORS" >&5
12849
12850         as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
12851 elif test $pkg_failed = untried; then
12852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854         as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
12855 else
12856         UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
12857         UDEV_LIBS=$pkg_cv_UDEV_LIBS
12858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12859 $as_echo "yes" >&6; }
12860         enable_udev="yes"
12861 fi
12862         UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`"
12863         if (test -z "${UDEV_DATADIR}"); then
12864                 UDEV_DATADIR="${sysconfdir}/udev/rules.d"
12865         else
12866                 UDEV_DATADIR="${UDEV_DATADIR}/rules.d"
12867         fi
12868
12869 fi
12870
12871
12872  if test "${enable_udev}" = "yes"; then
12873   UDEV_TRUE=
12874   UDEV_FALSE='#'
12875 else
12876   UDEV_TRUE='#'
12877   UDEV_FALSE=
12878 fi
12879
12880
12881 # Check whether --enable-tools was given.
12882 if test "${enable_tools+set}" = set; then :
12883   enableval=$enable_tools; enable_tools=${enableval}
12884 fi
12885
12886 if (test "${enable_tools}" = "yes"); then
12887
12888 pkg_failed=no
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
12890 $as_echo_n "checking for USB... " >&6; }
12891
12892 if test -n "$USB_CFLAGS"; then
12893     pkg_cv_USB_CFLAGS="$USB_CFLAGS"
12894  elif test -n "$PKG_CONFIG"; then
12895     if test -n "$PKG_CONFIG" && \
12896     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
12897   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
12898   ac_status=$?
12899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12900   test $ac_status = 0; }; then
12901   pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
12902                       test "x$?" != "x0" && pkg_failed=yes
12903 else
12904   pkg_failed=yes
12905 fi
12906  else
12907     pkg_failed=untried
12908 fi
12909 if test -n "$USB_LIBS"; then
12910     pkg_cv_USB_LIBS="$USB_LIBS"
12911  elif test -n "$PKG_CONFIG"; then
12912     if test -n "$PKG_CONFIG" && \
12913     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
12914   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
12915   ac_status=$?
12916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12917   test $ac_status = 0; }; then
12918   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
12919                       test "x$?" != "x0" && pkg_failed=yes
12920 else
12921   pkg_failed=yes
12922 fi
12923  else
12924     pkg_failed=untried
12925 fi
12926
12927
12928
12929 if test $pkg_failed = yes; then
12930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12932
12933 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12934         _pkg_short_errors_supported=yes
12935 else
12936         _pkg_short_errors_supported=no
12937 fi
12938         if test $_pkg_short_errors_supported = yes; then
12939                 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
12940         else
12941                 USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
12942         fi
12943         # Put the nasty error message in config.log where it belongs
12944         echo "$USB_PKG_ERRORS" >&5
12945
12946         as_fn_error $? "USB library is required" "$LINENO" 5
12947 elif test $pkg_failed = untried; then
12948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12950         as_fn_error $? "USB library is required" "$LINENO" 5
12951 else
12952         USB_CFLAGS=$pkg_cv_USB_CFLAGS
12953         USB_LIBS=$pkg_cv_USB_LIBS
12954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12955 $as_echo "yes" >&6; }
12956         dummy=yes
12957 fi
12958
12959
12960 fi
12961  if test "${enable_tools}" = "yes"; then
12962   TOOLS_TRUE=
12963   TOOLS_FALSE='#'
12964 else
12965   TOOLS_TRUE='#'
12966   TOOLS_FALSE=
12967 fi
12968
12969
12970 # Check whether --enable-dundee was given.
12971 if test "${enable_dundee+set}" = set; then :
12972   enableval=$enable_dundee; enable_dundee=${enableval}
12973 fi
12974
12975  if test "${enable_dundee}" = "yes"; then
12976   DUNDEE_TRUE=
12977   DUNDEE_FALSE='#'
12978 else
12979   DUNDEE_TRUE='#'
12980   DUNDEE_FALSE=
12981 fi
12982
12983
12984 # Check whether --enable-atmodem was given.
12985 if test "${enable_atmodem+set}" = set; then :
12986   enableval=$enable_atmodem; enable_atmodem=${enableval}
12987 fi
12988
12989  if test "${enable_atmodem}" != "no"; then
12990   ATMODEM_TRUE=
12991   ATMODEM_FALSE='#'
12992 else
12993   ATMODEM_TRUE='#'
12994   ATMODEM_FALSE=
12995 fi
12996
12997
12998 # Check whether --enable-cdmamodem was given.
12999 if test "${enable_cdmamodem+set}" = set; then :
13000   enableval=$enable_cdmamodem; enable_cdmamodem=${enableval}
13001 fi
13002
13003  if test "${enable_cdmamodem}" != "no"; then
13004   CDMAMODEM_TRUE=
13005   CDMAMODEM_FALSE='#'
13006 else
13007   CDMAMODEM_TRUE='#'
13008   CDMAMODEM_FALSE=
13009 fi
13010
13011
13012 # Check whether --enable-phonesim was given.
13013 if test "${enable_phonesim+set}" = set; then :
13014   enableval=$enable_phonesim; enable_phonesim=${enableval}
13015 fi
13016
13017  if test "${enable_phonesim}" != "no" &&
13018                                         test "${enable_atmodem}" != "no"; then
13019   PHONESIM_TRUE=
13020   PHONESIM_FALSE='#'
13021 else
13022   PHONESIM_TRUE='#'
13023   PHONESIM_FALSE=
13024 fi
13025
13026
13027 # Check whether --enable-isimodem was given.
13028 if test "${enable_isimodem+set}" = set; then :
13029   enableval=$enable_isimodem; enable_isimodem=${enableval}
13030 fi
13031
13032  if test "${enable_isimodem}" != "no"; then
13033   ISIMODEM_TRUE=
13034   ISIMODEM_FALSE='#'
13035 else
13036   ISIMODEM_TRUE='#'
13037   ISIMODEM_FALSE=
13038 fi
13039
13040
13041 # Check whether --enable-qmimodem was given.
13042 if test "${enable_qmimodem+set}" = set; then :
13043   enableval=$enable_qmimodem; enable_qmimodem=${enableval}
13044 fi
13045
13046  if test "${enable_qmimodem}" != "no"; then
13047   QMIMODEM_TRUE=
13048   QMIMODEM_FALSE='#'
13049 else
13050   QMIMODEM_TRUE='#'
13051   QMIMODEM_FALSE=
13052 fi
13053
13054
13055 # Check whether --enable-bluetooth was given.
13056 if test "${enable_bluetooth+set}" = set; then :
13057   enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13058 fi
13059
13060 if (test "${enable_bluetooth}" != "no"); then
13061
13062 pkg_failed=no
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
13064 $as_echo_n "checking for BLUEZ... " >&6; }
13065
13066 if test -n "$BLUEZ_CFLAGS"; then
13067     pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
13068  elif test -n "$PKG_CONFIG"; then
13069     if test -n "$PKG_CONFIG" && \
13070     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.99\""; } >&5
13071   ($PKG_CONFIG --exists --print-errors "bluez >= 4.99") 2>&5
13072   ac_status=$?
13073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074   test $ac_status = 0; }; then
13075   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez >= 4.99" 2>/dev/null`
13076                       test "x$?" != "x0" && pkg_failed=yes
13077 else
13078   pkg_failed=yes
13079 fi
13080  else
13081     pkg_failed=untried
13082 fi
13083 if test -n "$BLUEZ_LIBS"; then
13084     pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
13085  elif test -n "$PKG_CONFIG"; then
13086     if test -n "$PKG_CONFIG" && \
13087     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.99\""; } >&5
13088   ($PKG_CONFIG --exists --print-errors "bluez >= 4.99") 2>&5
13089   ac_status=$?
13090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091   test $ac_status = 0; }; then
13092   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez >= 4.99" 2>/dev/null`
13093                       test "x$?" != "x0" && pkg_failed=yes
13094 else
13095   pkg_failed=yes
13096 fi
13097  else
13098     pkg_failed=untried
13099 fi
13100
13101
13102
13103 if test $pkg_failed = yes; then
13104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106
13107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13108         _pkg_short_errors_supported=yes
13109 else
13110         _pkg_short_errors_supported=no
13111 fi
13112         if test $_pkg_short_errors_supported = yes; then
13113                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez >= 4.99" 2>&1`
13114         else
13115                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez >= 4.99" 2>&1`
13116         fi
13117         # Put the nasty error message in config.log where it belongs
13118         echo "$BLUEZ_PKG_ERRORS" >&5
13119
13120         as_fn_error $? "Bluetooth library >= 4.99 is required" "$LINENO" 5
13121 elif test $pkg_failed = untried; then
13122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13124         as_fn_error $? "Bluetooth library >= 4.99 is required" "$LINENO" 5
13125 else
13126         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
13127         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
13128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13129 $as_echo "yes" >&6; }
13130         dummy=yes
13131 fi
13132 fi
13133
13134
13135  if test "${enable_bluetooth}" != "no"; then
13136   BLUETOOTH_TRUE=
13137   BLUETOOTH_FALSE='#'
13138 else
13139   BLUETOOTH_TRUE='#'
13140   BLUETOOTH_FALSE=
13141 fi
13142
13143
13144
13145 # Check whether --with-provisiondb was given.
13146 if test "${with_provisiondb+set}" = set; then :
13147   withval=$with_provisiondb; path_provisiondb=${withval}
13148 fi
13149
13150
13151 # Check whether --enable-provision was given.
13152 if test "${enable_provision+set}" = set; then :
13153   enableval=$enable_provision; enable_provision=${enableval}
13154 fi
13155
13156 if (test "${enable_provision}" != "no"); then
13157         if (test -n "${path_provisiondb}"); then
13158
13159 cat >>confdefs.h <<_ACEOF
13160 #define PROVIDER_DATABASE "${path_provisiondb}"
13161 _ACEOF
13162
13163         else
13164                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mobile-broadband-provider-info" >&5
13165 $as_echo_n "checking for mobile-broadband-provider-info... " >&6; }
13166                 if test -n "$PKG_CONFIG" && \
13167     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\""; } >&5
13168   ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13169   ac_status=$?
13170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171   test $ac_status = 0; }; then
13172   if test -n "$PROVIDER_DATABASE"; then
13173     pkg_cv_PROVIDER_DATABASE="$PROVIDER_DATABASE"
13174  elif test -n "$PKG_CONFIG"; then
13175     if test -n "$PKG_CONFIG" && \
13176     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\""; } >&5
13177   ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13178   ac_status=$?
13179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180   test $ac_status = 0; }; then
13181   pkg_cv_PROVIDER_DATABASE=`$PKG_CONFIG --variable=database "mobile-broadband-provider-info" 2>/dev/null`
13182                       test "x$?" != "x0" && pkg_failed=yes
13183 else
13184   pkg_failed=yes
13185 fi
13186  else
13187     pkg_failed=untried
13188 fi
13189
13190 cat >>confdefs.h <<_ACEOF
13191 #define PROVIDER_DATABASE "$pkg_cv_PROVIDER_DATABASE"
13192 _ACEOF
13193
13194                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13195 $as_echo "yes" >&6; }
13196 else
13197   as_fn_error $? "Mobile broadband provider database is required" "$LINENO" 5
13198 fi
13199         fi
13200 fi
13201  if test "${enable_provision}" != "no"; then
13202   PROVISION_TRUE=
13203   PROVISION_FALSE='#'
13204 else
13205   PROVISION_TRUE='#'
13206   PROVISION_FALSE=
13207 fi
13208
13209
13210 # Check whether --enable-datafiles was given.
13211 if test "${enable_datafiles+set}" = set; then :
13212   enableval=$enable_datafiles; enable_datafiles=${enableval}
13213 fi
13214
13215  if test "${enable_datafiles}" != "no"; then
13216   DATAFILES_TRUE=
13217   DATAFILES_FALSE='#'
13218 else
13219   DATAFILES_TRUE='#'
13220   DATAFILES_FALSE=
13221 fi
13222
13223
13224 if (test "${prefix}" = "NONE"); then
13225                 if (test "$localstatedir" = '${prefix}/var'); then
13226                 localstatedir='/var'
13227
13228         fi
13229
13230         prefix="${ac_default_prefix}"
13231 fi
13232
13233 if (test "$localstatedir" = '${prefix}/var'); then
13234         storagedir="${prefix}/var/lib/ofono"
13235 else
13236         storagedir="${localstatedir}/lib/ofono"
13237 fi
13238
13239 cat >>confdefs.h <<_ACEOF
13240 #define STORAGEDIR "${storagedir}"
13241 _ACEOF
13242
13243
13244 if (test "$sysconfdir" = '${prefix}/etc'); then
13245         configdir="${prefix}/etc/ofono"
13246 else
13247         configdir="${sysconfdir}/ofono"
13248 fi
13249
13250 cat >>confdefs.h <<_ACEOF
13251 #define CONFIGDIR "${configdir}"
13252 _ACEOF
13253
13254
13255 ac_config_files="$ac_config_files Makefile include/version.h src/ofono.service ofono.pc dundee/dundee.service"
13256
13257 cat >confcache <<\_ACEOF
13258 # This file is a shell script that caches the results of configure
13259 # tests run on this system so they can be shared between configure
13260 # scripts and configure runs, see configure's option --config-cache.
13261 # It is not useful on other systems.  If it contains results you don't
13262 # want to keep, you may remove or edit it.
13263 #
13264 # config.status only pays attention to the cache file if you give it
13265 # the --recheck option to rerun configure.
13266 #
13267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13269 # following values.
13270
13271 _ACEOF
13272
13273 # The following way of writing the cache mishandles newlines in values,
13274 # but we know of no workaround that is simple, portable, and efficient.
13275 # So, we kill variables containing newlines.
13276 # Ultrix sh set writes to stderr and can't be redirected directly,
13277 # and sets the high bit in the cache file unless we assign to the vars.
13278 (
13279   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13280     eval ac_val=\$$ac_var
13281     case $ac_val in #(
13282     *${as_nl}*)
13283       case $ac_var in #(
13284       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13286       esac
13287       case $ac_var in #(
13288       _ | IFS | as_nl) ;; #(
13289       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13290       *) { eval $ac_var=; unset $ac_var;} ;;
13291       esac ;;
13292     esac
13293   done
13294
13295   (set) 2>&1 |
13296     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13297     *${as_nl}ac_space=\ *)
13298       # `set' does not quote correctly, so add quotes: double-quote
13299       # substitution turns \\\\ into \\, and sed turns \\ into \.
13300       sed -n \
13301         "s/'/'\\\\''/g;
13302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13303       ;; #(
13304     *)
13305       # `set' quotes correctly as required by POSIX, so do not add quotes.
13306       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13307       ;;
13308     esac |
13309     sort
13310 ) |
13311   sed '
13312      /^ac_cv_env_/b end
13313      t clear
13314      :clear
13315      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13316      t end
13317      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13318      :end' >>confcache
13319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13320   if test -w "$cache_file"; then
13321     if test "x$cache_file" != "x/dev/null"; then
13322       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13323 $as_echo "$as_me: updating cache $cache_file" >&6;}
13324       if test ! -f "$cache_file" || test -h "$cache_file"; then
13325         cat confcache >"$cache_file"
13326       else
13327         case $cache_file in #(
13328         */* | ?:*)
13329           mv -f confcache "$cache_file"$$ &&
13330           mv -f "$cache_file"$$ "$cache_file" ;; #(
13331         *)
13332           mv -f confcache "$cache_file" ;;
13333         esac
13334       fi
13335     fi
13336   else
13337     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13338 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13339   fi
13340 fi
13341 rm -f confcache
13342
13343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13344 # Let make expand exec_prefix.
13345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13346
13347 DEFS=-DHAVE_CONFIG_H
13348
13349 ac_libobjs=
13350 ac_ltlibobjs=
13351 U=
13352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13353   # 1. Remove the extension, and $U if already installed.
13354   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13355   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13356   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13357   #    will be set to the directory where LIBOBJS objects are built.
13358   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13359   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13360 done
13361 LIBOBJS=$ac_libobjs
13362
13363 LTLIBOBJS=$ac_ltlibobjs
13364
13365
13366  if test -n "$EXEEXT"; then
13367   am__EXEEXT_TRUE=
13368   am__EXEEXT_FALSE='#'
13369 else
13370   am__EXEEXT_TRUE='#'
13371   am__EXEEXT_FALSE=
13372 fi
13373
13374 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13375   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13377 fi
13378 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13379   as_fn_error $? "conditional \"AMDEP\" was never defined.
13380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13381 fi
13382 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13383   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13385 fi
13386 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13387   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13389 fi
13390 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13391   as_fn_error $? "conditional \"TEST\" was never defined.
13392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13393 fi
13394 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13395   as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13397 fi
13398 if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
13399   as_fn_error $? "conditional \"UDEV\" was never defined.
13400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13401 fi
13402 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13403   as_fn_error $? "conditional \"TOOLS\" was never defined.
13404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13405 fi
13406 if test -z "${DUNDEE_TRUE}" && test -z "${DUNDEE_FALSE}"; then
13407   as_fn_error $? "conditional \"DUNDEE\" was never defined.
13408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13409 fi
13410 if test -z "${ATMODEM_TRUE}" && test -z "${ATMODEM_FALSE}"; then
13411   as_fn_error $? "conditional \"ATMODEM\" was never defined.
13412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13413 fi
13414 if test -z "${CDMAMODEM_TRUE}" && test -z "${CDMAMODEM_FALSE}"; then
13415   as_fn_error $? "conditional \"CDMAMODEM\" was never defined.
13416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13417 fi
13418 if test -z "${PHONESIM_TRUE}" && test -z "${PHONESIM_FALSE}"; then
13419   as_fn_error $? "conditional \"PHONESIM\" was never defined.
13420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13421 fi
13422 if test -z "${ISIMODEM_TRUE}" && test -z "${ISIMODEM_FALSE}"; then
13423   as_fn_error $? "conditional \"ISIMODEM\" was never defined.
13424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13425 fi
13426 if test -z "${QMIMODEM_TRUE}" && test -z "${QMIMODEM_FALSE}"; then
13427   as_fn_error $? "conditional \"QMIMODEM\" was never defined.
13428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13429 fi
13430 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13431   as_fn_error $? "conditional \"BLUETOOTH\" was never defined.
13432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13433 fi
13434 if test -z "${PROVISION_TRUE}" && test -z "${PROVISION_FALSE}"; then
13435   as_fn_error $? "conditional \"PROVISION\" was never defined.
13436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13437 fi
13438 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13439   as_fn_error $? "conditional \"DATAFILES\" was never defined.
13440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13441 fi
13442
13443 : "${CONFIG_STATUS=./config.status}"
13444 ac_write_fail=0
13445 ac_clean_files_save=$ac_clean_files
13446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13448 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13449 as_write_fail=0
13450 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13451 #! $SHELL
13452 # Generated by $as_me.
13453 # Run this file to recreate the current configuration.
13454 # Compiler output produced by configure, useful for debugging
13455 # configure, is in config.log if it exists.
13456
13457 debug=false
13458 ac_cs_recheck=false
13459 ac_cs_silent=false
13460
13461 SHELL=\${CONFIG_SHELL-$SHELL}
13462 export SHELL
13463 _ASEOF
13464 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13465 ## -------------------- ##
13466 ## M4sh Initialization. ##
13467 ## -------------------- ##
13468
13469 # Be more Bourne compatible
13470 DUALCASE=1; export DUALCASE # for MKS sh
13471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13472   emulate sh
13473   NULLCMD=:
13474   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13475   # is contrary to our usage.  Disable this feature.
13476   alias -g '${1+"$@"}'='"$@"'
13477   setopt NO_GLOB_SUBST
13478 else
13479   case `(set -o) 2>/dev/null` in #(
13480   *posix*) :
13481     set -o posix ;; #(
13482   *) :
13483      ;;
13484 esac
13485 fi
13486
13487
13488 as_nl='
13489 '
13490 export as_nl
13491 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13492 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13495 # Prefer a ksh shell builtin over an external printf program on Solaris,
13496 # but without wasting forks for bash or zsh.
13497 if test -z "$BASH_VERSION$ZSH_VERSION" \
13498     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13499   as_echo='print -r --'
13500   as_echo_n='print -rn --'
13501 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13502   as_echo='printf %s\n'
13503   as_echo_n='printf %s'
13504 else
13505   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13506     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13507     as_echo_n='/usr/ucb/echo -n'
13508   else
13509     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13510     as_echo_n_body='eval
13511       arg=$1;
13512       case $arg in #(
13513       *"$as_nl"*)
13514         expr "X$arg" : "X\\(.*\\)$as_nl";
13515         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13516       esac;
13517       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13518     '
13519     export as_echo_n_body
13520     as_echo_n='sh -c $as_echo_n_body as_echo'
13521   fi
13522   export as_echo_body
13523   as_echo='sh -c $as_echo_body as_echo'
13524 fi
13525
13526 # The user is always right.
13527 if test "${PATH_SEPARATOR+set}" != set; then
13528   PATH_SEPARATOR=:
13529   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13530     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13531       PATH_SEPARATOR=';'
13532   }
13533 fi
13534
13535
13536 # IFS
13537 # We need space, tab and new line, in precisely that order.  Quoting is
13538 # there to prevent editors from complaining about space-tab.
13539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13540 # splitting by setting IFS to empty value.)
13541 IFS=" ""        $as_nl"
13542
13543 # Find who we are.  Look in the path if we contain no directory separator.
13544 as_myself=
13545 case $0 in #((
13546   *[\\/]* ) as_myself=$0 ;;
13547   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13548 for as_dir in $PATH
13549 do
13550   IFS=$as_save_IFS
13551   test -z "$as_dir" && as_dir=.
13552     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13553   done
13554 IFS=$as_save_IFS
13555
13556      ;;
13557 esac
13558 # We did not find ourselves, most probably we were run as `sh COMMAND'
13559 # in which case we are not to be found in the path.
13560 if test "x$as_myself" = x; then
13561   as_myself=$0
13562 fi
13563 if test ! -f "$as_myself"; then
13564   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13565   exit 1
13566 fi
13567
13568 # Unset variables that we do not need and which cause bugs (e.g. in
13569 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13570 # suppresses any "Segmentation fault" message there.  '((' could
13571 # trigger a bug in pdksh 5.2.14.
13572 for as_var in BASH_ENV ENV MAIL MAILPATH
13573 do eval test x\${$as_var+set} = xset \
13574   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13575 done
13576 PS1='$ '
13577 PS2='> '
13578 PS4='+ '
13579
13580 # NLS nuisances.
13581 LC_ALL=C
13582 export LC_ALL
13583 LANGUAGE=C
13584 export LANGUAGE
13585
13586 # CDPATH.
13587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13588
13589
13590 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13591 # ----------------------------------------
13592 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13593 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13594 # script with STATUS, using 1 if that was 0.
13595 as_fn_error ()
13596 {
13597   as_status=$1; test $as_status -eq 0 && as_status=1
13598   if test "$4"; then
13599     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13600     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13601   fi
13602   $as_echo "$as_me: error: $2" >&2
13603   as_fn_exit $as_status
13604 } # as_fn_error
13605
13606
13607 # as_fn_set_status STATUS
13608 # -----------------------
13609 # Set $? to STATUS, without forking.
13610 as_fn_set_status ()
13611 {
13612   return $1
13613 } # as_fn_set_status
13614
13615 # as_fn_exit STATUS
13616 # -----------------
13617 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13618 as_fn_exit ()
13619 {
13620   set +e
13621   as_fn_set_status $1
13622   exit $1
13623 } # as_fn_exit
13624
13625 # as_fn_unset VAR
13626 # ---------------
13627 # Portably unset VAR.
13628 as_fn_unset ()
13629 {
13630   { eval $1=; unset $1;}
13631 }
13632 as_unset=as_fn_unset
13633 # as_fn_append VAR VALUE
13634 # ----------------------
13635 # Append the text in VALUE to the end of the definition contained in VAR. Take
13636 # advantage of any shell optimizations that allow amortized linear growth over
13637 # repeated appends, instead of the typical quadratic growth present in naive
13638 # implementations.
13639 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13640   eval 'as_fn_append ()
13641   {
13642     eval $1+=\$2
13643   }'
13644 else
13645   as_fn_append ()
13646   {
13647     eval $1=\$$1\$2
13648   }
13649 fi # as_fn_append
13650
13651 # as_fn_arith ARG...
13652 # ------------------
13653 # Perform arithmetic evaluation on the ARGs, and store the result in the
13654 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13655 # must be portable across $(()) and expr.
13656 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13657   eval 'as_fn_arith ()
13658   {
13659     as_val=$(( $* ))
13660   }'
13661 else
13662   as_fn_arith ()
13663   {
13664     as_val=`expr "$@" || test $? -eq 1`
13665   }
13666 fi # as_fn_arith
13667
13668
13669 if expr a : '\(a\)' >/dev/null 2>&1 &&
13670    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13671   as_expr=expr
13672 else
13673   as_expr=false
13674 fi
13675
13676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13677   as_basename=basename
13678 else
13679   as_basename=false
13680 fi
13681
13682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13683   as_dirname=dirname
13684 else
13685   as_dirname=false
13686 fi
13687
13688 as_me=`$as_basename -- "$0" ||
13689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13690          X"$0" : 'X\(//\)$' \| \
13691          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13692 $as_echo X/"$0" |
13693     sed '/^.*\/\([^/][^/]*\)\/*$/{
13694             s//\1/
13695             q
13696           }
13697           /^X\/\(\/\/\)$/{
13698             s//\1/
13699             q
13700           }
13701           /^X\/\(\/\).*/{
13702             s//\1/
13703             q
13704           }
13705           s/.*/./; q'`
13706
13707 # Avoid depending upon Character Ranges.
13708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13711 as_cr_digits='0123456789'
13712 as_cr_alnum=$as_cr_Letters$as_cr_digits
13713
13714 ECHO_C= ECHO_N= ECHO_T=
13715 case `echo -n x` in #(((((
13716 -n*)
13717   case `echo 'xy\c'` in
13718   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13719   xy)  ECHO_C='\c';;
13720   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13721        ECHO_T=' ';;
13722   esac;;
13723 *)
13724   ECHO_N='-n';;
13725 esac
13726
13727 rm -f conf$$ conf$$.exe conf$$.file
13728 if test -d conf$$.dir; then
13729   rm -f conf$$.dir/conf$$.file
13730 else
13731   rm -f conf$$.dir
13732   mkdir conf$$.dir 2>/dev/null
13733 fi
13734 if (echo >conf$$.file) 2>/dev/null; then
13735   if ln -s conf$$.file conf$$ 2>/dev/null; then
13736     as_ln_s='ln -s'
13737     # ... but there are two gotchas:
13738     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13739     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13740     # In both cases, we have to default to `cp -pR'.
13741     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13742       as_ln_s='cp -pR'
13743   elif ln conf$$.file conf$$ 2>/dev/null; then
13744     as_ln_s=ln
13745   else
13746     as_ln_s='cp -pR'
13747   fi
13748 else
13749   as_ln_s='cp -pR'
13750 fi
13751 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13752 rmdir conf$$.dir 2>/dev/null
13753
13754
13755 # as_fn_mkdir_p
13756 # -------------
13757 # Create "$as_dir" as a directory, including parents if necessary.
13758 as_fn_mkdir_p ()
13759 {
13760
13761   case $as_dir in #(
13762   -*) as_dir=./$as_dir;;
13763   esac
13764   test -d "$as_dir" || eval $as_mkdir_p || {
13765     as_dirs=
13766     while :; do
13767       case $as_dir in #(
13768       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13769       *) as_qdir=$as_dir;;
13770       esac
13771       as_dirs="'$as_qdir' $as_dirs"
13772       as_dir=`$as_dirname -- "$as_dir" ||
13773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13774          X"$as_dir" : 'X\(//\)[^/]' \| \
13775          X"$as_dir" : 'X\(//\)$' \| \
13776          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13777 $as_echo X"$as_dir" |
13778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13779             s//\1/
13780             q
13781           }
13782           /^X\(\/\/\)[^/].*/{
13783             s//\1/
13784             q
13785           }
13786           /^X\(\/\/\)$/{
13787             s//\1/
13788             q
13789           }
13790           /^X\(\/\).*/{
13791             s//\1/
13792             q
13793           }
13794           s/.*/./; q'`
13795       test -d "$as_dir" && break
13796     done
13797     test -z "$as_dirs" || eval "mkdir $as_dirs"
13798   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13799
13800
13801 } # as_fn_mkdir_p
13802 if mkdir -p . 2>/dev/null; then
13803   as_mkdir_p='mkdir -p "$as_dir"'
13804 else
13805   test -d ./-p && rmdir ./-p
13806   as_mkdir_p=false
13807 fi
13808
13809
13810 # as_fn_executable_p FILE
13811 # -----------------------
13812 # Test if FILE is an executable regular file.
13813 as_fn_executable_p ()
13814 {
13815   test -f "$1" && test -x "$1"
13816 } # as_fn_executable_p
13817 as_test_x='test -x'
13818 as_executable_p=as_fn_executable_p
13819
13820 # Sed expression to map a string onto a valid CPP name.
13821 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13822
13823 # Sed expression to map a string onto a valid variable name.
13824 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13825
13826
13827 exec 6>&1
13828 ## ----------------------------------- ##
13829 ## Main body of $CONFIG_STATUS script. ##
13830 ## ----------------------------------- ##
13831 _ASEOF
13832 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13833
13834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13835 # Save the log message, to keep $0 and so on meaningful, and to
13836 # report actual input values of CONFIG_FILES etc. instead of their
13837 # values after options handling.
13838 ac_log="
13839 This file was extended by ofono $as_me 1.8, which was
13840 generated by GNU Autoconf 2.69.  Invocation command line was
13841
13842   CONFIG_FILES    = $CONFIG_FILES
13843   CONFIG_HEADERS  = $CONFIG_HEADERS
13844   CONFIG_LINKS    = $CONFIG_LINKS
13845   CONFIG_COMMANDS = $CONFIG_COMMANDS
13846   $ $0 $@
13847
13848 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13849 "
13850
13851 _ACEOF
13852
13853 case $ac_config_files in *"
13854 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13855 esac
13856
13857 case $ac_config_headers in *"
13858 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13859 esac
13860
13861
13862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863 # Files that config.status was made for.
13864 config_files="$ac_config_files"
13865 config_headers="$ac_config_headers"
13866 config_commands="$ac_config_commands"
13867
13868 _ACEOF
13869
13870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13871 ac_cs_usage="\
13872 \`$as_me' instantiates files and other configuration actions
13873 from templates according to the current configuration.  Unless the files
13874 and actions are specified as TAGs, all are instantiated by default.
13875
13876 Usage: $0 [OPTION]... [TAG]...
13877
13878   -h, --help       print this help, then exit
13879   -V, --version    print version number and configuration settings, then exit
13880       --config     print configuration, then exit
13881   -q, --quiet, --silent
13882                    do not print progress messages
13883   -d, --debug      don't remove temporary files
13884       --recheck    update $as_me by reconfiguring in the same conditions
13885       --file=FILE[:TEMPLATE]
13886                    instantiate the configuration file FILE
13887       --header=FILE[:TEMPLATE]
13888                    instantiate the configuration header FILE
13889
13890 Configuration files:
13891 $config_files
13892
13893 Configuration headers:
13894 $config_headers
13895
13896 Configuration commands:
13897 $config_commands
13898
13899 Report bugs to the package provider."
13900
13901 _ACEOF
13902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13903 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13904 ac_cs_version="\\
13905 ofono config.status 1.8
13906 configured by $0, generated by GNU Autoconf 2.69,
13907   with options \\"\$ac_cs_config\\"
13908
13909 Copyright (C) 2012 Free Software Foundation, Inc.
13910 This config.status script is free software; the Free Software Foundation
13911 gives unlimited permission to copy, distribute and modify it."
13912
13913 ac_pwd='$ac_pwd'
13914 srcdir='$srcdir'
13915 INSTALL='$INSTALL'
13916 MKDIR_P='$MKDIR_P'
13917 AWK='$AWK'
13918 test -n "\$AWK" || AWK=awk
13919 _ACEOF
13920
13921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13922 # The default lists apply if the user does not specify any file.
13923 ac_need_defaults=:
13924 while test $# != 0
13925 do
13926   case $1 in
13927   --*=?*)
13928     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13929     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13930     ac_shift=:
13931     ;;
13932   --*=)
13933     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13934     ac_optarg=
13935     ac_shift=:
13936     ;;
13937   *)
13938     ac_option=$1
13939     ac_optarg=$2
13940     ac_shift=shift
13941     ;;
13942   esac
13943
13944   case $ac_option in
13945   # Handling of the options.
13946   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13947     ac_cs_recheck=: ;;
13948   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13949     $as_echo "$ac_cs_version"; exit ;;
13950   --config | --confi | --conf | --con | --co | --c )
13951     $as_echo "$ac_cs_config"; exit ;;
13952   --debug | --debu | --deb | --de | --d | -d )
13953     debug=: ;;
13954   --file | --fil | --fi | --f )
13955     $ac_shift
13956     case $ac_optarg in
13957     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13958     '') as_fn_error $? "missing file argument" ;;
13959     esac
13960     as_fn_append CONFIG_FILES " '$ac_optarg'"
13961     ac_need_defaults=false;;
13962   --header | --heade | --head | --hea )
13963     $ac_shift
13964     case $ac_optarg in
13965     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13966     esac
13967     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13968     ac_need_defaults=false;;
13969   --he | --h)
13970     # Conflict between --help and --header
13971     as_fn_error $? "ambiguous option: \`$1'
13972 Try \`$0 --help' for more information.";;
13973   --help | --hel | -h )
13974     $as_echo "$ac_cs_usage"; exit ;;
13975   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13976   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13977     ac_cs_silent=: ;;
13978
13979   # This is an error.
13980   -*) as_fn_error $? "unrecognized option: \`$1'
13981 Try \`$0 --help' for more information." ;;
13982
13983   *) as_fn_append ac_config_targets " $1"
13984      ac_need_defaults=false ;;
13985
13986   esac
13987   shift
13988 done
13989
13990 ac_configure_extra_args=
13991
13992 if $ac_cs_silent; then
13993   exec 6>/dev/null
13994   ac_configure_extra_args="$ac_configure_extra_args --silent"
13995 fi
13996
13997 _ACEOF
13998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13999 if \$ac_cs_recheck; then
14000   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14001   shift
14002   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14003   CONFIG_SHELL='$SHELL'
14004   export CONFIG_SHELL
14005   exec "\$@"
14006 fi
14007
14008 _ACEOF
14009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 exec 5>>config.log
14011 {
14012   echo
14013   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14014 ## Running $as_me. ##
14015 _ASBOX
14016   $as_echo "$ac_log"
14017 } >&5
14018
14019 _ACEOF
14020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021 #
14022 # INIT-COMMANDS
14023 #
14024 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14025
14026
14027 # The HP-UX ksh and POSIX shell print the target directory to stdout
14028 # if CDPATH is set.
14029 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14030
14031 sed_quote_subst='$sed_quote_subst'
14032 double_quote_subst='$double_quote_subst'
14033 delay_variable_subst='$delay_variable_subst'
14034 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14035 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14036 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14037 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14038 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14039 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14040 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14041 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14042 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14043 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14044 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14045 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14046 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14047 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14048 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14049 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14050 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14051 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14052 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14053 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14054 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14055 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14056 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14057 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14058 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14059 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14060 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14061 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14062 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14063 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14064 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14065 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14066 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14067 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14068 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14069 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14070 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14071 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14072 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14073 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14074 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14075 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14076 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14077 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14078 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14079 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14080 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14081 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14082 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14083 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14084 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14085 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14086 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14087 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14088 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14089 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14091 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14092 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14093 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14094 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14095 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14096 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14097 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14098 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14099 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14100 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14101 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14102 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14103 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14104 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14105 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14106 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14107 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14108 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14109 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14110 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14111 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14112 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14113 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14114 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14115 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14116 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14117 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14118 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14119 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14120 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14121 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14122 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14123 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14124 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14125 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14126 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14127 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14128 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14129 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14130 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14131 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14132 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14133 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14134 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14135 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14136 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14137 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14138 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14139 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14140 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14141 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14142 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14143 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14144 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14145 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14146 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14147 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14148 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14149 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14150 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14151 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14152 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14153 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14154 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14155 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14156 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14157 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14158 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14159 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14160 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14161 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14162 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14163 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14164
14165 LTCC='$LTCC'
14166 LTCFLAGS='$LTCFLAGS'
14167 compiler='$compiler_DEFAULT'
14168
14169 # A function that is used when there is no print builtin or printf.
14170 func_fallback_echo ()
14171 {
14172   eval 'cat <<_LTECHO_EOF
14173 \$1
14174 _LTECHO_EOF'
14175 }
14176
14177 # Quote evaled strings.
14178 for var in SHELL \
14179 ECHO \
14180 PATH_SEPARATOR \
14181 SED \
14182 GREP \
14183 EGREP \
14184 FGREP \
14185 LD \
14186 NM \
14187 LN_S \
14188 lt_SP2NL \
14189 lt_NL2SP \
14190 reload_flag \
14191 OBJDUMP \
14192 deplibs_check_method \
14193 file_magic_cmd \
14194 file_magic_glob \
14195 want_nocaseglob \
14196 DLLTOOL \
14197 sharedlib_from_linklib_cmd \
14198 AR \
14199 AR_FLAGS \
14200 archiver_list_spec \
14201 STRIP \
14202 RANLIB \
14203 CC \
14204 CFLAGS \
14205 compiler \
14206 lt_cv_sys_global_symbol_pipe \
14207 lt_cv_sys_global_symbol_to_cdecl \
14208 lt_cv_sys_global_symbol_to_c_name_address \
14209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14210 nm_file_list_spec \
14211 lt_prog_compiler_no_builtin_flag \
14212 lt_prog_compiler_pic \
14213 lt_prog_compiler_wl \
14214 lt_prog_compiler_static \
14215 lt_cv_prog_compiler_c_o \
14216 need_locks \
14217 MANIFEST_TOOL \
14218 DSYMUTIL \
14219 NMEDIT \
14220 LIPO \
14221 OTOOL \
14222 OTOOL64 \
14223 shrext_cmds \
14224 export_dynamic_flag_spec \
14225 whole_archive_flag_spec \
14226 compiler_needs_object \
14227 with_gnu_ld \
14228 allow_undefined_flag \
14229 no_undefined_flag \
14230 hardcode_libdir_flag_spec \
14231 hardcode_libdir_separator \
14232 exclude_expsyms \
14233 include_expsyms \
14234 file_list_spec \
14235 variables_saved_for_relink \
14236 libname_spec \
14237 library_names_spec \
14238 soname_spec \
14239 install_override_mode \
14240 finish_eval \
14241 old_striplib \
14242 striplib; do
14243     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14244     *[\\\\\\\`\\"\\\$]*)
14245       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14246       ;;
14247     *)
14248       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14249       ;;
14250     esac
14251 done
14252
14253 # Double-quote double-evaled strings.
14254 for var in reload_cmds \
14255 old_postinstall_cmds \
14256 old_postuninstall_cmds \
14257 old_archive_cmds \
14258 extract_expsyms_cmds \
14259 old_archive_from_new_cmds \
14260 old_archive_from_expsyms_cmds \
14261 archive_cmds \
14262 archive_expsym_cmds \
14263 module_cmds \
14264 module_expsym_cmds \
14265 export_symbols_cmds \
14266 prelink_cmds \
14267 postlink_cmds \
14268 postinstall_cmds \
14269 postuninstall_cmds \
14270 finish_cmds \
14271 sys_lib_search_path_spec \
14272 sys_lib_dlsearch_path_spec; do
14273     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14274     *[\\\\\\\`\\"\\\$]*)
14275       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14276       ;;
14277     *)
14278       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14279       ;;
14280     esac
14281 done
14282
14283 ac_aux_dir='$ac_aux_dir'
14284 xsi_shell='$xsi_shell'
14285 lt_shell_append='$lt_shell_append'
14286
14287 # See if we are running on zsh, and set the options which allow our
14288 # commands through without removal of \ escapes INIT.
14289 if test -n "\${ZSH_VERSION+set}" ; then
14290    setopt NO_GLOB_SUBST
14291 fi
14292
14293
14294     PACKAGE='$PACKAGE'
14295     VERSION='$VERSION'
14296     TIMESTAMP='$TIMESTAMP'
14297     RM='$RM'
14298     ofile='$ofile'
14299
14300
14301
14302
14303 _ACEOF
14304
14305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14306
14307 # Handling of arguments.
14308 for ac_config_target in $ac_config_targets
14309 do
14310   case $ac_config_target in
14311     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14312     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14313     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14314     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14315     "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14316     "src/ofono.service") CONFIG_FILES="$CONFIG_FILES src/ofono.service" ;;
14317     "ofono.pc") CONFIG_FILES="$CONFIG_FILES ofono.pc" ;;
14318     "dundee/dundee.service") CONFIG_FILES="$CONFIG_FILES dundee/dundee.service" ;;
14319
14320   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14321   esac
14322 done
14323
14324
14325 # If the user did not use the arguments to specify the items to instantiate,
14326 # then the envvar interface is used.  Set only those that are not.
14327 # We use the long form for the default assignment because of an extremely
14328 # bizarre bug on SunOS 4.1.3.
14329 if $ac_need_defaults; then
14330   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14331   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14332   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14333 fi
14334
14335 # Have a temporary directory for convenience.  Make it in the build tree
14336 # simply because there is no reason against having it here, and in addition,
14337 # creating and moving files from /tmp can sometimes cause problems.
14338 # Hook for its removal unless debugging.
14339 # Note that there is a small window in which the directory will not be cleaned:
14340 # after its creation but before its name has been assigned to `$tmp'.
14341 $debug ||
14342 {
14343   tmp= ac_tmp=
14344   trap 'exit_status=$?
14345   : "${ac_tmp:=$tmp}"
14346   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14347 ' 0
14348   trap 'as_fn_exit 1' 1 2 13 15
14349 }
14350 # Create a (secure) tmp directory for tmp files.
14351
14352 {
14353   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14354   test -d "$tmp"
14355 }  ||
14356 {
14357   tmp=./conf$$-$RANDOM
14358   (umask 077 && mkdir "$tmp")
14359 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14360 ac_tmp=$tmp
14361
14362 # Set up the scripts for CONFIG_FILES section.
14363 # No need to generate them if there are no CONFIG_FILES.
14364 # This happens for instance with `./config.status config.h'.
14365 if test -n "$CONFIG_FILES"; then
14366
14367
14368 ac_cr=`echo X | tr X '\015'`
14369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14370 # But we know of no other shell where ac_cr would be empty at this
14371 # point, so we can use a bashism as a fallback.
14372 if test "x$ac_cr" = x; then
14373   eval ac_cr=\$\'\\r\'
14374 fi
14375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14377   ac_cs_awk_cr='\\r'
14378 else
14379   ac_cs_awk_cr=$ac_cr
14380 fi
14381
14382 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14383 _ACEOF
14384
14385
14386 {
14387   echo "cat >conf$$subs.awk <<_ACEOF" &&
14388   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14389   echo "_ACEOF"
14390 } >conf$$subs.sh ||
14391   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14392 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14393 ac_delim='%!_!# '
14394 for ac_last_try in false false false false false :; do
14395   . ./conf$$subs.sh ||
14396     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14397
14398   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14399   if test $ac_delim_n = $ac_delim_num; then
14400     break
14401   elif $ac_last_try; then
14402     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14403   else
14404     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14405   fi
14406 done
14407 rm -f conf$$subs.sh
14408
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14411 _ACEOF
14412 sed -n '
14413 h
14414 s/^/S["/; s/!.*/"]=/
14415 p
14416 g
14417 s/^[^!]*!//
14418 :repl
14419 t repl
14420 s/'"$ac_delim"'$//
14421 t delim
14422 :nl
14423 h
14424 s/\(.\{148\}\)..*/\1/
14425 t more1
14426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14427 p
14428 n
14429 b repl
14430 :more1
14431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14432 p
14433 g
14434 s/.\{148\}//
14435 t nl
14436 :delim
14437 h
14438 s/\(.\{148\}\)..*/\1/
14439 t more2
14440 s/["\\]/\\&/g; s/^/"/; s/$/"/
14441 p
14442 b
14443 :more2
14444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14445 p
14446 g
14447 s/.\{148\}//
14448 t delim
14449 ' <conf$$subs.awk | sed '
14450 /^[^""]/{
14451   N
14452   s/\n//
14453 }
14454 ' >>$CONFIG_STATUS || ac_write_fail=1
14455 rm -f conf$$subs.awk
14456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14457 _ACAWK
14458 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14459   for (key in S) S_is_set[key] = 1
14460   FS = "\a"
14461
14462 }
14463 {
14464   line = $ 0
14465   nfields = split(line, field, "@")
14466   substed = 0
14467   len = length(field[1])
14468   for (i = 2; i < nfields; i++) {
14469     key = field[i]
14470     keylen = length(key)
14471     if (S_is_set[key]) {
14472       value = S[key]
14473       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14474       len += length(value) + length(field[++i])
14475       substed = 1
14476     } else
14477       len += 1 + keylen
14478   }
14479
14480   print line
14481 }
14482
14483 _ACAWK
14484 _ACEOF
14485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14487   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14488 else
14489   cat
14490 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14491   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14492 _ACEOF
14493
14494 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14495 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14496 # trailing colons and then remove the whole line if VPATH becomes empty
14497 # (actually we leave an empty line to preserve line numbers).
14498 if test "x$srcdir" = x.; then
14499   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14500 h
14501 s///
14502 s/^/:/
14503 s/[      ]*$/:/
14504 s/:\$(srcdir):/:/g
14505 s/:\${srcdir}:/:/g
14506 s/:@srcdir@:/:/g
14507 s/^:*//
14508 s/:*$//
14509 x
14510 s/\(=[   ]*\).*/\1/
14511 G
14512 s/\n//
14513 s/^[^=]*=[       ]*$//
14514 }'
14515 fi
14516
14517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14518 fi # test -n "$CONFIG_FILES"
14519
14520 # Set up the scripts for CONFIG_HEADERS section.
14521 # No need to generate them if there are no CONFIG_HEADERS.
14522 # This happens for instance with `./config.status Makefile'.
14523 if test -n "$CONFIG_HEADERS"; then
14524 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14525 BEGIN {
14526 _ACEOF
14527
14528 # Transform confdefs.h into an awk script `defines.awk', embedded as
14529 # here-document in config.status, that substitutes the proper values into
14530 # config.h.in to produce config.h.
14531
14532 # Create a delimiter string that does not exist in confdefs.h, to ease
14533 # handling of long lines.
14534 ac_delim='%!_!# '
14535 for ac_last_try in false false :; do
14536   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14537   if test -z "$ac_tt"; then
14538     break
14539   elif $ac_last_try; then
14540     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14541   else
14542     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14543   fi
14544 done
14545
14546 # For the awk script, D is an array of macro values keyed by name,
14547 # likewise P contains macro parameters if any.  Preserve backslash
14548 # newline sequences.
14549
14550 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14551 sed -n '
14552 s/.\{148\}/&'"$ac_delim"'/g
14553 t rset
14554 :rset
14555 s/^[     ]*#[    ]*define[       ][      ]*/ /
14556 t def
14557 d
14558 :def
14559 s/\\$//
14560 t bsnl
14561 s/["\\]/\\&/g
14562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14563 D["\1"]=" \3"/p
14564 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14565 d
14566 :bsnl
14567 s/["\\]/\\&/g
14568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14569 D["\1"]=" \3\\\\\\n"\\/p
14570 t cont
14571 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14572 t cont
14573 d
14574 :cont
14575 n
14576 s/.\{148\}/&'"$ac_delim"'/g
14577 t clear
14578 :clear
14579 s/\\$//
14580 t bsnlc
14581 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14582 d
14583 :bsnlc
14584 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14585 b cont
14586 ' <confdefs.h | sed '
14587 s/'"$ac_delim"'/"\\\
14588 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14589
14590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14591   for (key in D) D_is_set[key] = 1
14592   FS = "\a"
14593 }
14594 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14595   line = \$ 0
14596   split(line, arg, " ")
14597   if (arg[1] == "#") {
14598     defundef = arg[2]
14599     mac1 = arg[3]
14600   } else {
14601     defundef = substr(arg[1], 2)
14602     mac1 = arg[2]
14603   }
14604   split(mac1, mac2, "(") #)
14605   macro = mac2[1]
14606   prefix = substr(line, 1, index(line, defundef) - 1)
14607   if (D_is_set[macro]) {
14608     # Preserve the white space surrounding the "#".
14609     print prefix "define", macro P[macro] D[macro]
14610     next
14611   } else {
14612     # Replace #undef with comments.  This is necessary, for example,
14613     # in the case of _POSIX_SOURCE, which is predefined and required
14614     # on some systems where configure will not decide to define it.
14615     if (defundef == "undef") {
14616       print "/*", prefix defundef, macro, "*/"
14617       next
14618     }
14619   }
14620 }
14621 { print }
14622 _ACAWK
14623 _ACEOF
14624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14625   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14626 fi # test -n "$CONFIG_HEADERS"
14627
14628
14629 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14630 shift
14631 for ac_tag
14632 do
14633   case $ac_tag in
14634   :[FHLC]) ac_mode=$ac_tag; continue;;
14635   esac
14636   case $ac_mode$ac_tag in
14637   :[FHL]*:*);;
14638   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14639   :[FH]-) ac_tag=-:-;;
14640   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14641   esac
14642   ac_save_IFS=$IFS
14643   IFS=:
14644   set x $ac_tag
14645   IFS=$ac_save_IFS
14646   shift
14647   ac_file=$1
14648   shift
14649
14650   case $ac_mode in
14651   :L) ac_source=$1;;
14652   :[FH])
14653     ac_file_inputs=
14654     for ac_f
14655     do
14656       case $ac_f in
14657       -) ac_f="$ac_tmp/stdin";;
14658       *) # Look for the file first in the build tree, then in the source tree
14659          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14660          # because $ac_f cannot contain `:'.
14661          test -f "$ac_f" ||
14662            case $ac_f in
14663            [\\/$]*) false;;
14664            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14665            esac ||
14666            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14667       esac
14668       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14669       as_fn_append ac_file_inputs " '$ac_f'"
14670     done
14671
14672     # Let's still pretend it is `configure' which instantiates (i.e., don't
14673     # use $as_me), people would be surprised to read:
14674     #    /* config.h.  Generated by config.status.  */
14675     configure_input='Generated from '`
14676           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14677         `' by configure.'
14678     if test x"$ac_file" != x-; then
14679       configure_input="$ac_file.  $configure_input"
14680       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14681 $as_echo "$as_me: creating $ac_file" >&6;}
14682     fi
14683     # Neutralize special characters interpreted by sed in replacement strings.
14684     case $configure_input in #(
14685     *\&* | *\|* | *\\* )
14686        ac_sed_conf_input=`$as_echo "$configure_input" |
14687        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14688     *) ac_sed_conf_input=$configure_input;;
14689     esac
14690
14691     case $ac_tag in
14692     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14693       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14694     esac
14695     ;;
14696   esac
14697
14698   ac_dir=`$as_dirname -- "$ac_file" ||
14699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14700          X"$ac_file" : 'X\(//\)[^/]' \| \
14701          X"$ac_file" : 'X\(//\)$' \| \
14702          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14703 $as_echo X"$ac_file" |
14704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14705             s//\1/
14706             q
14707           }
14708           /^X\(\/\/\)[^/].*/{
14709             s//\1/
14710             q
14711           }
14712           /^X\(\/\/\)$/{
14713             s//\1/
14714             q
14715           }
14716           /^X\(\/\).*/{
14717             s//\1/
14718             q
14719           }
14720           s/.*/./; q'`
14721   as_dir="$ac_dir"; as_fn_mkdir_p
14722   ac_builddir=.
14723
14724 case "$ac_dir" in
14725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14726 *)
14727   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14728   # A ".." for each directory in $ac_dir_suffix.
14729   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14730   case $ac_top_builddir_sub in
14731   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14732   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14733   esac ;;
14734 esac
14735 ac_abs_top_builddir=$ac_pwd
14736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14737 # for backward compatibility:
14738 ac_top_builddir=$ac_top_build_prefix
14739
14740 case $srcdir in
14741   .)  # We are building in place.
14742     ac_srcdir=.
14743     ac_top_srcdir=$ac_top_builddir_sub
14744     ac_abs_top_srcdir=$ac_pwd ;;
14745   [\\/]* | ?:[\\/]* )  # Absolute name.
14746     ac_srcdir=$srcdir$ac_dir_suffix;
14747     ac_top_srcdir=$srcdir
14748     ac_abs_top_srcdir=$srcdir ;;
14749   *) # Relative name.
14750     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14751     ac_top_srcdir=$ac_top_build_prefix$srcdir
14752     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14753 esac
14754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14755
14756
14757   case $ac_mode in
14758   :F)
14759   #
14760   # CONFIG_FILE
14761   #
14762
14763   case $INSTALL in
14764   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14765   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14766   esac
14767   ac_MKDIR_P=$MKDIR_P
14768   case $MKDIR_P in
14769   [\\/$]* | ?:[\\/]* ) ;;
14770   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14771   esac
14772 _ACEOF
14773
14774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14775 # If the template does not know about datarootdir, expand it.
14776 # FIXME: This hack should be removed a few years after 2.60.
14777 ac_datarootdir_hack=; ac_datarootdir_seen=
14778 ac_sed_dataroot='
14779 /datarootdir/ {
14780   p
14781   q
14782 }
14783 /@datadir@/p
14784 /@docdir@/p
14785 /@infodir@/p
14786 /@localedir@/p
14787 /@mandir@/p'
14788 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14789 *datarootdir*) ac_datarootdir_seen=yes;;
14790 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14791   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14792 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14793 _ACEOF
14794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14795   ac_datarootdir_hack='
14796   s&@datadir@&$datadir&g
14797   s&@docdir@&$docdir&g
14798   s&@infodir@&$infodir&g
14799   s&@localedir@&$localedir&g
14800   s&@mandir@&$mandir&g
14801   s&\\\${datarootdir}&$datarootdir&g' ;;
14802 esac
14803 _ACEOF
14804
14805 # Neutralize VPATH when `$srcdir' = `.'.
14806 # Shell code in configure.ac might set extrasub.
14807 # FIXME: do we really want to maintain this feature?
14808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14809 ac_sed_extra="$ac_vpsub
14810 $extrasub
14811 _ACEOF
14812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14813 :t
14814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14815 s|@configure_input@|$ac_sed_conf_input|;t t
14816 s&@top_builddir@&$ac_top_builddir_sub&;t t
14817 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14818 s&@srcdir@&$ac_srcdir&;t t
14819 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14820 s&@top_srcdir@&$ac_top_srcdir&;t t
14821 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14822 s&@builddir@&$ac_builddir&;t t
14823 s&@abs_builddir@&$ac_abs_builddir&;t t
14824 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14825 s&@INSTALL@&$ac_INSTALL&;t t
14826 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14827 $ac_datarootdir_hack
14828 "
14829 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14830   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14831
14832 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14833   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14834   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14835       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14836   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14837 which seems to be undefined.  Please make sure it is defined" >&5
14838 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14839 which seems to be undefined.  Please make sure it is defined" >&2;}
14840
14841   rm -f "$ac_tmp/stdin"
14842   case $ac_file in
14843   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14844   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14845   esac \
14846   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14847  ;;
14848   :H)
14849   #
14850   # CONFIG_HEADER
14851   #
14852   if test x"$ac_file" != x-; then
14853     {
14854       $as_echo "/* $configure_input  */" \
14855       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14856     } >"$ac_tmp/config.h" \
14857       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14858     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14859       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14860 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14861     else
14862       rm -f "$ac_file"
14863       mv "$ac_tmp/config.h" "$ac_file" \
14864         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14865     fi
14866   else
14867     $as_echo "/* $configure_input  */" \
14868       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14869       || as_fn_error $? "could not create -" "$LINENO" 5
14870   fi
14871 # Compute "$ac_file"'s index in $config_headers.
14872 _am_arg="$ac_file"
14873 _am_stamp_count=1
14874 for _am_header in $config_headers :; do
14875   case $_am_header in
14876     $_am_arg | $_am_arg:* )
14877       break ;;
14878     * )
14879       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14880   esac
14881 done
14882 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14883 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14884          X"$_am_arg" : 'X\(//\)[^/]' \| \
14885          X"$_am_arg" : 'X\(//\)$' \| \
14886          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14887 $as_echo X"$_am_arg" |
14888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14889             s//\1/
14890             q
14891           }
14892           /^X\(\/\/\)[^/].*/{
14893             s//\1/
14894             q
14895           }
14896           /^X\(\/\/\)$/{
14897             s//\1/
14898             q
14899           }
14900           /^X\(\/\).*/{
14901             s//\1/
14902             q
14903           }
14904           s/.*/./; q'`/stamp-h$_am_stamp_count
14905  ;;
14906
14907   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14908 $as_echo "$as_me: executing $ac_file commands" >&6;}
14909  ;;
14910   esac
14911
14912
14913   case $ac_file$ac_mode in
14914     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14915   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14916   # are listed without --file.  Let's play safe and only enable the eval
14917   # if we detect the quoting.
14918   case $CONFIG_FILES in
14919   *\'*) eval set x "$CONFIG_FILES" ;;
14920   *)   set x $CONFIG_FILES ;;
14921   esac
14922   shift
14923   for mf
14924   do
14925     # Strip MF so we end up with the name of the file.
14926     mf=`echo "$mf" | sed -e 's/:.*$//'`
14927     # Check whether this is an Automake generated Makefile or not.
14928     # We used to match only the files named `Makefile.in', but
14929     # some people rename them; so instead we look at the file content.
14930     # Grep'ing the first line is not enough: some people post-process
14931     # each Makefile.in and add a new line on top of each file to say so.
14932     # Grep'ing the whole file is not good either: AIX grep has a line
14933     # limit of 2048, but all sed's we know have understand at least 4000.
14934     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14935       dirpart=`$as_dirname -- "$mf" ||
14936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14937          X"$mf" : 'X\(//\)[^/]' \| \
14938          X"$mf" : 'X\(//\)$' \| \
14939          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14940 $as_echo X"$mf" |
14941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14942             s//\1/
14943             q
14944           }
14945           /^X\(\/\/\)[^/].*/{
14946             s//\1/
14947             q
14948           }
14949           /^X\(\/\/\)$/{
14950             s//\1/
14951             q
14952           }
14953           /^X\(\/\).*/{
14954             s//\1/
14955             q
14956           }
14957           s/.*/./; q'`
14958     else
14959       continue
14960     fi
14961     # Extract the definition of DEPDIR, am__include, and am__quote
14962     # from the Makefile without running `make'.
14963     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14964     test -z "$DEPDIR" && continue
14965     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14966     test -z "am__include" && continue
14967     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14968     # When using ansi2knr, U may be empty or an underscore; expand it
14969     U=`sed -n 's/^U = //p' < "$mf"`
14970     # Find all dependency output files, they are included files with
14971     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14972     # simplest approach to changing $(DEPDIR) to its actual value in the
14973     # expansion.
14974     for file in `sed -n "
14975       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14976          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14977       # Make sure the directory exists.
14978       test -f "$dirpart/$file" && continue
14979       fdir=`$as_dirname -- "$file" ||
14980 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14981          X"$file" : 'X\(//\)[^/]' \| \
14982          X"$file" : 'X\(//\)$' \| \
14983          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14984 $as_echo X"$file" |
14985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14986             s//\1/
14987             q
14988           }
14989           /^X\(\/\/\)[^/].*/{
14990             s//\1/
14991             q
14992           }
14993           /^X\(\/\/\)$/{
14994             s//\1/
14995             q
14996           }
14997           /^X\(\/\).*/{
14998             s//\1/
14999             q
15000           }
15001           s/.*/./; q'`
15002       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15003       # echo "creating $dirpart/$file"
15004       echo '# dummy' > "$dirpart/$file"
15005     done
15006   done
15007 }
15008  ;;
15009     "libtool":C)
15010
15011     # See if we are running on zsh, and set the options which allow our
15012     # commands through without removal of \ escapes.
15013     if test -n "${ZSH_VERSION+set}" ; then
15014       setopt NO_GLOB_SUBST
15015     fi
15016
15017     cfgfile="${ofile}T"
15018     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15019     $RM "$cfgfile"
15020
15021     cat <<_LT_EOF >> "$cfgfile"
15022 #! $SHELL
15023
15024 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15025 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15026 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15027 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15028 #
15029 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15030 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15031 #                 Foundation, Inc.
15032 #   Written by Gordon Matzigkeit, 1996
15033 #
15034 #   This file is part of GNU Libtool.
15035 #
15036 # GNU Libtool is free software; you can redistribute it and/or
15037 # modify it under the terms of the GNU General Public License as
15038 # published by the Free Software Foundation; either version 2 of
15039 # the License, or (at your option) any later version.
15040 #
15041 # As a special exception to the GNU General Public License,
15042 # if you distribute this file as part of a program or library that
15043 # is built using GNU Libtool, you may include this file under the
15044 # same distribution terms that you use for the rest of that program.
15045 #
15046 # GNU Libtool is distributed in the hope that it will be useful,
15047 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15048 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15049 # GNU General Public License for more details.
15050 #
15051 # You should have received a copy of the GNU General Public License
15052 # along with GNU Libtool; see the file COPYING.  If not, a copy
15053 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15054 # obtained by writing to the Free Software Foundation, Inc.,
15055 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15056
15057
15058 # The names of the tagged configurations supported by this script.
15059 available_tags=""
15060
15061 # ### BEGIN LIBTOOL CONFIG
15062
15063 # Whether or not to build static libraries.
15064 build_old_libs=$enable_static
15065
15066 # Which release of libtool.m4 was used?
15067 macro_version=$macro_version
15068 macro_revision=$macro_revision
15069
15070 # Whether or not to build shared libraries.
15071 build_libtool_libs=$enable_shared
15072
15073 # What type of objects to build.
15074 pic_mode=$pic_mode
15075
15076 # Whether or not to optimize for fast installation.
15077 fast_install=$enable_fast_install
15078
15079 # Shell to use when invoking shell scripts.
15080 SHELL=$lt_SHELL
15081
15082 # An echo program that protects backslashes.
15083 ECHO=$lt_ECHO
15084
15085 # The PATH separator for the build system.
15086 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15087
15088 # The host system.
15089 host_alias=$host_alias
15090 host=$host
15091 host_os=$host_os
15092
15093 # The build system.
15094 build_alias=$build_alias
15095 build=$build
15096 build_os=$build_os
15097
15098 # A sed program that does not truncate output.
15099 SED=$lt_SED
15100
15101 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15102 Xsed="\$SED -e 1s/^X//"
15103
15104 # A grep program that handles long lines.
15105 GREP=$lt_GREP
15106
15107 # An ERE matcher.
15108 EGREP=$lt_EGREP
15109
15110 # A literal string matcher.
15111 FGREP=$lt_FGREP
15112
15113 # A BSD- or MS-compatible name lister.
15114 NM=$lt_NM
15115
15116 # Whether we need soft or hard links.
15117 LN_S=$lt_LN_S
15118
15119 # What is the maximum length of a command?
15120 max_cmd_len=$max_cmd_len
15121
15122 # Object file suffix (normally "o").
15123 objext=$ac_objext
15124
15125 # Executable file suffix (normally "").
15126 exeext=$exeext
15127
15128 # whether the shell understands "unset".
15129 lt_unset=$lt_unset
15130
15131 # turn spaces into newlines.
15132 SP2NL=$lt_lt_SP2NL
15133
15134 # turn newlines into spaces.
15135 NL2SP=$lt_lt_NL2SP
15136
15137 # convert \$build file names to \$host format.
15138 to_host_file_cmd=$lt_cv_to_host_file_cmd
15139
15140 # convert \$build files to toolchain format.
15141 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15142
15143 # An object symbol dumper.
15144 OBJDUMP=$lt_OBJDUMP
15145
15146 # Method to check whether dependent libraries are shared objects.
15147 deplibs_check_method=$lt_deplibs_check_method
15148
15149 # Command to use when deplibs_check_method = "file_magic".
15150 file_magic_cmd=$lt_file_magic_cmd
15151
15152 # How to find potential files when deplibs_check_method = "file_magic".
15153 file_magic_glob=$lt_file_magic_glob
15154
15155 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15156 want_nocaseglob=$lt_want_nocaseglob
15157
15158 # DLL creation program.
15159 DLLTOOL=$lt_DLLTOOL
15160
15161 # Command to associate shared and link libraries.
15162 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15163
15164 # The archiver.
15165 AR=$lt_AR
15166
15167 # Flags to create an archive.
15168 AR_FLAGS=$lt_AR_FLAGS
15169
15170 # How to feed a file listing to the archiver.
15171 archiver_list_spec=$lt_archiver_list_spec
15172
15173 # A symbol stripping program.
15174 STRIP=$lt_STRIP
15175
15176 # Commands used to install an old-style archive.
15177 RANLIB=$lt_RANLIB
15178 old_postinstall_cmds=$lt_old_postinstall_cmds
15179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15180
15181 # Whether to use a lock for old archive extraction.
15182 lock_old_archive_extraction=$lock_old_archive_extraction
15183
15184 # A C compiler.
15185 LTCC=$lt_CC
15186
15187 # LTCC compiler flags.
15188 LTCFLAGS=$lt_CFLAGS
15189
15190 # Take the output of nm and produce a listing of raw symbols and C names.
15191 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15192
15193 # Transform the output of nm in a proper C declaration.
15194 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15195
15196 # Transform the output of nm in a C name address pair.
15197 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15198
15199 # Transform the output of nm in a C name address pair when lib prefix is needed.
15200 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15201
15202 # Specify filename containing input files for \$NM.
15203 nm_file_list_spec=$lt_nm_file_list_spec
15204
15205 # The root where to search for dependent libraries,and in which our libraries should be installed.
15206 lt_sysroot=$lt_sysroot
15207
15208 # The name of the directory that contains temporary libtool files.
15209 objdir=$objdir
15210
15211 # Used to examine libraries when file_magic_cmd begins with "file".
15212 MAGIC_CMD=$MAGIC_CMD
15213
15214 # Must we lock files when doing compilation?
15215 need_locks=$lt_need_locks
15216
15217 # Manifest tool.
15218 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15219
15220 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15221 DSYMUTIL=$lt_DSYMUTIL
15222
15223 # Tool to change global to local symbols on Mac OS X.
15224 NMEDIT=$lt_NMEDIT
15225
15226 # Tool to manipulate fat objects and archives on Mac OS X.
15227 LIPO=$lt_LIPO
15228
15229 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15230 OTOOL=$lt_OTOOL
15231
15232 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15233 OTOOL64=$lt_OTOOL64
15234
15235 # Old archive suffix (normally "a").
15236 libext=$libext
15237
15238 # Shared library suffix (normally ".so").
15239 shrext_cmds=$lt_shrext_cmds
15240
15241 # The commands to extract the exported symbol list from a shared archive.
15242 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15243
15244 # Variables whose values should be saved in libtool wrapper scripts and
15245 # restored at link time.
15246 variables_saved_for_relink=$lt_variables_saved_for_relink
15247
15248 # Do we need the "lib" prefix for modules?
15249 need_lib_prefix=$need_lib_prefix
15250
15251 # Do we need a version for libraries?
15252 need_version=$need_version
15253
15254 # Library versioning type.
15255 version_type=$version_type
15256
15257 # Shared library runtime path variable.
15258 runpath_var=$runpath_var
15259
15260 # Shared library path variable.
15261 shlibpath_var=$shlibpath_var
15262
15263 # Is shlibpath searched before the hard-coded library search path?
15264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15265
15266 # Format of library name prefix.
15267 libname_spec=$lt_libname_spec
15268
15269 # List of archive names.  First name is the real one, the rest are links.
15270 # The last name is the one that the linker finds with -lNAME
15271 library_names_spec=$lt_library_names_spec
15272
15273 # The coded name of the library, if different from the real name.
15274 soname_spec=$lt_soname_spec
15275
15276 # Permission mode override for installation of shared libraries.
15277 install_override_mode=$lt_install_override_mode
15278
15279 # Command to use after installation of a shared archive.
15280 postinstall_cmds=$lt_postinstall_cmds
15281
15282 # Command to use after uninstallation of a shared archive.
15283 postuninstall_cmds=$lt_postuninstall_cmds
15284
15285 # Commands used to finish a libtool library installation in a directory.
15286 finish_cmds=$lt_finish_cmds
15287
15288 # As "finish_cmds", except a single script fragment to be evaled but
15289 # not shown.
15290 finish_eval=$lt_finish_eval
15291
15292 # Whether we should hardcode library paths into libraries.
15293 hardcode_into_libs=$hardcode_into_libs
15294
15295 # Compile-time system search path for libraries.
15296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15297
15298 # Run-time system search path for libraries.
15299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15300
15301 # Whether dlopen is supported.
15302 dlopen_support=$enable_dlopen
15303
15304 # Whether dlopen of programs is supported.
15305 dlopen_self=$enable_dlopen_self
15306
15307 # Whether dlopen of statically linked programs is supported.
15308 dlopen_self_static=$enable_dlopen_self_static
15309
15310 # Commands to strip libraries.
15311 old_striplib=$lt_old_striplib
15312 striplib=$lt_striplib
15313
15314
15315 # The linker used to build libraries.
15316 LD=$lt_LD
15317
15318 # How to create reloadable object files.
15319 reload_flag=$lt_reload_flag
15320 reload_cmds=$lt_reload_cmds
15321
15322 # Commands used to build an old-style archive.
15323 old_archive_cmds=$lt_old_archive_cmds
15324
15325 # A language specific compiler.
15326 CC=$lt_compiler
15327
15328 # Is the compiler the GNU compiler?
15329 with_gcc=$GCC
15330
15331 # Compiler flag to turn off builtin functions.
15332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15333
15334 # Additional compiler flags for building library objects.
15335 pic_flag=$lt_lt_prog_compiler_pic
15336
15337 # How to pass a linker flag through the compiler.
15338 wl=$lt_lt_prog_compiler_wl
15339
15340 # Compiler flag to prevent dynamic linking.
15341 link_static_flag=$lt_lt_prog_compiler_static
15342
15343 # Does compiler simultaneously support -c and -o options?
15344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15345
15346 # Whether or not to add -lc for building shared libraries.
15347 build_libtool_need_lc=$archive_cmds_need_lc
15348
15349 # Whether or not to disallow shared libs when runtime libs are static.
15350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15351
15352 # Compiler flag to allow reflexive dlopens.
15353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15354
15355 # Compiler flag to generate shared objects directly from archives.
15356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15357
15358 # Whether the compiler copes with passing no objects directly.
15359 compiler_needs_object=$lt_compiler_needs_object
15360
15361 # Create an old-style archive from a shared archive.
15362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15363
15364 # Create a temporary old-style archive to link instead of a shared archive.
15365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15366
15367 # Commands used to build a shared archive.
15368 archive_cmds=$lt_archive_cmds
15369 archive_expsym_cmds=$lt_archive_expsym_cmds
15370
15371 # Commands used to build a loadable module if different from building
15372 # a shared archive.
15373 module_cmds=$lt_module_cmds
15374 module_expsym_cmds=$lt_module_expsym_cmds
15375
15376 # Whether we are building with GNU ld or not.
15377 with_gnu_ld=$lt_with_gnu_ld
15378
15379 # Flag that allows shared libraries with undefined symbols to be built.
15380 allow_undefined_flag=$lt_allow_undefined_flag
15381
15382 # Flag that enforces no undefined symbols.
15383 no_undefined_flag=$lt_no_undefined_flag
15384
15385 # Flag to hardcode \$libdir into a binary during linking.
15386 # This must work even if \$libdir does not exist
15387 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15388
15389 # Whether we need a single "-rpath" flag with a separated argument.
15390 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15391
15392 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15393 # DIR into the resulting binary.
15394 hardcode_direct=$hardcode_direct
15395
15396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15397 # DIR into the resulting binary and the resulting library dependency is
15398 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15399 # library is relocated.
15400 hardcode_direct_absolute=$hardcode_direct_absolute
15401
15402 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15403 # into the resulting binary.
15404 hardcode_minus_L=$hardcode_minus_L
15405
15406 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15407 # into the resulting binary.
15408 hardcode_shlibpath_var=$hardcode_shlibpath_var
15409
15410 # Set to "yes" if building a shared library automatically hardcodes DIR
15411 # into the library and all subsequent libraries and executables linked
15412 # against it.
15413 hardcode_automatic=$hardcode_automatic
15414
15415 # Set to yes if linker adds runtime paths of dependent libraries
15416 # to runtime path list.
15417 inherit_rpath=$inherit_rpath
15418
15419 # Whether libtool must link a program against all its dependency libraries.
15420 link_all_deplibs=$link_all_deplibs
15421
15422 # Set to "yes" if exported symbols are required.
15423 always_export_symbols=$always_export_symbols
15424
15425 # The commands to list exported symbols.
15426 export_symbols_cmds=$lt_export_symbols_cmds
15427
15428 # Symbols that should not be listed in the preloaded symbols.
15429 exclude_expsyms=$lt_exclude_expsyms
15430
15431 # Symbols that must always be exported.
15432 include_expsyms=$lt_include_expsyms
15433
15434 # Commands necessary for linking programs (against libraries) with templates.
15435 prelink_cmds=$lt_prelink_cmds
15436
15437 # Commands necessary for finishing linking programs.
15438 postlink_cmds=$lt_postlink_cmds
15439
15440 # Specify filename containing input files.
15441 file_list_spec=$lt_file_list_spec
15442
15443 # How to hardcode a shared library path into an executable.
15444 hardcode_action=$hardcode_action
15445
15446 # ### END LIBTOOL CONFIG
15447
15448 _LT_EOF
15449
15450   case $host_os in
15451   aix3*)
15452     cat <<\_LT_EOF >> "$cfgfile"
15453 # AIX sometimes has problems with the GCC collect2 program.  For some
15454 # reason, if we set the COLLECT_NAMES environment variable, the problems
15455 # vanish in a puff of smoke.
15456 if test "X${COLLECT_NAMES+set}" != Xset; then
15457   COLLECT_NAMES=
15458   export COLLECT_NAMES
15459 fi
15460 _LT_EOF
15461     ;;
15462   esac
15463
15464
15465 ltmain="$ac_aux_dir/ltmain.sh"
15466
15467
15468   # We use sed instead of cat because bash on DJGPP gets confused if
15469   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15470   # text mode, it properly converts lines to CR/LF.  This bash problem
15471   # is reportedly fixed, but why not run on old versions too?
15472   sed '$q' "$ltmain" >> "$cfgfile" \
15473      || (rm -f "$cfgfile"; exit 1)
15474
15475   if test x"$xsi_shell" = xyes; then
15476   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15477 func_dirname ()\
15478 {\
15479 \    case ${1} in\
15480 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15481 \      *  ) func_dirname_result="${3}" ;;\
15482 \    esac\
15483 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15484   && mv -f "$cfgfile.tmp" "$cfgfile" \
15485     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15486 test 0 -eq $? || _lt_function_replace_fail=:
15487
15488
15489   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15490 func_basename ()\
15491 {\
15492 \    func_basename_result="${1##*/}"\
15493 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15494   && mv -f "$cfgfile.tmp" "$cfgfile" \
15495     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15496 test 0 -eq $? || _lt_function_replace_fail=:
15497
15498
15499   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15500 func_dirname_and_basename ()\
15501 {\
15502 \    case ${1} in\
15503 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15504 \      *  ) func_dirname_result="${3}" ;;\
15505 \    esac\
15506 \    func_basename_result="${1##*/}"\
15507 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15508   && mv -f "$cfgfile.tmp" "$cfgfile" \
15509     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15510 test 0 -eq $? || _lt_function_replace_fail=:
15511
15512
15513   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15514 func_stripname ()\
15515 {\
15516 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15517 \    # positional parameters, so assign one to ordinary parameter first.\
15518 \    func_stripname_result=${3}\
15519 \    func_stripname_result=${func_stripname_result#"${1}"}\
15520 \    func_stripname_result=${func_stripname_result%"${2}"}\
15521 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15522   && mv -f "$cfgfile.tmp" "$cfgfile" \
15523     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15524 test 0 -eq $? || _lt_function_replace_fail=:
15525
15526
15527   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15528 func_split_long_opt ()\
15529 {\
15530 \    func_split_long_opt_name=${1%%=*}\
15531 \    func_split_long_opt_arg=${1#*=}\
15532 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15533   && mv -f "$cfgfile.tmp" "$cfgfile" \
15534     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15535 test 0 -eq $? || _lt_function_replace_fail=:
15536
15537
15538   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15539 func_split_short_opt ()\
15540 {\
15541 \    func_split_short_opt_arg=${1#??}\
15542 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15543 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15544   && mv -f "$cfgfile.tmp" "$cfgfile" \
15545     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15546 test 0 -eq $? || _lt_function_replace_fail=:
15547
15548
15549   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15550 func_lo2o ()\
15551 {\
15552 \    case ${1} in\
15553 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15554 \      *)    func_lo2o_result=${1} ;;\
15555 \    esac\
15556 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15557   && mv -f "$cfgfile.tmp" "$cfgfile" \
15558     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15559 test 0 -eq $? || _lt_function_replace_fail=:
15560
15561
15562   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15563 func_xform ()\
15564 {\
15565     func_xform_result=${1%.*}.lo\
15566 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15567   && mv -f "$cfgfile.tmp" "$cfgfile" \
15568     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15569 test 0 -eq $? || _lt_function_replace_fail=:
15570
15571
15572   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15573 func_arith ()\
15574 {\
15575     func_arith_result=$(( $* ))\
15576 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15577   && mv -f "$cfgfile.tmp" "$cfgfile" \
15578     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15579 test 0 -eq $? || _lt_function_replace_fail=:
15580
15581
15582   sed -e '/^func_len ()$/,/^} # func_len /c\
15583 func_len ()\
15584 {\
15585     func_len_result=${#1}\
15586 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15587   && mv -f "$cfgfile.tmp" "$cfgfile" \
15588     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15589 test 0 -eq $? || _lt_function_replace_fail=:
15590
15591 fi
15592
15593 if test x"$lt_shell_append" = xyes; then
15594   sed -e '/^func_append ()$/,/^} # func_append /c\
15595 func_append ()\
15596 {\
15597     eval "${1}+=\\${2}"\
15598 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15599   && mv -f "$cfgfile.tmp" "$cfgfile" \
15600     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15601 test 0 -eq $? || _lt_function_replace_fail=:
15602
15603
15604   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15605 func_append_quoted ()\
15606 {\
15607 \    func_quote_for_eval "${2}"\
15608 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15609 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15610   && mv -f "$cfgfile.tmp" "$cfgfile" \
15611     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15612 test 0 -eq $? || _lt_function_replace_fail=:
15613
15614
15615   # Save a `func_append' function call where possible by direct use of '+='
15616   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15617     && mv -f "$cfgfile.tmp" "$cfgfile" \
15618       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15619   test 0 -eq $? || _lt_function_replace_fail=:
15620 else
15621   # Save a `func_append' function call even when '+=' is not available
15622   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15623     && mv -f "$cfgfile.tmp" "$cfgfile" \
15624       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15625   test 0 -eq $? || _lt_function_replace_fail=:
15626 fi
15627
15628 if test x"$_lt_function_replace_fail" = x":"; then
15629   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15630 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15631 fi
15632
15633
15634    mv -f "$cfgfile" "$ofile" ||
15635     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15636   chmod +x "$ofile"
15637
15638  ;;
15639
15640   esac
15641 done # for ac_tag
15642
15643
15644 as_fn_exit 0
15645 _ACEOF
15646 ac_clean_files=$ac_clean_files_save
15647
15648 test $ac_write_fail = 0 ||
15649   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15650
15651
15652 # configure is writing to config.log, and then calls config.status.
15653 # config.status does its own redirection, appending to config.log.
15654 # Unfortunately, on DOS this fails, as config.log is still kept open
15655 # by configure, so config.status won't be able to write to it; its
15656 # output is simply discarded.  So we exec the FD to /dev/null,
15657 # effectively closing config.log, so it can be properly (re)opened and
15658 # appended to by config.status.  When coming back to configure, we
15659 # need to make the FD available again.
15660 if test "$no_create" != yes; then
15661   ac_cs_success=:
15662   ac_config_status_args=
15663   test "$silent" = yes &&
15664     ac_config_status_args="$ac_config_status_args --quiet"
15665   exec 5>/dev/null
15666   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15667   exec 5>>config.log
15668   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15669   # would make configure fail if this is the last instruction.
15670   $ac_cs_success || as_fn_exit 1
15671 fi
15672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15675 fi
15676