Cleanup spec file and remove obsolete yaml files
[external/mtdev.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Multitouch Protocol Translation Library 1.0.11.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='Multitouch Protocol Translation Library'
700 PACKAGE_TARNAME='mtdev'
701 PACKAGE_VERSION='1.0.11'
702 PACKAGE_STRING='Multitouch Protocol Translation Library 1.0.11'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 ac_unique_file="Makefile.am"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 CPP
748 OTOOL64
749 OTOOL
750 LIPO
751 NMEDIT
752 DSYMUTIL
753 lt_ECHO
754 RANLIB
755 AR
756 OBJDUMP
757 LN_S
758 NM
759 ac_ct_DUMPBIN
760 DUMPBIN
761 LD
762 FGREP
763 EGREP
764 GREP
765 SED
766 am__fastdepCC_FALSE
767 am__fastdepCC_TRUE
768 CCDEPMODE
769 AMDEPBACKSLASH
770 AMDEP_FALSE
771 AMDEP_TRUE
772 am__quote
773 am__include
774 DEPDIR
775 OBJEXT
776 EXEEXT
777 ac_ct_CC
778 CPPFLAGS
779 LDFLAGS
780 CFLAGS
781 CC
782 host_os
783 host_vendor
784 host_cpu
785 host
786 build_os
787 build_vendor
788 build_cpu
789 build
790 LIBTOOL
791 LIB_VERSION
792 MAINT
793 MAINTAINER_MODE_FALSE
794 MAINTAINER_MODE_TRUE
795 am__untar
796 am__tar
797 AMTAR
798 am__leading_dot
799 SET_MAKE
800 AWK
801 mkdir_p
802 MKDIR_P
803 INSTALL_STRIP_PROGRAM
804 STRIP
805 install_sh
806 MAKEINFO
807 AUTOHEADER
808 AUTOMAKE
809 AUTOCONF
810 ACLOCAL
811 VERSION
812 PACKAGE
813 CYGPATH_W
814 am__isrc
815 INSTALL_DATA
816 INSTALL_SCRIPT
817 INSTALL_PROGRAM
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files=''
857 ac_user_opts='
858 enable_option_checking
859 enable_maintainer_mode
860 enable_shared
861 enable_static
862 with_pic
863 enable_fast_install
864 enable_dependency_tracking
865 with_gnu_ld
866 enable_libtool_lock
867 '
868       ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931   # If the previous option needs an argument, assign it.
932   if test -n "$ac_prev"; then
933     eval $ac_prev=\$ac_option
934     ac_prev=
935     continue
936   fi
937
938   case $ac_option in
939   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940   *=)   ac_optarg= ;;
941   *)    ac_optarg=yes ;;
942   esac
943
944   # Accept the important Cygnus configure options, so we can diagnose typos.
945
946   case $ac_dashdash$ac_option in
947   --)
948     ac_dashdash=yes ;;
949
950   -bindir | --bindir | --bindi | --bind | --bin | --bi)
951     ac_prev=bindir ;;
952   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953     bindir=$ac_optarg ;;
954
955   -build | --build | --buil | --bui | --bu)
956     ac_prev=build_alias ;;
957   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958     build_alias=$ac_optarg ;;
959
960   -cache-file | --cache-file | --cache-fil | --cache-fi \
961   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962     ac_prev=cache_file ;;
963   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965     cache_file=$ac_optarg ;;
966
967   --config-cache | -C)
968     cache_file=config.cache ;;
969
970   -datadir | --datadir | --datadi | --datad)
971     ac_prev=datadir ;;
972   -datadir=* | --datadir=* | --datadi=* | --datad=*)
973     datadir=$ac_optarg ;;
974
975   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976   | --dataroo | --dataro | --datar)
977     ac_prev=datarootdir ;;
978   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980     datarootdir=$ac_optarg ;;
981
982   -disable-* | --disable-*)
983     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984     # Reject names that are not valid shell variable names.
985     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986       as_fn_error $? "invalid feature name: $ac_useropt"
987     ac_useropt_orig=$ac_useropt
988     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989     case $ac_user_opts in
990       *"
991 "enable_$ac_useropt"
992 "*) ;;
993       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994          ac_unrecognized_sep=', ';;
995     esac
996     eval enable_$ac_useropt=no ;;
997
998   -docdir | --docdir | --docdi | --doc | --do)
999     ac_prev=docdir ;;
1000   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001     docdir=$ac_optarg ;;
1002
1003   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004     ac_prev=dvidir ;;
1005   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006     dvidir=$ac_optarg ;;
1007
1008   -enable-* | --enable-*)
1009     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012       as_fn_error $? "invalid feature name: $ac_useropt"
1013     ac_useropt_orig=$ac_useropt
1014     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015     case $ac_user_opts in
1016       *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020          ac_unrecognized_sep=', ';;
1021     esac
1022     eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026   | --exec | --exe | --ex)
1027     ac_prev=exec_prefix ;;
1028   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030   | --exec=* | --exe=* | --ex=*)
1031     exec_prefix=$ac_optarg ;;
1032
1033   -gas | --gas | --ga | --g)
1034     # Obsolete; use --with-gas.
1035     with_gas=yes ;;
1036
1037   -help | --help | --hel | --he | -h)
1038     ac_init_help=long ;;
1039   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040     ac_init_help=recursive ;;
1041   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042     ac_init_help=short ;;
1043
1044   -host | --host | --hos | --ho)
1045     ac_prev=host_alias ;;
1046   -host=* | --host=* | --hos=* | --ho=*)
1047     host_alias=$ac_optarg ;;
1048
1049   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050     ac_prev=htmldir ;;
1051   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052   | --ht=*)
1053     htmldir=$ac_optarg ;;
1054
1055   -includedir | --includedir | --includedi | --included | --include \
1056   | --includ | --inclu | --incl | --inc)
1057     ac_prev=includedir ;;
1058   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059   | --includ=* | --inclu=* | --incl=* | --inc=*)
1060     includedir=$ac_optarg ;;
1061
1062   -infodir | --infodir | --infodi | --infod | --info | --inf)
1063     ac_prev=infodir ;;
1064   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065     infodir=$ac_optarg ;;
1066
1067   -libdir | --libdir | --libdi | --libd)
1068     ac_prev=libdir ;;
1069   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070     libdir=$ac_optarg ;;
1071
1072   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073   | --libexe | --libex | --libe)
1074     ac_prev=libexecdir ;;
1075   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076   | --libexe=* | --libex=* | --libe=*)
1077     libexecdir=$ac_optarg ;;
1078
1079   -localedir | --localedir | --localedi | --localed | --locale)
1080     ac_prev=localedir ;;
1081   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082     localedir=$ac_optarg ;;
1083
1084   -localstatedir | --localstatedir | --localstatedi | --localstated \
1085   | --localstate | --localstat | --localsta | --localst | --locals)
1086     ac_prev=localstatedir ;;
1087   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089     localstatedir=$ac_optarg ;;
1090
1091   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092     ac_prev=mandir ;;
1093   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094     mandir=$ac_optarg ;;
1095
1096   -nfp | --nfp | --nf)
1097     # Obsolete; use --without-fp.
1098     with_fp=no ;;
1099
1100   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101   | --no-cr | --no-c | -n)
1102     no_create=yes ;;
1103
1104   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106     no_recursion=yes ;;
1107
1108   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110   | --oldin | --oldi | --old | --ol | --o)
1111     ac_prev=oldincludedir ;;
1112   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115     oldincludedir=$ac_optarg ;;
1116
1117   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118     ac_prev=prefix ;;
1119   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120     prefix=$ac_optarg ;;
1121
1122   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123   | --program-pre | --program-pr | --program-p)
1124     ac_prev=program_prefix ;;
1125   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127     program_prefix=$ac_optarg ;;
1128
1129   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130   | --program-suf | --program-su | --program-s)
1131     ac_prev=program_suffix ;;
1132   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134     program_suffix=$ac_optarg ;;
1135
1136   -program-transform-name | --program-transform-name \
1137   | --program-transform-nam | --program-transform-na \
1138   | --program-transform-n | --program-transform- \
1139   | --program-transform | --program-transfor \
1140   | --program-transfo | --program-transf \
1141   | --program-trans | --program-tran \
1142   | --progr-tra | --program-tr | --program-t)
1143     ac_prev=program_transform_name ;;
1144   -program-transform-name=* | --program-transform-name=* \
1145   | --program-transform-nam=* | --program-transform-na=* \
1146   | --program-transform-n=* | --program-transform-=* \
1147   | --program-transform=* | --program-transfor=* \
1148   | --program-transfo=* | --program-transf=* \
1149   | --program-trans=* | --program-tran=* \
1150   | --progr-tra=* | --program-tr=* | --program-t=*)
1151     program_transform_name=$ac_optarg ;;
1152
1153   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154     ac_prev=pdfdir ;;
1155   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156     pdfdir=$ac_optarg ;;
1157
1158   -psdir | --psdir | --psdi | --psd | --ps)
1159     ac_prev=psdir ;;
1160   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161     psdir=$ac_optarg ;;
1162
1163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164   | -silent | --silent | --silen | --sile | --sil)
1165     silent=yes ;;
1166
1167   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168     ac_prev=sbindir ;;
1169   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170   | --sbi=* | --sb=*)
1171     sbindir=$ac_optarg ;;
1172
1173   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175   | --sharedst | --shareds | --shared | --share | --shar \
1176   | --sha | --sh)
1177     ac_prev=sharedstatedir ;;
1178   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181   | --sha=* | --sh=*)
1182     sharedstatedir=$ac_optarg ;;
1183
1184   -site | --site | --sit)
1185     ac_prev=site ;;
1186   -site=* | --site=* | --sit=*)
1187     site=$ac_optarg ;;
1188
1189   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190     ac_prev=srcdir ;;
1191   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192     srcdir=$ac_optarg ;;
1193
1194   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195   | --syscon | --sysco | --sysc | --sys | --sy)
1196     ac_prev=sysconfdir ;;
1197   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199     sysconfdir=$ac_optarg ;;
1200
1201   -target | --target | --targe | --targ | --tar | --ta | --t)
1202     ac_prev=target_alias ;;
1203   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204     target_alias=$ac_optarg ;;
1205
1206   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207     verbose=yes ;;
1208
1209   -version | --version | --versio | --versi | --vers | -V)
1210     ac_init_version=: ;;
1211
1212   -with-* | --with-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=\$ac_optarg ;;
1227
1228   -without-* | --without-*)
1229     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232       as_fn_error $? "invalid package name: $ac_useropt"
1233     ac_useropt_orig=$ac_useropt
1234     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235     case $ac_user_opts in
1236       *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240          ac_unrecognized_sep=', ';;
1241     esac
1242     eval with_$ac_useropt=no ;;
1243
1244   --x)
1245     # Obsolete; use --with-x.
1246     with_x=yes ;;
1247
1248   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249   | --x-incl | --x-inc | --x-in | --x-i)
1250     ac_prev=x_includes ;;
1251   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253     x_includes=$ac_optarg ;;
1254
1255   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257     ac_prev=x_libraries ;;
1258   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260     x_libraries=$ac_optarg ;;
1261
1262   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1264     ;;
1265
1266   *=*)
1267     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268     # Reject names that are not valid shell variable names.
1269     case $ac_envvar in #(
1270       '' | [0-9]* | *[!_$as_cr_alnum]* )
1271       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272     esac
1273     eval $ac_envvar=\$ac_optarg
1274     export $ac_envvar ;;
1275
1276   *)
1277     # FIXME: should be removed in autoconf 3.0.
1278     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282     ;;
1283
1284   esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289   as_fn_error $? "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293   case $enable_option_checking in
1294     no) ;;
1295     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297   esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302                 datadir sysconfdir sharedstatedir localstatedir includedir \
1303                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304                 libdir localedir mandir
1305 do
1306   eval ac_val=\$$ac_var
1307   # Remove trailing slashes.
1308   case $ac_val in
1309     */ )
1310       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311       eval $ac_var=\$ac_val;;
1312   esac
1313   # Be sure to have absolute directory names.
1314   case $ac_val in
1315     [\\/$]* | ?:[\\/]* )  continue;;
1316     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317   esac
1318   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330   if test "x$build_alias" = x; then
1331     cross_compiling=maybe
1332     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1333     If a cross compiler is detected then cross compile mode will be used" >&2
1334   elif test "x$build_alias" != "x$host_alias"; then
1335     cross_compiling=yes
1336   fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348   as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350   as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355   ac_srcdir_defaulted=yes
1356   # Try the directory containing this script, then the parent directory.
1357   ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359          X"$as_myself" : 'X\(//\)[^/]' \| \
1360          X"$as_myself" : 'X\(//\)$' \| \
1361          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)[^/].*/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\/\)$/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\).*/{
1376             s//\1/
1377             q
1378           }
1379           s/.*/./; q'`
1380   srcdir=$ac_confdir
1381   if test ! -r "$srcdir/$ac_unique_file"; then
1382     srcdir=..
1383   fi
1384 else
1385   ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394         pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397   srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_env_${ac_var}_value=\$${ac_var}
1408   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416   # Omit some internal or obsolete options to make the list less imposing.
1417   # This message is too long to be a string in the A/UX 3.1 sh.
1418   cat <<_ACEOF
1419 \`configure' configures Multitouch Protocol Translation Library 1.0.11 to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE.  See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429   -h, --help              display this help and exit
1430       --help=short        display options specific to this package
1431       --help=recursive    display the short help of all the included packages
1432   -V, --version           display version information and exit
1433   -q, --quiet, --silent   do not print \`checking ...' messages
1434       --cache-file=FILE   cache test results in FILE [disabled]
1435   -C, --config-cache      alias for \`--cache-file=config.cache'
1436   -n, --no-create         do not create output files
1437       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440   --prefix=PREFIX         install architecture-independent files in PREFIX
1441                           [$ac_default_prefix]
1442   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1443                           [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453   --bindir=DIR            user executables [EPREFIX/bin]
1454   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1455   --libexecdir=DIR        program executables [EPREFIX/libexec]
1456   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1457   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1458   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1459   --libdir=DIR            object code libraries [EPREFIX/lib]
1460   --includedir=DIR        C header files [PREFIX/include]
1461   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1462   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1463   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1464   --infodir=DIR           info documentation [DATAROOTDIR/info]
1465   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1466   --mandir=DIR            man documentation [DATAROOTDIR/man]
1467   --docdir=DIR            documentation root [DATAROOTDIR/doc/mtdev]
1468   --htmldir=DIR           html documentation [DOCDIR]
1469   --dvidir=DIR            dvi documentation [DOCDIR]
1470   --pdfdir=DIR            pdf documentation [DOCDIR]
1471   --psdir=DIR             ps documentation [DOCDIR]
1472 _ACEOF
1473
1474   cat <<\_ACEOF
1475
1476 Program names:
1477   --program-prefix=PREFIX            prepend PREFIX to installed program names
1478   --program-suffix=SUFFIX            append SUFFIX to installed program names
1479   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1480
1481 System types:
1482   --build=BUILD     configure for building on BUILD [guessed]
1483   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488   case $ac_init_help in
1489      short | recursive ) echo "Configuration of Multitouch Protocol Translation Library 1.0.11:";;
1490    esac
1491   cat <<\_ACEOF
1492
1493 Optional Features:
1494   --disable-option-checking  ignore unrecognized --enable/--with options
1495   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497   --enable-maintainer-mode  enable make rules and dependencies not useful
1498                           (and sometimes confusing) to the casual installer
1499   --enable-shared[=PKGS]  build shared libraries [default=yes]
1500   --enable-static[=PKGS]  build static libraries [default=yes]
1501   --enable-fast-install[=PKGS]
1502                           optimize for fast installation [default=yes]
1503   --disable-dependency-tracking  speeds up one-time build
1504   --enable-dependency-tracking   do not reject slow dependency extractors
1505   --disable-libtool-lock  avoid locking (might break parallel builds)
1506
1507 Optional Packages:
1508   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510   --with-pic              try to use only PIC/non-PIC objects [default=use
1511                           both]
1512   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1513
1514 Some influential environment variables:
1515   CC          C compiler command
1516   CFLAGS      C compiler flags
1517   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1518               nonstandard directory <lib dir>
1519   LIBS        libraries to pass to the linker, e.g. -l<library>
1520   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521               you have headers in a nonstandard directory <include dir>
1522   CPP         C preprocessor
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to the package provider.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533   # If there are subdirs, report their specific --help.
1534   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535     test -d "$ac_dir" ||
1536       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537       continue
1538     ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544   # A ".." for each directory in $ac_dir_suffix.
1545   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546   case $ac_top_builddir_sub in
1547   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549   esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557   .)  # We are building in place.
1558     ac_srcdir=.
1559     ac_top_srcdir=$ac_top_builddir_sub
1560     ac_abs_top_srcdir=$ac_pwd ;;
1561   [\\/]* | ?:[\\/]* )  # Absolute name.
1562     ac_srcdir=$srcdir$ac_dir_suffix;
1563     ac_top_srcdir=$srcdir
1564     ac_abs_top_srcdir=$srcdir ;;
1565   *) # Relative name.
1566     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567     ac_top_srcdir=$ac_top_build_prefix$srcdir
1568     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572     cd "$ac_dir" || { ac_status=$?; continue; }
1573     # Check for guested configure.
1574     if test -f "$ac_srcdir/configure.gnu"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577     elif test -f "$ac_srcdir/configure"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure" --help=recursive
1580     else
1581       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582     fi || ac_status=$?
1583     cd "$ac_pwd" || { ac_status=$?; break; }
1584   done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589   cat <<\_ACEOF
1590 Multitouch Protocol Translation Library configure 1.0.11
1591 generated by GNU Autoconf 2.67
1592
1593 Copyright (C) 2010 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597   exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610   rm -f conftest.$ac_objext
1611   if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614   *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618   (eval "$ac_compile") 2>conftest.err
1619   ac_status=$?
1620   if test -s conftest.err; then
1621     grep -v '^ *+' conftest.err >conftest.er1
1622     cat conftest.er1 >&5
1623     mv -f conftest.er1 conftest.err
1624   fi
1625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626   test $ac_status = 0; } && {
1627          test -z "$ac_c_werror_flag" ||
1628          test ! -s conftest.err
1629        } && test -s conftest.$ac_objext; then :
1630   ac_retval=0
1631 else
1632   $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635         ac_retval=1
1636 fi
1637   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638   as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_link ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   rm -f conftest.$ac_objext conftest$ac_exeext
1649   if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_link") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && {
1665          test -z "$ac_c_werror_flag" ||
1666          test ! -s conftest.err
1667        } && test -s conftest$ac_exeext && {
1668          test "$cross_compiling" = yes ||
1669          $as_test_x conftest$ac_exeext
1670        }; then :
1671   ac_retval=0
1672 else
1673   $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676         ac_retval=1
1677 fi
1678   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680   # interfere with the next link command; also delete a directory that is
1681   # left behind by Apple's compiler.  We do this before executing the actions.
1682   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_link
1687
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval "test \"\${$3+set}\"" = set; then :
1698   $as_echo_n "(cached) " >&6
1699 else
1700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 $4
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706   eval "$3=yes"
1707 else
1708   eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 fi
1712 eval ac_res=\$$3
1713                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733   ac_status=$?
1734   if test -s conftest.err; then
1735     grep -v '^ *+' conftest.err >conftest.er1
1736     cat conftest.er1 >&5
1737     mv -f conftest.er1 conftest.err
1738   fi
1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; } > conftest.i && {
1741          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742          test ! -s conftest.err
1743        }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749     ac_retval=1
1750 fi
1751   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752   as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_cpp
1755
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_link") 2>&5
1771   ac_status=$?
1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774   { { case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_try") 2>&5
1781   ac_status=$?
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; }; }; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: program exited with status $ac_status" >&5
1787        $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790        ac_retval=$ac_status
1791 fi
1792   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794   as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_run
1797
1798 # ac_fn_c_check_func LINENO FUNC VAR
1799 # ----------------------------------
1800 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1801 ac_fn_c_check_func ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval "test \"\${$3+set}\"" = set; then :
1807   $as_echo_n "(cached) " >&6
1808 else
1809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1813 #define $2 innocuous_$2
1814
1815 /* System header to define __stub macros and hopefully few prototypes,
1816     which can conflict with char $2 (); below.
1817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1818     <limits.h> exists even on freestanding compilers.  */
1819
1820 #ifdef __STDC__
1821 # include <limits.h>
1822 #else
1823 # include <assert.h>
1824 #endif
1825
1826 #undef $2
1827
1828 /* Override any GCC internal prototype to avoid an error.
1829    Use char because int might match the return type of a GCC
1830    builtin and then its argument prototype would still apply.  */
1831 #ifdef __cplusplus
1832 extern "C"
1833 #endif
1834 char $2 ();
1835 /* The GNU C library defines this for functions which it implements
1836     to always fail with ENOSYS.  Some functions are actually named
1837     something starting with __ and the normal name is an alias.  */
1838 #if defined __stub_$2 || defined __stub___$2
1839 choke me
1840 #endif
1841
1842 int
1843 main ()
1844 {
1845 return $2 ();
1846   ;
1847   return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_link "$LINENO"; then :
1851   eval "$3=yes"
1852 else
1853   eval "$3=no"
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext \
1856     conftest$ac_exeext conftest.$ac_ext
1857 fi
1858 eval ac_res=\$$3
1859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862
1863 } # ac_fn_c_check_func
1864 cat >config.log <<_ACEOF
1865 This file contains any messages produced by compilers while
1866 running configure, to aid debugging if configure makes a mistake.
1867
1868 It was created by Multitouch Protocol Translation Library $as_me 1.0.11, which was
1869 generated by GNU Autoconf 2.67.  Invocation command line was
1870
1871   $ $0 $@
1872
1873 _ACEOF
1874 exec 5>>config.log
1875 {
1876 cat <<_ASUNAME
1877 ## --------- ##
1878 ## Platform. ##
1879 ## --------- ##
1880
1881 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
1887 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1889
1890 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1891 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1892 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1894 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1895 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1896 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1897
1898 _ASUNAME
1899
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903   IFS=$as_save_IFS
1904   test -z "$as_dir" && as_dir=.
1905     $as_echo "PATH: $as_dir"
1906   done
1907 IFS=$as_save_IFS
1908
1909 } >&5
1910
1911 cat >&5 <<_ACEOF
1912
1913
1914 ## ----------- ##
1915 ## Core tests. ##
1916 ## ----------- ##
1917
1918 _ACEOF
1919
1920
1921 # Keep a trace of the command line.
1922 # Strip out --no-create and --no-recursion so they do not pile up.
1923 # Strip out --silent because we don't want to record it for future runs.
1924 # Also quote any args containing shell meta-characters.
1925 # Make two passes to allow for proper duplicate-argument suppression.
1926 ac_configure_args=
1927 ac_configure_args0=
1928 ac_configure_args1=
1929 ac_must_keep_next=false
1930 for ac_pass in 1 2
1931 do
1932   for ac_arg
1933   do
1934     case $ac_arg in
1935     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1936     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1937     | -silent | --silent | --silen | --sile | --sil)
1938       continue ;;
1939     *\'*)
1940       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1941     esac
1942     case $ac_pass in
1943     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944     2)
1945       as_fn_append ac_configure_args1 " '$ac_arg'"
1946       if test $ac_must_keep_next = true; then
1947         ac_must_keep_next=false # Got value, back to normal.
1948       else
1949         case $ac_arg in
1950           *=* | --config-cache | -C | -disable-* | --disable-* \
1951           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1952           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1953           | -with-* | --with-* | -without-* | --without-* | --x)
1954             case "$ac_configure_args0 " in
1955               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1956             esac
1957             ;;
1958           -* ) ac_must_keep_next=true ;;
1959         esac
1960       fi
1961       as_fn_append ac_configure_args " '$ac_arg'"
1962       ;;
1963     esac
1964   done
1965 done
1966 { ac_configure_args0=; unset ac_configure_args0;}
1967 { ac_configure_args1=; unset ac_configure_args1;}
1968
1969 # When interrupted or exit'd, cleanup temporary files, and complete
1970 # config.log.  We remove comments because anyway the quotes in there
1971 # would cause problems or look ugly.
1972 # WARNING: Use '\'' to represent an apostrophe within the trap.
1973 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1974 trap 'exit_status=$?
1975   # Save into config.log some information that might help in debugging.
1976   {
1977     echo
1978
1979     $as_echo "## ---------------- ##
1980 ## Cache variables. ##
1981 ## ---------------- ##"
1982     echo
1983     # The following way of writing the cache mishandles newlines in values,
1984 (
1985   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986     eval ac_val=\$$ac_var
1987     case $ac_val in #(
1988     *${as_nl}*)
1989       case $ac_var in #(
1990       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992       esac
1993       case $ac_var in #(
1994       _ | IFS | as_nl) ;; #(
1995       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996       *) { eval $ac_var=; unset $ac_var;} ;;
1997       esac ;;
1998     esac
1999   done
2000   (set) 2>&1 |
2001     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002     *${as_nl}ac_space=\ *)
2003       sed -n \
2004         "s/'\''/'\''\\\\'\'''\''/g;
2005           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006       ;; #(
2007     *)
2008       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009       ;;
2010     esac |
2011     sort
2012 )
2013     echo
2014
2015     $as_echo "## ----------------- ##
2016 ## Output variables. ##
2017 ## ----------------- ##"
2018     echo
2019     for ac_var in $ac_subst_vars
2020     do
2021       eval ac_val=\$$ac_var
2022       case $ac_val in
2023       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024       esac
2025       $as_echo "$ac_var='\''$ac_val'\''"
2026     done | sort
2027     echo
2028
2029     if test -n "$ac_subst_files"; then
2030       $as_echo "## ------------------- ##
2031 ## File substitutions. ##
2032 ## ------------------- ##"
2033       echo
2034       for ac_var in $ac_subst_files
2035       do
2036         eval ac_val=\$$ac_var
2037         case $ac_val in
2038         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039         esac
2040         $as_echo "$ac_var='\''$ac_val'\''"
2041       done | sort
2042       echo
2043     fi
2044
2045     if test -s confdefs.h; then
2046       $as_echo "## ----------- ##
2047 ## confdefs.h. ##
2048 ## ----------- ##"
2049       echo
2050       cat confdefs.h
2051       echo
2052     fi
2053     test "$ac_signal" != 0 &&
2054       $as_echo "$as_me: caught signal $ac_signal"
2055     $as_echo "$as_me: exit $exit_status"
2056   } >&5
2057   rm -f core *.core core.conftest.* &&
2058     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059     exit $exit_status
2060 ' 0
2061 for ac_signal in 1 2 13 15; do
2062   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063 done
2064 ac_signal=0
2065
2066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2067 rm -f -r conftest* confdefs.h
2068
2069 $as_echo "/* confdefs.h */" > confdefs.h
2070
2071 # Predefined preprocessor variables.
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_NAME "$PACKAGE_NAME"
2075 _ACEOF
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079 _ACEOF
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2083 _ACEOF
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_STRING "$PACKAGE_STRING"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_URL "$PACKAGE_URL"
2095 _ACEOF
2096
2097
2098 # Let the site file select an alternate cache file if it wants to.
2099 # Prefer an explicitly selected file to automatically selected ones.
2100 ac_site_file1=NONE
2101 ac_site_file2=NONE
2102 if test -n "$CONFIG_SITE"; then
2103   # We do not want a PATH search for config.site.
2104   case $CONFIG_SITE in #((
2105     -*)  ac_site_file1=./$CONFIG_SITE;;
2106     */*) ac_site_file1=$CONFIG_SITE;;
2107     *)   ac_site_file1=./$CONFIG_SITE;;
2108   esac
2109 elif test "x$prefix" != xNONE; then
2110   ac_site_file1=$prefix/share/config.site
2111   ac_site_file2=$prefix/etc/config.site
2112 else
2113   ac_site_file1=$ac_default_prefix/share/config.site
2114   ac_site_file2=$ac_default_prefix/etc/config.site
2115 fi
2116 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 do
2118   test "x$ac_site_file" = xNONE && continue
2119   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2120     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2122     sed 's/^/| /' "$ac_site_file" >&5
2123     . "$ac_site_file" \
2124       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126 as_fn_error $? "failed to load site script $ac_site_file
2127 See \`config.log' for more details" "$LINENO" 5 ; }
2128   fi
2129 done
2130
2131 if test -r "$cache_file"; then
2132   # Some versions of bash will fail to source /dev/null (special files
2133   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2134   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2136 $as_echo "$as_me: loading cache $cache_file" >&6;}
2137     case $cache_file in
2138       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139       *)                      . "./$cache_file";;
2140     esac
2141   fi
2142 else
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2144 $as_echo "$as_me: creating cache $cache_file" >&6;}
2145   >$cache_file
2146 fi
2147
2148 # Check that the precious variables saved in the cache have kept the same
2149 # value.
2150 ac_cache_corrupted=false
2151 for ac_var in $ac_precious_vars; do
2152   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153   eval ac_new_set=\$ac_env_${ac_var}_set
2154   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155   eval ac_new_val=\$ac_env_${ac_var}_value
2156   case $ac_old_set,$ac_new_set in
2157     set,)
2158       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2160       ac_cache_corrupted=: ;;
2161     ,set)
2162       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2164       ac_cache_corrupted=: ;;
2165     ,);;
2166     *)
2167       if test "x$ac_old_val" != "x$ac_new_val"; then
2168         # differences in whitespace do not lead to failure.
2169         ac_old_val_w=`echo x $ac_old_val`
2170         ac_new_val_w=`echo x $ac_new_val`
2171         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174           ac_cache_corrupted=:
2175         else
2176           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178           eval $ac_var=\$ac_old_val
2179         fi
2180         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2181 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2182         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2183 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2184       fi;;
2185   esac
2186   # Pass precious variables to config.status.
2187   if test "$ac_new_set" = set; then
2188     case $ac_new_val in
2189     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2190     *) ac_arg=$ac_var=$ac_new_val ;;
2191     esac
2192     case " $ac_configure_args " in
2193       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2194       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2195     esac
2196   fi
2197 done
2198 if $ac_cache_corrupted; then
2199   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2204 fi
2205 ## -------------------- ##
2206 ## Main body of script. ##
2207 ## -------------------- ##
2208
2209 ac_ext=c
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214
2215
2216
2217 ac_config_headers="$ac_config_headers config.h"
2218
2219 ac_aux_dir=
2220 for ac_dir in config-aux "$srcdir"/config-aux; do
2221   if test -f "$ac_dir/install-sh"; then
2222     ac_aux_dir=$ac_dir
2223     ac_install_sh="$ac_aux_dir/install-sh -c"
2224     break
2225   elif test -f "$ac_dir/install.sh"; then
2226     ac_aux_dir=$ac_dir
2227     ac_install_sh="$ac_aux_dir/install.sh -c"
2228     break
2229   elif test -f "$ac_dir/shtool"; then
2230     ac_aux_dir=$ac_dir
2231     ac_install_sh="$ac_aux_dir/shtool install -c"
2232     break
2233   fi
2234 done
2235 if test -z "$ac_aux_dir"; then
2236   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config-aux \"$srcdir\"/config-aux" "$LINENO" 5
2237 fi
2238
2239 # These three variables are undocumented and unsupported,
2240 # and are intended to be withdrawn in a future Autoconf release.
2241 # They can cause serious problems if a builder's source tree is in a directory
2242 # whose full name contains unusual characters.
2243 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2244 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2245 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2246
2247
2248
2249 # Initialize Automake
2250 am__api_version='1.11'
2251
2252 # Find a good install program.  We prefer a C program (faster),
2253 # so one script is as good as another.  But avoid the broken or
2254 # incompatible versions:
2255 # SysV /etc/install, /usr/sbin/install
2256 # SunOS /usr/etc/install
2257 # IRIX /sbin/install
2258 # AIX /bin/install
2259 # AmigaOS /C/install, which installs bootblocks on floppy discs
2260 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2261 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2262 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2263 # OS/2's system install, which has a completely different semantic
2264 # ./install, which can be erroneously created by make from ./install.sh.
2265 # Reject install programs that cannot install multiple files.
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2267 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2268 if test -z "$INSTALL"; then
2269 if test "${ac_cv_path_install+set}" = set; then :
2270   $as_echo_n "(cached) " >&6
2271 else
2272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277     # Account for people who put trailing slashes in PATH elements.
2278 case $as_dir/ in #((
2279   ./ | .// | /[cC]/* | \
2280   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2281   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2282   /usr/ucb/* ) ;;
2283   *)
2284     # OSF1 and SCO ODT 3.0 have their own names for install.
2285     # Don't use installbsd from OSF since it installs stuff as root
2286     # by default.
2287     for ac_prog in ginstall scoinst install; do
2288       for ac_exec_ext in '' $ac_executable_extensions; do
2289         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2290           if test $ac_prog = install &&
2291             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2292             # AIX install.  It has an incompatible calling convention.
2293             :
2294           elif test $ac_prog = install &&
2295             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2296             # program-specific install script used by HP pwplus--don't use.
2297             :
2298           else
2299             rm -rf conftest.one conftest.two conftest.dir
2300             echo one > conftest.one
2301             echo two > conftest.two
2302             mkdir conftest.dir
2303             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2304               test -s conftest.one && test -s conftest.two &&
2305               test -s conftest.dir/conftest.one &&
2306               test -s conftest.dir/conftest.two
2307             then
2308               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2309               break 3
2310             fi
2311           fi
2312         fi
2313       done
2314     done
2315     ;;
2316 esac
2317
2318   done
2319 IFS=$as_save_IFS
2320
2321 rm -rf conftest.one conftest.two conftest.dir
2322
2323 fi
2324   if test "${ac_cv_path_install+set}" = set; then
2325     INSTALL=$ac_cv_path_install
2326   else
2327     # As a last resort, use the slow shell script.  Don't cache a
2328     # value for INSTALL within a source directory, because that will
2329     # break other packages using the cache if that directory is
2330     # removed, or if the value is a relative name.
2331     INSTALL=$ac_install_sh
2332   fi
2333 fi
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2335 $as_echo "$INSTALL" >&6; }
2336
2337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2338 # It thinks the first close brace ends the variable substitution.
2339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2340
2341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2342
2343 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2344
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2346 $as_echo_n "checking whether build environment is sane... " >&6; }
2347 # Just in case
2348 sleep 1
2349 echo timestamp > conftest.file
2350 # Reject unsafe characters in $srcdir or the absolute working directory
2351 # name.  Accept space and tab only in the latter.
2352 am_lf='
2353 '
2354 case `pwd` in
2355   *[\\\"\#\$\&\'\`$am_lf]*)
2356     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2357 esac
2358 case $srcdir in
2359   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2360     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2361 esac
2362
2363 # Do `set' in a subshell so we don't clobber the current shell's
2364 # arguments.  Must try -L first in case configure is actually a
2365 # symlink; some systems play weird games with the mod time of symlinks
2366 # (eg FreeBSD returns the mod time of the symlink's containing
2367 # directory).
2368 if (
2369    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2370    if test "$*" = "X"; then
2371       # -L didn't work.
2372       set X `ls -t "$srcdir/configure" conftest.file`
2373    fi
2374    rm -f conftest.file
2375    if test "$*" != "X $srcdir/configure conftest.file" \
2376       && test "$*" != "X conftest.file $srcdir/configure"; then
2377
2378       # If neither matched, then we have a broken ls.  This can happen
2379       # if, for instance, CONFIG_SHELL is bash and it inherits a
2380       # broken ls alias from the environment.  This has actually
2381       # happened.  Such a system could not be considered "sane".
2382       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2383 alias in your environment" "$LINENO" 5
2384    fi
2385
2386    test "$2" = conftest.file
2387    )
2388 then
2389    # Ok.
2390    :
2391 else
2392    as_fn_error $? "newly created file is older than distributed files!
2393 Check your system clock" "$LINENO" 5
2394 fi
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2396 $as_echo "yes" >&6; }
2397 test "$program_prefix" != NONE &&
2398   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2399 # Use a double $ so make ignores it.
2400 test "$program_suffix" != NONE &&
2401   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2402 # Double any \ or $.
2403 # By default was `s,x,x', remove it if useless.
2404 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2405 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2406
2407 # expand $ac_aux_dir to an absolute path
2408 am_aux_dir=`cd $ac_aux_dir && pwd`
2409
2410 if test x"${MISSING+set}" != xset; then
2411   case $am_aux_dir in
2412   *\ * | *\     *)
2413     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2414   *)
2415     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2416   esac
2417 fi
2418 # Use eval to expand $SHELL
2419 if eval "$MISSING --run true"; then
2420   am_missing_run="$MISSING --run "
2421 else
2422   am_missing_run=
2423   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2424 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2425 fi
2426
2427 if test x"${install_sh}" != xset; then
2428   case $am_aux_dir in
2429   *\ * | *\     *)
2430     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2431   *)
2432     install_sh="\${SHELL} $am_aux_dir/install-sh"
2433   esac
2434 fi
2435
2436 # Installed binaries are usually stripped using `strip' when the user
2437 # run `make install-strip'.  However `strip' might not be the right
2438 # tool to use in cross-compilation environments, therefore Automake
2439 # will honor the `STRIP' environment variable to overrule this program.
2440 if test "$cross_compiling" != no; then
2441   if test -n "$ac_tool_prefix"; then
2442   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}strip; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if test "${ac_cv_prog_STRIP+set}" = set; then :
2447   $as_echo_n "(cached) " >&6
2448 else
2449   if test -n "$STRIP"; then
2450   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457     for ac_exec_ext in '' $ac_executable_extensions; do
2458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464   done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 STRIP=$ac_cv_prog_STRIP
2470 if test -n "$STRIP"; then
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2472 $as_echo "$STRIP" >&6; }
2473 else
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2476 fi
2477
2478
2479 fi
2480 if test -z "$ac_cv_prog_STRIP"; then
2481   ac_ct_STRIP=$STRIP
2482   # Extract the first word of "strip", so it can be a program name with args.
2483 set dummy strip; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2487   $as_echo_n "(cached) " >&6
2488 else
2489   if test -n "$ac_ct_STRIP"; then
2490   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497     for ac_exec_ext in '' $ac_executable_extensions; do
2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499     ac_cv_prog_ac_ct_STRIP="strip"
2500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504   done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2510 if test -n "$ac_ct_STRIP"; then
2511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2512 $as_echo "$ac_ct_STRIP" >&6; }
2513 else
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518   if test "x$ac_ct_STRIP" = x; then
2519     STRIP=":"
2520   else
2521     case $cross_compiling:$ac_tool_warned in
2522 yes:)
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527     STRIP=$ac_ct_STRIP
2528   fi
2529 else
2530   STRIP="$ac_cv_prog_STRIP"
2531 fi
2532
2533 fi
2534 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2537 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2538 if test -z "$MKDIR_P"; then
2539   if test "${ac_cv_path_mkdir+set}" = set; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547     for ac_prog in mkdir gmkdir; do
2548          for ac_exec_ext in '' $ac_executable_extensions; do
2549            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2550            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2551              'mkdir (GNU coreutils) '* | \
2552              'mkdir (coreutils) '* | \
2553              'mkdir (fileutils) '4.1*)
2554                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2555                break 3;;
2556            esac
2557          done
2558        done
2559   done
2560 IFS=$as_save_IFS
2561
2562 fi
2563
2564   test -d ./--version && rmdir ./--version
2565   if test "${ac_cv_path_mkdir+set}" = set; then
2566     MKDIR_P="$ac_cv_path_mkdir -p"
2567   else
2568     # As a last resort, use the slow shell script.  Don't cache a
2569     # value for MKDIR_P within a source directory, because that will
2570     # break other packages using the cache if that directory is
2571     # removed, or if the value is a relative name.
2572     MKDIR_P="$ac_install_sh -d"
2573   fi
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2576 $as_echo "$MKDIR_P" >&6; }
2577
2578 mkdir_p="$MKDIR_P"
2579 case $mkdir_p in
2580   [\\/$]* | ?:[\\/]*) ;;
2581   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2582 esac
2583
2584 for ac_prog in gawk mawk nawk awk
2585 do
2586   # Extract the first word of "$ac_prog", so it can be a program name with args.
2587 set dummy $ac_prog; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_AWK+set}" = set; then :
2591   $as_echo_n "(cached) " >&6
2592 else
2593   if test -n "$AWK"; then
2594   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_exec_ext in '' $ac_executable_extensions; do
2602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603     ac_cv_prog_AWK="$ac_prog"
2604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608   done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 AWK=$ac_cv_prog_AWK
2614 if test -n "$AWK"; then
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2616 $as_echo "$AWK" >&6; }
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622
2623   test -n "$AWK" && break
2624 done
2625
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2627 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2628 set x ${MAKE-make}
2629 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2630 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   cat >conftest.make <<\_ACEOF
2634 SHELL = /bin/sh
2635 all:
2636         @echo '@@@%%%=$(MAKE)=@@@%%%'
2637 _ACEOF
2638 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2640   *@@@%%%=?*=@@@%%%*)
2641     eval ac_cv_prog_make_${ac_make}_set=yes;;
2642   *)
2643     eval ac_cv_prog_make_${ac_make}_set=no;;
2644 esac
2645 rm -f conftest.make
2646 fi
2647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650   SET_MAKE=
2651 else
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654   SET_MAKE="MAKE=${MAKE-make}"
2655 fi
2656
2657 rm -rf .tst 2>/dev/null
2658 mkdir .tst 2>/dev/null
2659 if test -d .tst; then
2660   am__leading_dot=.
2661 else
2662   am__leading_dot=_
2663 fi
2664 rmdir .tst 2>/dev/null
2665
2666 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2667   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2668   # is not polluted with repeated "-I."
2669   am__isrc=' -I$(srcdir)'
2670   # test to see if srcdir already configured
2671   if test -f $srcdir/config.status; then
2672     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2673   fi
2674 fi
2675
2676 # test whether we have cygpath
2677 if test -z "$CYGPATH_W"; then
2678   if (cygpath --version) >/dev/null 2>/dev/null; then
2679     CYGPATH_W='cygpath -w'
2680   else
2681     CYGPATH_W=echo
2682   fi
2683 fi
2684
2685
2686 # Define the identity of the package.
2687  PACKAGE='mtdev'
2688  VERSION='1.0.11'
2689
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE "$PACKAGE"
2693 _ACEOF
2694
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define VERSION "$VERSION"
2698 _ACEOF
2699
2700 # Some tools Automake needs.
2701
2702 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2703
2704
2705 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2706
2707
2708 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2709
2710
2711 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2712
2713
2714 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2715
2716 # We need awk for the "check" target.  The system "awk" is bad on
2717 # some platforms.
2718 # Always define AMTAR for backward compatibility.
2719
2720 AMTAR=${AMTAR-"${am_missing_run}tar"}
2721
2722 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2723
2724
2725
2726
2727
2728
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2730 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2731     # Check whether --enable-maintainer-mode was given.
2732 if test "${enable_maintainer_mode+set}" = set; then :
2733   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2734 else
2735   USE_MAINTAINER_MODE=no
2736 fi
2737
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2739 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2740    if test $USE_MAINTAINER_MODE = yes; then
2741   MAINTAINER_MODE_TRUE=
2742   MAINTAINER_MODE_FALSE='#'
2743 else
2744   MAINTAINER_MODE_TRUE='#'
2745   MAINTAINER_MODE_FALSE=
2746 fi
2747
2748   MAINT=$MAINTAINER_MODE_TRUE
2749
2750
2751
2752 LIB_VERSION=1:0:0
2753
2754
2755 # Initialize libtool
2756 case `pwd` in
2757   *\ * | *\     *)
2758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2759 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2760 esac
2761
2762
2763
2764 macro_version='2.2.6b'
2765 macro_revision='1.3017'
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779 ltmain="$ac_aux_dir/ltmain.sh"
2780
2781 # Make sure we can run config.sub.
2782 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2783   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2786 $as_echo_n "checking build system type... " >&6; }
2787 if test "${ac_cv_build+set}" = set; then :
2788   $as_echo_n "(cached) " >&6
2789 else
2790   ac_build_alias=$build_alias
2791 test "x$ac_build_alias" = x &&
2792   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2793 test "x$ac_build_alias" = x &&
2794   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2795 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2796   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2797
2798 fi
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2800 $as_echo "$ac_cv_build" >&6; }
2801 case $ac_cv_build in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2804 esac
2805 build=$ac_cv_build
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_build
2808 shift
2809 build_cpu=$1
2810 build_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 build_os=$*
2815 IFS=$ac_save_IFS
2816 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2817
2818
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2820 $as_echo_n "checking host system type... " >&6; }
2821 if test "${ac_cv_host+set}" = set; then :
2822   $as_echo_n "(cached) " >&6
2823 else
2824   if test "x$host_alias" = x; then
2825   ac_cv_host=$ac_cv_build
2826 else
2827   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2828     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2829 fi
2830
2831 fi
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2833 $as_echo "$ac_cv_host" >&6; }
2834 case $ac_cv_host in
2835 *-*-*) ;;
2836 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2837 esac
2838 host=$ac_cv_host
2839 ac_save_IFS=$IFS; IFS='-'
2840 set x $ac_cv_host
2841 shift
2842 host_cpu=$1
2843 host_vendor=$2
2844 shift; shift
2845 # Remember, the first character of IFS is used to create $*,
2846 # except with old shells:
2847 host_os=$*
2848 IFS=$ac_save_IFS
2849 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2850
2851
2852 DEPDIR="${am__leading_dot}deps"
2853
2854 ac_config_commands="$ac_config_commands depfiles"
2855
2856
2857 am_make=${MAKE-make}
2858 cat > confinc << 'END'
2859 am__doit:
2860         @echo this is the am__doit target
2861 .PHONY: am__doit
2862 END
2863 # If we don't find an include directive, just comment out the code.
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2865 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2866 am__include="#"
2867 am__quote=
2868 _am_result=none
2869 # First try GNU make style include.
2870 echo "include confinc" > confmf
2871 # Ignore all kinds of additional output from `make'.
2872 case `$am_make -s -f confmf 2> /dev/null` in #(
2873 *the\ am__doit\ target*)
2874   am__include=include
2875   am__quote=
2876   _am_result=GNU
2877   ;;
2878 esac
2879 # Now try BSD make style include.
2880 if test "$am__include" = "#"; then
2881    echo '.include "confinc"' > confmf
2882    case `$am_make -s -f confmf 2> /dev/null` in #(
2883    *the\ am__doit\ target*)
2884      am__include=.include
2885      am__quote="\""
2886      _am_result=BSD
2887      ;;
2888    esac
2889 fi
2890
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2893 $as_echo "$_am_result" >&6; }
2894 rm -f confinc confmf
2895
2896 # Check whether --enable-dependency-tracking was given.
2897 if test "${enable_dependency_tracking+set}" = set; then :
2898   enableval=$enable_dependency_tracking;
2899 fi
2900
2901 if test "x$enable_dependency_tracking" != xno; then
2902   am_depcomp="$ac_aux_dir/depcomp"
2903   AMDEPBACKSLASH='\'
2904 fi
2905  if test "x$enable_dependency_tracking" != xno; then
2906   AMDEP_TRUE=
2907   AMDEP_FALSE='#'
2908 else
2909   AMDEP_TRUE='#'
2910   AMDEP_FALSE=
2911 fi
2912
2913
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test -n "$ac_tool_prefix"; then
2920   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$CC"; then
2928   ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956
2957 fi
2958 if test -z "$ac_cv_prog_CC"; then
2959   ac_ct_CC=$CC
2960   # Extract the first word of "gcc", so it can be a program name with args.
2961 set dummy gcc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test -n "$ac_ct_CC"; then
2968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975     for ac_exec_ext in '' $ac_executable_extensions; do
2976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977     ac_cv_prog_ac_ct_CC="gcc"
2978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982   done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990 $as_echo "$ac_ct_CC" >&6; }
2991 else
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996   if test "x$ac_ct_CC" = x; then
2997     CC=""
2998   else
2999     case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005     CC=$ac_ct_CC
3006   fi
3007 else
3008   CC="$ac_cv_prog_CC"
3009 fi
3010
3011 if test -z "$CC"; then
3012           if test -n "$ac_tool_prefix"; then
3013     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_CC+set}" = set; then :
3018   $as_echo_n "(cached) " >&6
3019 else
3020   if test -n "$CC"; then
3021   ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026   IFS=$as_save_IFS
3027   test -z "$as_dir" && as_dir=.
3028     for ac_exec_ext in '' $ac_executable_extensions; do
3029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030     ac_cv_prog_CC="${ac_tool_prefix}cc"
3031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035   done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050   fi
3051 fi
3052 if test -z "$CC"; then
3053   # Extract the first word of "cc", so it can be a program name with args.
3054 set dummy cc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   if test -n "$CC"; then
3061   ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063   ac_prog_rejected=no
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069     for ac_exec_ext in '' $ac_executable_extensions; do
3070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3072        ac_prog_rejected=yes
3073        continue
3074      fi
3075     ac_cv_prog_CC="cc"
3076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077     break 2
3078   fi
3079 done
3080   done
3081 IFS=$as_save_IFS
3082
3083 if test $ac_prog_rejected = yes; then
3084   # We found a bogon in the path, so make sure we never use it.
3085   set dummy $ac_cv_prog_CC
3086   shift
3087   if test $# != 0; then
3088     # We chose a different compiler from the bogus one.
3089     # However, it has the same basename, so the bogon will be chosen
3090     # first if we set CC to just the basename; use the full file name.
3091     shift
3092     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3093   fi
3094 fi
3095 fi
3096 fi
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107 fi
3108 if test -z "$CC"; then
3109   if test -n "$ac_tool_prefix"; then
3110   for ac_prog in cl.exe
3111   do
3112     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_CC+set}" = set; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -n "$CC"; then
3120   ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127     for ac_exec_ext in '' $ac_executable_extensions; do
3128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134   done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149     test -n "$CC" && break
3150   done
3151 fi
3152 if test -z "$CC"; then
3153   ac_ct_CC=$CC
3154   for ac_prog in cl.exe
3155 do
3156   # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3161   $as_echo_n "(cached) " >&6
3162 else
3163   if test -n "$ac_ct_CC"; then
3164   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169   IFS=$as_save_IFS
3170   test -z "$as_dir" && as_dir=.
3171     for ac_exec_ext in '' $ac_executable_extensions; do
3172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173     ac_cv_prog_ac_ct_CC="$ac_prog"
3174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175     break 2
3176   fi
3177 done
3178   done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184 if test -n "$ac_ct_CC"; then
3185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186 $as_echo "$ac_ct_CC" >&6; }
3187 else
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193   test -n "$ac_ct_CC" && break
3194 done
3195
3196   if test "x$ac_ct_CC" = x; then
3197     CC=""
3198   else
3199     case $cross_compiling:$ac_tool_warned in
3200 yes:)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205     CC=$ac_ct_CC
3206   fi
3207 fi
3208
3209 fi
3210
3211
3212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details" "$LINENO" 5 ; }
3216
3217 # Provide some information about the compiler.
3218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3219 set X $ac_compile
3220 ac_compiler=$2
3221 for ac_option in --version -v -V -qversion; do
3222   { { ac_try="$ac_compiler $ac_option >&5"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3230   ac_status=$?
3231   if test -s conftest.err; then
3232     sed '10a\
3233 ... rest of stderr output deleted ...
3234          10q' conftest.err >conftest.er1
3235     cat conftest.er1 >&5
3236   fi
3237   rm -f conftest.er1 conftest.err
3238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239   test $ac_status = 0; }
3240 done
3241
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 ac_clean_files_save=$ac_clean_files
3254 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3255 # Try to create an executable without -o first, disregard a.out.
3256 # It will help us diagnose broken compilers, and finding out an intuition
3257 # of exeext.
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3259 $as_echo_n "checking whether the C compiler works... " >&6; }
3260 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3261
3262 # The possible output files:
3263 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3264
3265 ac_rmfiles=
3266 for ac_file in $ac_files
3267 do
3268   case $ac_file in
3269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3270     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3271   esac
3272 done
3273 rm -f $ac_rmfiles
3274
3275 if { { ac_try="$ac_link_default"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282   (eval "$ac_link_default") 2>&5
3283   ac_status=$?
3284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285   test $ac_status = 0; }; then :
3286   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3287 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3288 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3289 # so that the user can short-circuit this test for compilers unknown to
3290 # Autoconf.
3291 for ac_file in $ac_files ''
3292 do
3293   test -f "$ac_file" || continue
3294   case $ac_file in
3295     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3296         ;;
3297     [ab].out )
3298         # We found the default executable, but exeext='' is most
3299         # certainly right.
3300         break;;
3301     *.* )
3302         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3303         then :; else
3304            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305         fi
3306         # We set ac_cv_exeext here because the later test for it is not
3307         # safe: cross compilers may not add the suffix if given an `-o'
3308         # argument, so we may need to know it at that point already.
3309         # Even if this section looks crufty: it has the advantage of
3310         # actually working.
3311         break;;
3312     * )
3313         break;;
3314   esac
3315 done
3316 test "$ac_cv_exeext" = no && ac_cv_exeext=
3317
3318 else
3319   ac_file=''
3320 fi
3321 if test -z "$ac_file"; then :
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error 77 "C compiler cannot create executables
3330 See \`config.log' for more details" "$LINENO" 5 ; }
3331 else
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 fi
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3336 $as_echo_n "checking for C compiler default output file name... " >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3338 $as_echo "$ac_file" >&6; }
3339 ac_exeext=$ac_cv_exeext
3340
3341 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3342 ac_clean_files=$ac_clean_files_save
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3344 $as_echo_n "checking for suffix of executables... " >&6; }
3345 if { { ac_try="$ac_link"
3346 case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352   (eval "$ac_link") 2>&5
3353   ac_status=$?
3354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355   test $ac_status = 0; }; then :
3356   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe'), while it won't with
3359 # `rm'.
3360 for ac_file in conftest.exe conftest conftest.*; do
3361   test -f "$ac_file" || continue
3362   case $ac_file in
3363     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365           break;;
3366     * ) break;;
3367   esac
3368 done
3369 else
3370   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details" "$LINENO" 5 ; }
3374 fi
3375 rm -f conftest conftest$ac_cv_exeext
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3377 $as_echo "$ac_cv_exeext" >&6; }
3378
3379 rm -f conftest.$ac_ext
3380 EXEEXT=$ac_cv_exeext
3381 ac_exeext=$EXEEXT
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h.  */
3384 #include <stdio.h>
3385 int
3386 main ()
3387 {
3388 FILE *f = fopen ("conftest.out", "w");
3389  return ferror (f) || fclose (f) != 0;
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 ac_clean_files="$ac_clean_files conftest.out"
3396 # Check that the compiler produces executables we can run.  If not, either
3397 # the compiler is broken, or we cross compile.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3399 $as_echo_n "checking whether we are cross compiling... " >&6; }
3400 if test "$cross_compiling" != yes; then
3401   { { ac_try="$ac_link"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408   (eval "$ac_link") 2>&5
3409   ac_status=$?
3410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411   test $ac_status = 0; }
3412   if { ac_try='./conftest$ac_cv_exeext'
3413   { { case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419   (eval "$ac_try") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422   test $ac_status = 0; }; }; then
3423     cross_compiling=no
3424   else
3425     if test "$cross_compiling" = maybe; then
3426         cross_compiling=yes
3427     else
3428         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "cannot run C compiled programs.
3431 If you meant to cross compile, use \`--host'.
3432 See \`config.log' for more details" "$LINENO" 5 ; }
3433     fi
3434   fi
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3437 $as_echo "$cross_compiling" >&6; }
3438
3439 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3440 ac_clean_files=$ac_clean_files_save
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3442 $as_echo_n "checking for suffix of object files... " >&6; }
3443 if test "${ac_cv_objext+set}" = set; then :
3444   $as_echo_n "(cached) " >&6
3445 else
3446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.o conftest.obj
3458 if { { ac_try="$ac_compile"
3459 case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465   (eval "$ac_compile") 2>&5
3466   ac_status=$?
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }; then :
3469   for ac_file in conftest.o conftest.obj conftest.*; do
3470   test -f "$ac_file" || continue;
3471   case $ac_file in
3472     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3473     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3474        break;;
3475   esac
3476 done
3477 else
3478   $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $? "cannot compute suffix of object files: cannot compile
3484 See \`config.log' for more details" "$LINENO" 5 ; }
3485 fi
3486 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3489 $as_echo "$ac_cv_objext" >&6; }
3490 OBJEXT=$ac_cv_objext
3491 ac_objext=$OBJEXT
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3494 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h.  */
3499
3500 int
3501 main ()
3502 {
3503 #ifndef __GNUC__
3504        choke me
3505 #endif
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512   ac_compiler_gnu=yes
3513 else
3514   ac_compiler_gnu=no
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3522 if test $ac_compiler_gnu = yes; then
3523   GCC=yes
3524 else
3525   GCC=
3526 fi
3527 ac_test_CFLAGS=${CFLAGS+set}
3528 ac_save_CFLAGS=$CFLAGS
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3531 if test "${ac_cv_prog_cc_g+set}" = set; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   ac_save_c_werror_flag=$ac_c_werror_flag
3535    ac_c_werror_flag=yes
3536    ac_cv_prog_cc_g=no
3537    CFLAGS="-g"
3538    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550   ac_cv_prog_cc_g=yes
3551 else
3552   CFLAGS=""
3553       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555
3556 int
3557 main ()
3558 {
3559
3560   ;
3561   return 0;
3562 }
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565
3566 else
3567   ac_c_werror_flag=$ac_save_c_werror_flag
3568          CFLAGS="-g"
3569          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h.  */
3571
3572 int
3573 main ()
3574 {
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581   ac_cv_prog_cc_g=yes
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588    ac_c_werror_flag=$ac_save_c_werror_flag
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3591 $as_echo "$ac_cv_prog_cc_g" >&6; }
3592 if test "$ac_test_CFLAGS" = set; then
3593   CFLAGS=$ac_save_CFLAGS
3594 elif test $ac_cv_prog_cc_g = yes; then
3595   if test "$GCC" = yes; then
3596     CFLAGS="-g -O2"
3597   else
3598     CFLAGS="-g"
3599   fi
3600 else
3601   if test "$GCC" = yes; then
3602     CFLAGS="-O2"
3603   else
3604     CFLAGS=
3605   fi
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3609 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   ac_cv_prog_cc_c89=no
3613 ac_save_CC=$CC
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616 #include <stdarg.h>
3617 #include <stdio.h>
3618 #include <sys/types.h>
3619 #include <sys/stat.h>
3620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3621 struct buf { int x; };
3622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623 static char *e (p, i)
3624      char **p;
3625      int i;
3626 {
3627   return p[i];
3628 }
3629 static char *f (char * (*g) (char **, int), char **p, ...)
3630 {
3631   char *s;
3632   va_list v;
3633   va_start (v,p);
3634   s = g (p, va_arg (v,int));
3635   va_end (v);
3636   return s;
3637 }
3638
3639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3640    function prototypes and stuff, but not '\xHH' hex character constants.
3641    These don't provoke an error unfortunately, instead are silently treated
3642    as 'x'.  The following induces an error, until -std is added to get
3643    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3644    array size at least.  It's necessary to write '\x00'==0 to get something
3645    that's true only with -std.  */
3646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
3648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649    inside strings and character constants.  */
3650 #define FOO(x) 'x'
3651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652
3653 int test (int i, double x);
3654 struct s1 {int (*f) (int a);};
3655 struct s2 {int (*f) (double a);};
3656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657 int argc;
3658 char **argv;
3659 int
3660 main ()
3661 {
3662 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669 do
3670   CC="$ac_save_CC $ac_arg"
3671   if ac_fn_c_try_compile "$LINENO"; then :
3672   ac_cv_prog_cc_c89=$ac_arg
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext
3675   test "x$ac_cv_prog_cc_c89" != "xno" && break
3676 done
3677 rm -f conftest.$ac_ext
3678 CC=$ac_save_CC
3679
3680 fi
3681 # AC_CACHE_VAL
3682 case "x$ac_cv_prog_cc_c89" in
3683   x)
3684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685 $as_echo "none needed" >&6; } ;;
3686   xno)
3687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688 $as_echo "unsupported" >&6; } ;;
3689   *)
3690     CC="$CC $ac_cv_prog_cc_c89"
3691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3693 esac
3694 if test "x$ac_cv_prog_cc_c89" != xno; then :
3695
3696 fi
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704 depcc="$CC"   am_compiler_list=
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3707 $as_echo_n "checking dependency style of $depcc... " >&6; }
3708 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3709   $as_echo_n "(cached) " >&6
3710 else
3711   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3712   # We make a subdir and do the tests there.  Otherwise we can end up
3713   # making bogus files that we don't know about and never remove.  For
3714   # instance it was reported that on HP-UX the gcc test will end up
3715   # making a dummy file named `D' -- because `-MD' means `put the output
3716   # in D'.
3717   mkdir conftest.dir
3718   # Copy depcomp to subdir because otherwise we won't find it if we're
3719   # using a relative directory.
3720   cp "$am_depcomp" conftest.dir
3721   cd conftest.dir
3722   # We will build objects and dependencies in a subdirectory because
3723   # it helps to detect inapplicable dependency modes.  For instance
3724   # both Tru64's cc and ICC support -MD to output dependencies as a
3725   # side effect of compilation, but ICC will put the dependencies in
3726   # the current directory while Tru64 will put them in the object
3727   # directory.
3728   mkdir sub
3729
3730   am_cv_CC_dependencies_compiler_type=none
3731   if test "$am_compiler_list" = ""; then
3732      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3733   fi
3734   am__universal=false
3735   case " $depcc " in #(
3736      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3737      esac
3738
3739   for depmode in $am_compiler_list; do
3740     # Setup a source with many dependencies, because some compilers
3741     # like to wrap large dependency lists on column 80 (with \), and
3742     # we should not choose a depcomp mode which is confused by this.
3743     #
3744     # We need to recreate these files for each test, as the compiler may
3745     # overwrite some of them when testing with obscure command lines.
3746     # This happens at least with the AIX C compiler.
3747     : > sub/conftest.c
3748     for i in 1 2 3 4 5 6; do
3749       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3750       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3751       # Solaris 8's {/usr,}/bin/sh.
3752       touch sub/conftst$i.h
3753     done
3754     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3755
3756     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3757     # mode.  It turns out that the SunPro C++ compiler does not properly
3758     # handle `-M -o', and we need to detect this.  Also, some Intel
3759     # versions had trouble with output in subdirs
3760     am__obj=sub/conftest.${OBJEXT-o}
3761     am__minus_obj="-o $am__obj"
3762     case $depmode in
3763     gcc)
3764       # This depmode causes a compiler race in universal mode.
3765       test "$am__universal" = false || continue
3766       ;;
3767     nosideeffect)
3768       # after this tag, mechanisms are not by side-effect, so they'll
3769       # only be used when explicitly requested
3770       if test "x$enable_dependency_tracking" = xyes; then
3771         continue
3772       else
3773         break
3774       fi
3775       ;;
3776     msvisualcpp | msvcmsys)
3777       # This compiler won't grok `-c -o', but also, the minuso test has
3778       # not run yet.  These depmodes are late enough in the game, and
3779       # so weak that their functioning should not be impacted.
3780       am__obj=conftest.${OBJEXT-o}
3781       am__minus_obj=
3782       ;;
3783     none) break ;;
3784     esac
3785     if depmode=$depmode \
3786        source=sub/conftest.c object=$am__obj \
3787        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3788        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3789          >/dev/null 2>conftest.err &&
3790        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3791        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3792        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3793        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3794       # icc doesn't choke on unknown options, it will just issue warnings
3795       # or remarks (even with -Werror).  So we grep stderr for any message
3796       # that says an option was ignored or not supported.
3797       # When given -MP, icc 7.0 and 7.1 complain thusly:
3798       #   icc: Command line warning: ignoring option '-M'; no argument required
3799       # The diagnosis changed in icc 8.0:
3800       #   icc: Command line remark: option '-MP' not supported
3801       if (grep 'ignoring option' conftest.err ||
3802           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3803         am_cv_CC_dependencies_compiler_type=$depmode
3804         break
3805       fi
3806     fi
3807   done
3808
3809   cd ..
3810   rm -rf conftest.dir
3811 else
3812   am_cv_CC_dependencies_compiler_type=none
3813 fi
3814
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3817 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3819
3820  if
3821   test "x$enable_dependency_tracking" != xno \
3822   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3823   am__fastdepCC_TRUE=
3824   am__fastdepCC_FALSE='#'
3825 else
3826   am__fastdepCC_TRUE='#'
3827   am__fastdepCC_FALSE=
3828 fi
3829
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3832 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3833 if test "${ac_cv_path_SED+set}" = set; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3837      for ac_i in 1 2 3 4 5 6 7; do
3838        ac_script="$ac_script$as_nl$ac_script"
3839      done
3840      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3841      { ac_script=; unset ac_script;}
3842      if test -z "$SED"; then
3843   ac_path_SED_found=false
3844   # Loop through the user's path and test for each of PROGNAME-LIST
3845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850     for ac_prog in sed gsed; do
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3853       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3854 # Check for GNU ac_path_SED and select it if it is found.
3855   # Check for GNU $ac_path_SED
3856 case `"$ac_path_SED" --version 2>&1` in
3857 *GNU*)
3858   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3859 *)
3860   ac_count=0
3861   $as_echo_n 0123456789 >"conftest.in"
3862   while :
3863   do
3864     cat "conftest.in" "conftest.in" >"conftest.tmp"
3865     mv "conftest.tmp" "conftest.in"
3866     cp "conftest.in" "conftest.nl"
3867     $as_echo '' >> "conftest.nl"
3868     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870     as_fn_arith $ac_count + 1 && ac_count=$as_val
3871     if test $ac_count -gt ${ac_path_SED_max-0}; then
3872       # Best one so far, save it but keep looking for a better one
3873       ac_cv_path_SED="$ac_path_SED"
3874       ac_path_SED_max=$ac_count
3875     fi
3876     # 10*(2^10) chars as input seems more than enough
3877     test $ac_count -gt 10 && break
3878   done
3879   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880 esac
3881
3882       $ac_path_SED_found && break 3
3883     done
3884   done
3885   done
3886 IFS=$as_save_IFS
3887   if test -z "$ac_cv_path_SED"; then
3888     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3889   fi
3890 else
3891   ac_cv_path_SED=$SED
3892 fi
3893
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3896 $as_echo "$ac_cv_path_SED" >&6; }
3897  SED="$ac_cv_path_SED"
3898   rm -f conftest.sed
3899
3900 test -z "$SED" && SED=sed
3901 Xsed="$SED -e 1s/^X//"
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3914 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3915 if test "${ac_cv_path_GREP+set}" = set; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   if test -z "$GREP"; then
3919   ac_path_GREP_found=false
3920   # Loop through the user's path and test for each of PROGNAME-LIST
3921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926     for ac_prog in grep ggrep; do
3927     for ac_exec_ext in '' $ac_executable_extensions; do
3928       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
3931   # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3933 *GNU*)
3934   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935 *)
3936   ac_count=0
3937   $as_echo_n 0123456789 >"conftest.in"
3938   while :
3939   do
3940     cat "conftest.in" "conftest.in" >"conftest.tmp"
3941     mv "conftest.tmp" "conftest.in"
3942     cp "conftest.in" "conftest.nl"
3943     $as_echo 'GREP' >> "conftest.nl"
3944     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946     as_fn_arith $ac_count + 1 && ac_count=$as_val
3947     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948       # Best one so far, save it but keep looking for a better one
3949       ac_cv_path_GREP="$ac_path_GREP"
3950       ac_path_GREP_max=$ac_count
3951     fi
3952     # 10*(2^10) chars as input seems more than enough
3953     test $ac_count -gt 10 && break
3954   done
3955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957
3958       $ac_path_GREP_found && break 3
3959     done
3960   done
3961   done
3962 IFS=$as_save_IFS
3963   if test -z "$ac_cv_path_GREP"; then
3964     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3965   fi
3966 else
3967   ac_cv_path_GREP=$GREP
3968 fi
3969
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3972 $as_echo "$ac_cv_path_GREP" >&6; }
3973  GREP="$ac_cv_path_GREP"
3974
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3977 $as_echo_n "checking for egrep... " >&6; }
3978 if test "${ac_cv_path_EGREP+set}" = set; then :
3979   $as_echo_n "(cached) " >&6
3980 else
3981   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3982    then ac_cv_path_EGREP="$GREP -E"
3983    else
3984      if test -z "$EGREP"; then
3985   ac_path_EGREP_found=false
3986   # Loop through the user's path and test for each of PROGNAME-LIST
3987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 do
3990   IFS=$as_save_IFS
3991   test -z "$as_dir" && as_dir=.
3992     for ac_prog in egrep; do
3993     for ac_exec_ext in '' $ac_executable_extensions; do
3994       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3995       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3996 # Check for GNU ac_path_EGREP and select it if it is found.
3997   # Check for GNU $ac_path_EGREP
3998 case `"$ac_path_EGREP" --version 2>&1` in
3999 *GNU*)
4000   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4001 *)
4002   ac_count=0
4003   $as_echo_n 0123456789 >"conftest.in"
4004   while :
4005   do
4006     cat "conftest.in" "conftest.in" >"conftest.tmp"
4007     mv "conftest.tmp" "conftest.in"
4008     cp "conftest.in" "conftest.nl"
4009     $as_echo 'EGREP' >> "conftest.nl"
4010     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012     as_fn_arith $ac_count + 1 && ac_count=$as_val
4013     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4014       # Best one so far, save it but keep looking for a better one
4015       ac_cv_path_EGREP="$ac_path_EGREP"
4016       ac_path_EGREP_max=$ac_count
4017     fi
4018     # 10*(2^10) chars as input seems more than enough
4019     test $ac_count -gt 10 && break
4020   done
4021   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 esac
4023
4024       $ac_path_EGREP_found && break 3
4025     done
4026   done
4027   done
4028 IFS=$as_save_IFS
4029   if test -z "$ac_cv_path_EGREP"; then
4030     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4031   fi
4032 else
4033   ac_cv_path_EGREP=$EGREP
4034 fi
4035
4036    fi
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4039 $as_echo "$ac_cv_path_EGREP" >&6; }
4040  EGREP="$ac_cv_path_EGREP"
4041
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4044 $as_echo_n "checking for fgrep... " >&6; }
4045 if test "${ac_cv_path_FGREP+set}" = set; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4049    then ac_cv_path_FGREP="$GREP -F"
4050    else
4051      if test -z "$FGREP"; then
4052   ac_path_FGREP_found=false
4053   # Loop through the user's path and test for each of PROGNAME-LIST
4054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059     for ac_prog in fgrep; do
4060     for ac_exec_ext in '' $ac_executable_extensions; do
4061       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4062       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4063 # Check for GNU ac_path_FGREP and select it if it is found.
4064   # Check for GNU $ac_path_FGREP
4065 case `"$ac_path_FGREP" --version 2>&1` in
4066 *GNU*)
4067   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4068 *)
4069   ac_count=0
4070   $as_echo_n 0123456789 >"conftest.in"
4071   while :
4072   do
4073     cat "conftest.in" "conftest.in" >"conftest.tmp"
4074     mv "conftest.tmp" "conftest.in"
4075     cp "conftest.in" "conftest.nl"
4076     $as_echo 'FGREP' >> "conftest.nl"
4077     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079     as_fn_arith $ac_count + 1 && ac_count=$as_val
4080     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4081       # Best one so far, save it but keep looking for a better one
4082       ac_cv_path_FGREP="$ac_path_FGREP"
4083       ac_path_FGREP_max=$ac_count
4084     fi
4085     # 10*(2^10) chars as input seems more than enough
4086     test $ac_count -gt 10 && break
4087   done
4088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091       $ac_path_FGREP_found && break 3
4092     done
4093   done
4094   done
4095 IFS=$as_save_IFS
4096   if test -z "$ac_cv_path_FGREP"; then
4097     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4098   fi
4099 else
4100   ac_cv_path_FGREP=$FGREP
4101 fi
4102
4103    fi
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4106 $as_echo "$ac_cv_path_FGREP" >&6; }
4107  FGREP="$ac_cv_path_FGREP"
4108
4109
4110 test -z "$GREP" && GREP=grep
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130 # Check whether --with-gnu-ld was given.
4131 if test "${with_gnu_ld+set}" = set; then :
4132   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4133 else
4134   with_gnu_ld=no
4135 fi
4136
4137 ac_prog=ld
4138 if test "$GCC" = yes; then
4139   # Check if gcc -print-prog-name=ld gives a path.
4140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4141 $as_echo_n "checking for ld used by $CC... " >&6; }
4142   case $host in
4143   *-*-mingw*)
4144     # gcc leaves a trailing carriage return which upsets mingw
4145     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4146   *)
4147     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4148   esac
4149   case $ac_prog in
4150     # Accept absolute paths.
4151     [\\/]* | ?:[\\/]*)
4152       re_direlt='/[^/][^/]*/\.\./'
4153       # Canonicalize the pathname of ld
4154       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4155       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4156         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4157       done
4158       test -z "$LD" && LD="$ac_prog"
4159       ;;
4160   "")
4161     # If it fails, then pretend we aren't using GCC.
4162     ac_prog=ld
4163     ;;
4164   *)
4165     # If it is relative, then search for the first ld in PATH.
4166     with_gnu_ld=unknown
4167     ;;
4168   esac
4169 elif test "$with_gnu_ld" = yes; then
4170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4171 $as_echo_n "checking for GNU ld... " >&6; }
4172 else
4173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4174 $as_echo_n "checking for non-GNU ld... " >&6; }
4175 fi
4176 if test "${lt_cv_path_LD+set}" = set; then :
4177   $as_echo_n "(cached) " >&6
4178 else
4179   if test -z "$LD"; then
4180   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4181   for ac_dir in $PATH; do
4182     IFS="$lt_save_ifs"
4183     test -z "$ac_dir" && ac_dir=.
4184     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4185       lt_cv_path_LD="$ac_dir/$ac_prog"
4186       # Check to see if the program is GNU ld.  I'd rather use --version,
4187       # but apparently some variants of GNU ld only accept -v.
4188       # Break only if it was the GNU/non-GNU ld that we prefer.
4189       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4190       *GNU* | *'with BFD'*)
4191         test "$with_gnu_ld" != no && break
4192         ;;
4193       *)
4194         test "$with_gnu_ld" != yes && break
4195         ;;
4196       esac
4197     fi
4198   done
4199   IFS="$lt_save_ifs"
4200 else
4201   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4202 fi
4203 fi
4204
4205 LD="$lt_cv_path_LD"
4206 if test -n "$LD"; then
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4208 $as_echo "$LD" >&6; }
4209 else
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4215 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4216 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4217   $as_echo_n "(cached) " >&6
4218 else
4219   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4220 case `$LD -v 2>&1 </dev/null` in
4221 *GNU* | *'with BFD'*)
4222   lt_cv_prog_gnu_ld=yes
4223   ;;
4224 *)
4225   lt_cv_prog_gnu_ld=no
4226   ;;
4227 esac
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4230 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4231 with_gnu_ld=$lt_cv_prog_gnu_ld
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4242 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4243 if test "${lt_cv_path_NM+set}" = set; then :
4244   $as_echo_n "(cached) " >&6
4245 else
4246   if test -n "$NM"; then
4247   # Let the user override the test.
4248   lt_cv_path_NM="$NM"
4249 else
4250   lt_nm_to_check="${ac_tool_prefix}nm"
4251   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4252     lt_nm_to_check="$lt_nm_to_check nm"
4253   fi
4254   for lt_tmp_nm in $lt_nm_to_check; do
4255     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4256     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4257       IFS="$lt_save_ifs"
4258       test -z "$ac_dir" && ac_dir=.
4259       tmp_nm="$ac_dir/$lt_tmp_nm"
4260       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4261         # Check to see if the nm accepts a BSD-compat flag.
4262         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4263         #   nm: unknown option "B" ignored
4264         # Tru64's nm complains that /dev/null is an invalid object file
4265         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4266         */dev/null* | *'Invalid file or object type'*)
4267           lt_cv_path_NM="$tmp_nm -B"
4268           break
4269           ;;
4270         *)
4271           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4272           */dev/null*)
4273             lt_cv_path_NM="$tmp_nm -p"
4274             break
4275             ;;
4276           *)
4277             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4278             continue # so that we can try to find one that supports BSD flags
4279             ;;
4280           esac
4281           ;;
4282         esac
4283       fi
4284     done
4285     IFS="$lt_save_ifs"
4286   done
4287   : ${lt_cv_path_NM=no}
4288 fi
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4291 $as_echo "$lt_cv_path_NM" >&6; }
4292 if test "$lt_cv_path_NM" != "no"; then
4293   NM="$lt_cv_path_NM"
4294 else
4295   # Didn't find any BSD compatible name lister, look for dumpbin.
4296   if test -n "$ac_tool_prefix"; then
4297   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4298   do
4299     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   if test -n "$DUMPBIN"; then
4307   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321   done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 DUMPBIN=$ac_cv_prog_DUMPBIN
4327 if test -n "$DUMPBIN"; then
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4329 $as_echo "$DUMPBIN" >&6; }
4330 else
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 fi
4334
4335
4336     test -n "$DUMPBIN" && break
4337   done
4338 fi
4339 if test -z "$DUMPBIN"; then
4340   ac_ct_DUMPBIN=$DUMPBIN
4341   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4342 do
4343   # Extract the first word of "$ac_prog", so it can be a program name with args.
4344 set dummy $ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   if test -n "$ac_ct_DUMPBIN"; then
4351   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356   IFS=$as_save_IFS
4357   test -z "$as_dir" && as_dir=.
4358     for ac_exec_ext in '' $ac_executable_extensions; do
4359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362     break 2
4363   fi
4364 done
4365   done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4371 if test -n "$ac_ct_DUMPBIN"; then
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4373 $as_echo "$ac_ct_DUMPBIN" >&6; }
4374 else
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 fi
4378
4379
4380   test -n "$ac_ct_DUMPBIN" && break
4381 done
4382
4383   if test "x$ac_ct_DUMPBIN" = x; then
4384     DUMPBIN=":"
4385   else
4386     case $cross_compiling:$ac_tool_warned in
4387 yes:)
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4390 ac_tool_warned=yes ;;
4391 esac
4392     DUMPBIN=$ac_ct_DUMPBIN
4393   fi
4394 fi
4395
4396
4397   if test "$DUMPBIN" != ":"; then
4398     NM="$DUMPBIN"
4399   fi
4400 fi
4401 test -z "$NM" && NM=nm
4402
4403
4404
4405
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4409 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4410 if test "${lt_cv_nm_interface+set}" = set; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   lt_cv_nm_interface="BSD nm"
4414   echo "int some_variable = 0;" > conftest.$ac_ext
4415   (eval echo "\"\$as_me:4415: $ac_compile\"" >&5)
4416   (eval "$ac_compile" 2>conftest.err)
4417   cat conftest.err >&5
4418   (eval echo "\"\$as_me:4418: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4419   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4420   cat conftest.err >&5
4421   (eval echo "\"\$as_me:4421: output\"" >&5)
4422   cat conftest.out >&5
4423   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4424     lt_cv_nm_interface="MS dumpbin"
4425   fi
4426   rm -f conftest*
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4429 $as_echo "$lt_cv_nm_interface" >&6; }
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4432 $as_echo_n "checking whether ln -s works... " >&6; }
4433 LN_S=$as_ln_s
4434 if test "$LN_S" = "ln -s"; then
4435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 $as_echo "yes" >&6; }
4437 else
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4439 $as_echo "no, using $LN_S" >&6; }
4440 fi
4441
4442 # find the maximum length of command line arguments
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4444 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4445 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448     i=0
4449   teststring="ABCD"
4450
4451   case $build_os in
4452   msdosdjgpp*)
4453     # On DJGPP, this test can blow up pretty badly due to problems in libc
4454     # (any single argument exceeding 2000 bytes causes a buffer overrun
4455     # during glob expansion).  Even if it were fixed, the result of this
4456     # check would be larger than it should be.
4457     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4458     ;;
4459
4460   gnu*)
4461     # Under GNU Hurd, this test is not required because there is
4462     # no limit to the length of command line arguments.
4463     # Libtool will interpret -1 as no limit whatsoever
4464     lt_cv_sys_max_cmd_len=-1;
4465     ;;
4466
4467   cygwin* | mingw* | cegcc*)
4468     # On Win9x/ME, this test blows up -- it succeeds, but takes
4469     # about 5 minutes as the teststring grows exponentially.
4470     # Worse, since 9x/ME are not pre-emptively multitasking,
4471     # you end up with a "frozen" computer, even though with patience
4472     # the test eventually succeeds (with a max line length of 256k).
4473     # Instead, let's just punt: use the minimum linelength reported by
4474     # all of the supported platforms: 8192 (on NT/2K/XP).
4475     lt_cv_sys_max_cmd_len=8192;
4476     ;;
4477
4478   amigaos*)
4479     # On AmigaOS with pdksh, this test takes hours, literally.
4480     # So we just punt and use a minimum line length of 8192.
4481     lt_cv_sys_max_cmd_len=8192;
4482     ;;
4483
4484   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4485     # This has been around since 386BSD, at least.  Likely further.
4486     if test -x /sbin/sysctl; then
4487       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4488     elif test -x /usr/sbin/sysctl; then
4489       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4490     else
4491       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4492     fi
4493     # And add a safety zone
4494     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4495     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4496     ;;
4497
4498   interix*)
4499     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4500     lt_cv_sys_max_cmd_len=196608
4501     ;;
4502
4503   osf*)
4504     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4505     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4506     # nice to cause kernel panics so lets avoid the loop below.
4507     # First set a reasonable default.
4508     lt_cv_sys_max_cmd_len=16384
4509     #
4510     if test -x /sbin/sysconfig; then
4511       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4512         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4513       esac
4514     fi
4515     ;;
4516   sco3.2v5*)
4517     lt_cv_sys_max_cmd_len=102400
4518     ;;
4519   sysv5* | sco5v6* | sysv4.2uw2*)
4520     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4521     if test -n "$kargmax"; then
4522       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4523     else
4524       lt_cv_sys_max_cmd_len=32768
4525     fi
4526     ;;
4527   *)
4528     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4529     if test -n "$lt_cv_sys_max_cmd_len"; then
4530       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4531       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4532     else
4533       # Make teststring a little bigger before we do anything with it.
4534       # a 1K string should be a reasonable start.
4535       for i in 1 2 3 4 5 6 7 8 ; do
4536         teststring=$teststring$teststring
4537       done
4538       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4539       # If test is not a shell built-in, we'll probably end up computing a
4540       # maximum length that is only half of the actual maximum length, but
4541       # we can't tell.
4542       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4543                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4544               test $i != 17 # 1/2 MB should be enough
4545       do
4546         i=`expr $i + 1`
4547         teststring=$teststring$teststring
4548       done
4549       # Only check the string length outside the loop.
4550       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4551       teststring=
4552       # Add a significant safety factor because C++ compilers can tack on
4553       # massive amounts of additional arguments before passing them to the
4554       # linker.  It appears as though 1/2 is a usable value.
4555       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4556     fi
4557     ;;
4558   esac
4559
4560 fi
4561
4562 if test -n $lt_cv_sys_max_cmd_len ; then
4563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4564 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4565 else
4566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4567 $as_echo "none" >&6; }
4568 fi
4569 max_cmd_len=$lt_cv_sys_max_cmd_len
4570
4571
4572
4573
4574
4575
4576 : ${CP="cp -f"}
4577 : ${MV="mv -f"}
4578 : ${RM="rm -f"}
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4581 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4582 # Try some XSI features
4583 xsi_shell=no
4584 ( _lt_dummy="a/b/c"
4585   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4586       = c,a/b,, \
4587     && eval 'test $(( 1 + 1 )) -eq 2 \
4588     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4589   && xsi_shell=yes
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4591 $as_echo "$xsi_shell" >&6; }
4592
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4595 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4596 lt_shell_append=no
4597 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4598     >/dev/null 2>&1 \
4599   && lt_shell_append=yes
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4601 $as_echo "$lt_shell_append" >&6; }
4602
4603
4604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4605   lt_unset=unset
4606 else
4607   lt_unset=false
4608 fi
4609
4610
4611
4612
4613
4614 # test EBCDIC or ASCII
4615 case `echo X|tr X '\101'` in
4616  A) # ASCII based system
4617     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4618   lt_SP2NL='tr \040 \012'
4619   lt_NL2SP='tr \015\012 \040\040'
4620   ;;
4621  *) # EBCDIC based system
4622   lt_SP2NL='tr \100 \n'
4623   lt_NL2SP='tr \r\n \100\100'
4624   ;;
4625 esac
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4636 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4637 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   lt_cv_ld_reload_flag='-r'
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4643 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4644 reload_flag=$lt_cv_ld_reload_flag
4645 case $reload_flag in
4646 "" | " "*) ;;
4647 *) reload_flag=" $reload_flag" ;;
4648 esac
4649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4650 case $host_os in
4651   darwin*)
4652     if test "$GCC" = yes; then
4653       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4654     else
4655       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4656     fi
4657     ;;
4658 esac
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668 if test -n "$ac_tool_prefix"; then
4669   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4670 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4674   $as_echo_n "(cached) " >&6
4675 else
4676   if test -n "$OBJDUMP"; then
4677   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682   IFS=$as_save_IFS
4683   test -z "$as_dir" && as_dir=.
4684     for ac_exec_ext in '' $ac_executable_extensions; do
4685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4686     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688     break 2
4689   fi
4690 done
4691   done
4692 IFS=$as_save_IFS
4693
4694 fi
4695 fi
4696 OBJDUMP=$ac_cv_prog_OBJDUMP
4697 if test -n "$OBJDUMP"; then
4698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4699 $as_echo "$OBJDUMP" >&6; }
4700 else
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4703 fi
4704
4705
4706 fi
4707 if test -z "$ac_cv_prog_OBJDUMP"; then
4708   ac_ct_OBJDUMP=$OBJDUMP
4709   # Extract the first word of "objdump", so it can be a program name with args.
4710 set dummy objdump; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   if test -n "$ac_ct_OBJDUMP"; then
4717   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724     for ac_exec_ext in '' $ac_executable_extensions; do
4725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4726     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731   done
4732 IFS=$as_save_IFS
4733
4734 fi
4735 fi
4736 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4737 if test -n "$ac_ct_OBJDUMP"; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4739 $as_echo "$ac_ct_OBJDUMP" >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744
4745   if test "x$ac_ct_OBJDUMP" = x; then
4746     OBJDUMP="false"
4747   else
4748     case $cross_compiling:$ac_tool_warned in
4749 yes:)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4752 ac_tool_warned=yes ;;
4753 esac
4754     OBJDUMP=$ac_ct_OBJDUMP
4755   fi
4756 else
4757   OBJDUMP="$ac_cv_prog_OBJDUMP"
4758 fi
4759
4760 test -z "$OBJDUMP" && OBJDUMP=objdump
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4771 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4772 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   lt_cv_file_magic_cmd='$MAGIC_CMD'
4776 lt_cv_file_magic_test_file=
4777 lt_cv_deplibs_check_method='unknown'
4778 # Need to set the preceding variable on all platforms that support
4779 # interlibrary dependencies.
4780 # 'none' -- dependencies not supported.
4781 # `unknown' -- same as none, but documents that we really don't know.
4782 # 'pass_all' -- all dependencies passed with no checks.
4783 # 'test_compile' -- check by making test program.
4784 # 'file_magic [[regex]]' -- check by looking for files in library path
4785 # which responds to the $file_magic_cmd with a given extended regex.
4786 # If you have `file' or equivalent on your system and you're not sure
4787 # whether `pass_all' will *always* work, you probably want this one.
4788
4789 case $host_os in
4790 aix[4-9]*)
4791   lt_cv_deplibs_check_method=pass_all
4792   ;;
4793
4794 beos*)
4795   lt_cv_deplibs_check_method=pass_all
4796   ;;
4797
4798 bsdi[45]*)
4799   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4800   lt_cv_file_magic_cmd='/usr/bin/file -L'
4801   lt_cv_file_magic_test_file=/shlib/libc.so
4802   ;;
4803
4804 cygwin*)
4805   # func_win32_libid is a shell function defined in ltmain.sh
4806   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4807   lt_cv_file_magic_cmd='func_win32_libid'
4808   ;;
4809
4810 mingw* | pw32*)
4811   # Base MSYS/MinGW do not provide the 'file' command needed by
4812   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4813   # unless we find 'file', for example because we are cross-compiling.
4814   if ( file / ) >/dev/null 2>&1; then
4815     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4816     lt_cv_file_magic_cmd='func_win32_libid'
4817   else
4818     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4819     lt_cv_file_magic_cmd='$OBJDUMP -f'
4820   fi
4821   ;;
4822
4823 cegcc)
4824   # use the weaker test based on 'objdump'. See mingw*.
4825   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4826   lt_cv_file_magic_cmd='$OBJDUMP -f'
4827   ;;
4828
4829 darwin* | rhapsody*)
4830   lt_cv_deplibs_check_method=pass_all
4831   ;;
4832
4833 freebsd* | dragonfly*)
4834   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4835     case $host_cpu in
4836     i*86 )
4837       # Not sure whether the presence of OpenBSD here was a mistake.
4838       # Let's accept both of them until this is cleared up.
4839       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4840       lt_cv_file_magic_cmd=/usr/bin/file
4841       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4842       ;;
4843     esac
4844   else
4845     lt_cv_deplibs_check_method=pass_all
4846   fi
4847   ;;
4848
4849 gnu*)
4850   lt_cv_deplibs_check_method=pass_all
4851   ;;
4852
4853 hpux10.20* | hpux11*)
4854   lt_cv_file_magic_cmd=/usr/bin/file
4855   case $host_cpu in
4856   ia64*)
4857     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4858     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4859     ;;
4860   hppa*64*)
4861     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4862     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4863     ;;
4864   *)
4865     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4866     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4867     ;;
4868   esac
4869   ;;
4870
4871 interix[3-9]*)
4872   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4873   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4874   ;;
4875
4876 irix5* | irix6* | nonstopux*)
4877   case $LD in
4878   *-32|*"-32 ") libmagic=32-bit;;
4879   *-n32|*"-n32 ") libmagic=N32;;
4880   *-64|*"-64 ") libmagic=64-bit;;
4881   *) libmagic=never-match;;
4882   esac
4883   lt_cv_deplibs_check_method=pass_all
4884   ;;
4885
4886 # This must be Linux ELF.
4887 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4888   lt_cv_deplibs_check_method=pass_all
4889   ;;
4890
4891 netbsd* | netbsdelf*-gnu)
4892   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4893     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4894   else
4895     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4896   fi
4897   ;;
4898
4899 newos6*)
4900   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4901   lt_cv_file_magic_cmd=/usr/bin/file
4902   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4903   ;;
4904
4905 *nto* | *qnx*)
4906   lt_cv_deplibs_check_method=pass_all
4907   ;;
4908
4909 openbsd*)
4910   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4911     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4912   else
4913     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4914   fi
4915   ;;
4916
4917 osf3* | osf4* | osf5*)
4918   lt_cv_deplibs_check_method=pass_all
4919   ;;
4920
4921 rdos*)
4922   lt_cv_deplibs_check_method=pass_all
4923   ;;
4924
4925 solaris*)
4926   lt_cv_deplibs_check_method=pass_all
4927   ;;
4928
4929 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4930   lt_cv_deplibs_check_method=pass_all
4931   ;;
4932
4933 sysv4 | sysv4.3*)
4934   case $host_vendor in
4935   motorola)
4936     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]'
4937     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4938     ;;
4939   ncr)
4940     lt_cv_deplibs_check_method=pass_all
4941     ;;
4942   sequent)
4943     lt_cv_file_magic_cmd='/bin/file'
4944     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4945     ;;
4946   sni)
4947     lt_cv_file_magic_cmd='/bin/file'
4948     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4949     lt_cv_file_magic_test_file=/lib/libc.so
4950     ;;
4951   siemens)
4952     lt_cv_deplibs_check_method=pass_all
4953     ;;
4954   pc)
4955     lt_cv_deplibs_check_method=pass_all
4956     ;;
4957   esac
4958   ;;
4959
4960 tpf*)
4961   lt_cv_deplibs_check_method=pass_all
4962   ;;
4963 esac
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4967 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4968 file_magic_cmd=$lt_cv_file_magic_cmd
4969 deplibs_check_method=$lt_cv_deplibs_check_method
4970 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 if test -n "$ac_tool_prefix"; then
4984   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4985 set dummy ${ac_tool_prefix}ar; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if test "${ac_cv_prog_AR+set}" = set; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   if test -n "$AR"; then
4992   ac_cv_prog_AR="$AR" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999     for ac_exec_ext in '' $ac_executable_extensions; do
5000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001     ac_cv_prog_AR="${ac_tool_prefix}ar"
5002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006   done
5007 IFS=$as_save_IFS
5008
5009 fi
5010 fi
5011 AR=$ac_cv_prog_AR
5012 if test -n "$AR"; then
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5014 $as_echo "$AR" >&6; }
5015 else
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 fi
5019
5020
5021 fi
5022 if test -z "$ac_cv_prog_AR"; then
5023   ac_ct_AR=$AR
5024   # Extract the first word of "ar", so it can be a program name with args.
5025 set dummy ar; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test -n "$ac_ct_AR"; then
5032   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039     for ac_exec_ext in '' $ac_executable_extensions; do
5040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041     ac_cv_prog_ac_ct_AR="ar"
5042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046   done
5047 IFS=$as_save_IFS
5048
5049 fi
5050 fi
5051 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5052 if test -n "$ac_ct_AR"; then
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5054 $as_echo "$ac_ct_AR" >&6; }
5055 else
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5059
5060   if test "x$ac_ct_AR" = x; then
5061     AR="false"
5062   else
5063     case $cross_compiling:$ac_tool_warned in
5064 yes:)
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5067 ac_tool_warned=yes ;;
5068 esac
5069     AR=$ac_ct_AR
5070   fi
5071 else
5072   AR="$ac_cv_prog_AR"
5073 fi
5074
5075 test -z "$AR" && AR=ar
5076 test -z "$AR_FLAGS" && AR_FLAGS=cru
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 if test -n "$ac_tool_prefix"; then
5089   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5090 set dummy ${ac_tool_prefix}strip; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if test "${ac_cv_prog_STRIP+set}" = set; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   if test -n "$STRIP"; then
5097   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111   done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 STRIP=$ac_cv_prog_STRIP
5117 if test -n "$STRIP"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5119 $as_echo "$STRIP" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126 fi
5127 if test -z "$ac_cv_prog_STRIP"; then
5128   ac_ct_STRIP=$STRIP
5129   # Extract the first word of "strip", so it can be a program name with args.
5130 set dummy strip; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   if test -n "$ac_ct_STRIP"; then
5137   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144     for ac_exec_ext in '' $ac_executable_extensions; do
5145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146     ac_cv_prog_ac_ct_STRIP="strip"
5147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151   done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5157 if test -n "$ac_ct_STRIP"; then
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5159 $as_echo "$ac_ct_STRIP" >&6; }
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165   if test "x$ac_ct_STRIP" = x; then
5166     STRIP=":"
5167   else
5168     case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174     STRIP=$ac_ct_STRIP
5175   fi
5176 else
5177   STRIP="$ac_cv_prog_STRIP"
5178 fi
5179
5180 test -z "$STRIP" && STRIP=:
5181
5182
5183
5184
5185
5186
5187 if test -n "$ac_tool_prefix"; then
5188   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   if test -n "$RANLIB"; then
5196   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203     for ac_exec_ext in '' $ac_executable_extensions; do
5204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210   done
5211 IFS=$as_save_IFS
5212
5213 fi
5214 fi
5215 RANLIB=$ac_cv_prog_RANLIB
5216 if test -n "$RANLIB"; then
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5218 $as_echo "$RANLIB" >&6; }
5219 else
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 fi
5223
5224
5225 fi
5226 if test -z "$ac_cv_prog_RANLIB"; then
5227   ac_ct_RANLIB=$RANLIB
5228   # Extract the first word of "ranlib", so it can be a program name with args.
5229 set dummy ranlib; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   if test -n "$ac_ct_RANLIB"; then
5236   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243     for ac_exec_ext in '' $ac_executable_extensions; do
5244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245     ac_cv_prog_ac_ct_RANLIB="ranlib"
5246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250   done
5251 IFS=$as_save_IFS
5252
5253 fi
5254 fi
5255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5256 if test -n "$ac_ct_RANLIB"; then
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5258 $as_echo "$ac_ct_RANLIB" >&6; }
5259 else
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5262 fi
5263
5264   if test "x$ac_ct_RANLIB" = x; then
5265     RANLIB=":"
5266   else
5267     case $cross_compiling:$ac_tool_warned in
5268 yes:)
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271 ac_tool_warned=yes ;;
5272 esac
5273     RANLIB=$ac_ct_RANLIB
5274   fi
5275 else
5276   RANLIB="$ac_cv_prog_RANLIB"
5277 fi
5278
5279 test -z "$RANLIB" && RANLIB=:
5280
5281
5282
5283
5284
5285
5286 # Determine commands to create old-style static archives.
5287 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5288 old_postinstall_cmds='chmod 644 $oldlib'
5289 old_postuninstall_cmds=
5290
5291 if test -n "$RANLIB"; then
5292   case $host_os in
5293   openbsd*)
5294     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5295     ;;
5296   *)
5297     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5298     ;;
5299   esac
5300   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5301 fi
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336 # If no C compiler was specified, use CC.
5337 LTCC=${LTCC-"$CC"}
5338
5339 # If no C compiler flags were specified, use CFLAGS.
5340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5341
5342 # Allow CC to be a program name with arguments.
5343 compiler=$CC
5344
5345
5346 # Check for command to grab the raw symbol name followed by C symbol from nm.
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5348 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5349 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352
5353 # These are sane defaults that work on at least a few old systems.
5354 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5355
5356 # Character class describing NM global symbol codes.
5357 symcode='[BCDEGRST]'
5358
5359 # Regexp to match symbols that can be accessed directly from C.
5360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5361
5362 # Define system-specific variables.
5363 case $host_os in
5364 aix*)
5365   symcode='[BCDT]'
5366   ;;
5367 cygwin* | mingw* | pw32* | cegcc*)
5368   symcode='[ABCDGISTW]'
5369   ;;
5370 hpux*)
5371   if test "$host_cpu" = ia64; then
5372     symcode='[ABCDEGRST]'
5373   fi
5374   ;;
5375 irix* | nonstopux*)
5376   symcode='[BCDEGRST]'
5377   ;;
5378 osf*)
5379   symcode='[BCDEGQRST]'
5380   ;;
5381 solaris*)
5382   symcode='[BDRT]'
5383   ;;
5384 sco3.2v5*)
5385   symcode='[DT]'
5386   ;;
5387 sysv4.2uw2*)
5388   symcode='[DT]'
5389   ;;
5390 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5391   symcode='[ABDT]'
5392   ;;
5393 sysv4)
5394   symcode='[DFNSTU]'
5395   ;;
5396 esac
5397
5398 # If we're using GNU nm, then use its standard symbol codes.
5399 case `$NM -V 2>&1` in
5400 *GNU* | *'with BFD'*)
5401   symcode='[ABCDGIRSTW]' ;;
5402 esac
5403
5404 # Transform an extracted symbol line into a proper C declaration.
5405 # Some systems (esp. on ia64) link data and code symbols differently,
5406 # so use this general approach.
5407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5408
5409 # Transform an extracted symbol line into symbol name and symbol address
5410 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5411 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'"
5412
5413 # Handle CRLF in mingw tool chain
5414 opt_cr=
5415 case $build_os in
5416 mingw*)
5417   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5418   ;;
5419 esac
5420
5421 # Try without a prefix underscore, then with it.
5422 for ac_symprfx in "" "_"; do
5423
5424   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5425   symxfrm="\\1 $ac_symprfx\\2 \\2"
5426
5427   # Write the raw and C identifiers.
5428   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5429     # Fake it for dumpbin and say T for any non-static function
5430     # and D for any global variable.
5431     # Also find C++ and __fastcall symbols from MSVC++,
5432     # which start with @ or ?.
5433     lt_cv_sys_global_symbol_pipe="$AWK '"\
5434 "     {last_section=section; section=\$ 3};"\
5435 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5436 "     \$ 0!~/External *\|/{next};"\
5437 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5438 "     {if(hide[section]) next};"\
5439 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5440 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5441 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5442 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5443 "     ' prfx=^$ac_symprfx"
5444   else
5445     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5446   fi
5447
5448   # Check to see that the pipe works correctly.
5449   pipe_works=no
5450
5451   rm -f conftest*
5452   cat > conftest.$ac_ext <<_LT_EOF
5453 #ifdef __cplusplus
5454 extern "C" {
5455 #endif
5456 char nm_test_var;
5457 void nm_test_func(void);
5458 void nm_test_func(void){}
5459 #ifdef __cplusplus
5460 }
5461 #endif
5462 int main(){nm_test_var='a';nm_test_func();return(0);}
5463 _LT_EOF
5464
5465   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5466   (eval $ac_compile) 2>&5
5467   ac_status=$?
5468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5469   test $ac_status = 0; }; then
5470     # Now try to grab the symbols.
5471     nlist=conftest.nm
5472     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5473   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5474   ac_status=$?
5475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476   test $ac_status = 0; } && test -s "$nlist"; then
5477       # Try sorting and uniquifying the output.
5478       if sort "$nlist" | uniq > "$nlist"T; then
5479         mv -f "$nlist"T "$nlist"
5480       else
5481         rm -f "$nlist"T
5482       fi
5483
5484       # Make sure that we snagged all the symbols we need.
5485       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5486         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5487           cat <<_LT_EOF > conftest.$ac_ext
5488 #ifdef __cplusplus
5489 extern "C" {
5490 #endif
5491
5492 _LT_EOF
5493           # Now generate the symbol file.
5494           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5495
5496           cat <<_LT_EOF >> conftest.$ac_ext
5497
5498 /* The mapping between symbol names and symbols.  */
5499 const struct {
5500   const char *name;
5501   void       *address;
5502 }
5503 lt__PROGRAM__LTX_preloaded_symbols[] =
5504 {
5505   { "@PROGRAM@", (void *) 0 },
5506 _LT_EOF
5507           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5508           cat <<\_LT_EOF >> conftest.$ac_ext
5509   {0, (void *) 0}
5510 };
5511
5512 /* This works around a problem in FreeBSD linker */
5513 #ifdef FREEBSD_WORKAROUND
5514 static const void *lt_preloaded_setup() {
5515   return lt__PROGRAM__LTX_preloaded_symbols;
5516 }
5517 #endif
5518
5519 #ifdef __cplusplus
5520 }
5521 #endif
5522 _LT_EOF
5523           # Now try linking the two files.
5524           mv conftest.$ac_objext conftstm.$ac_objext
5525           lt_save_LIBS="$LIBS"
5526           lt_save_CFLAGS="$CFLAGS"
5527           LIBS="conftstm.$ac_objext"
5528           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5529           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5530   (eval $ac_link) 2>&5
5531   ac_status=$?
5532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5533   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5534             pipe_works=yes
5535           fi
5536           LIBS="$lt_save_LIBS"
5537           CFLAGS="$lt_save_CFLAGS"
5538         else
5539           echo "cannot find nm_test_func in $nlist" >&5
5540         fi
5541       else
5542         echo "cannot find nm_test_var in $nlist" >&5
5543       fi
5544     else
5545       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5546     fi
5547   else
5548     echo "$progname: failed program was:" >&5
5549     cat conftest.$ac_ext >&5
5550   fi
5551   rm -rf conftest* conftst*
5552
5553   # Do not use the global_symbol_pipe unless it works.
5554   if test "$pipe_works" = yes; then
5555     break
5556   else
5557     lt_cv_sys_global_symbol_pipe=
5558   fi
5559 done
5560
5561 fi
5562
5563 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5564   lt_cv_sys_global_symbol_to_cdecl=
5565 fi
5566 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5568 $as_echo "failed" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5571 $as_echo "ok" >&6; }
5572 fi
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 # Check whether --enable-libtool-lock was given.
5597 if test "${enable_libtool_lock+set}" = set; then :
5598   enableval=$enable_libtool_lock;
5599 fi
5600
5601 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5602
5603 # Some flags need to be propagated to the compiler or linker for good
5604 # libtool support.
5605 case $host in
5606 ia64-*-hpux*)
5607   # Find out which ABI we are using.
5608   echo 'int i;' > conftest.$ac_ext
5609   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5610   (eval $ac_compile) 2>&5
5611   ac_status=$?
5612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613   test $ac_status = 0; }; then
5614     case `/usr/bin/file conftest.$ac_objext` in
5615       *ELF-32*)
5616         HPUX_IA64_MODE="32"
5617         ;;
5618       *ELF-64*)
5619         HPUX_IA64_MODE="64"
5620         ;;
5621     esac
5622   fi
5623   rm -rf conftest*
5624   ;;
5625 *-*-irix6*)
5626   # Find out which ABI we are using.
5627   echo '#line 5627 "configure"' > conftest.$ac_ext
5628   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5629   (eval $ac_compile) 2>&5
5630   ac_status=$?
5631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632   test $ac_status = 0; }; then
5633     if test "$lt_cv_prog_gnu_ld" = yes; then
5634       case `/usr/bin/file conftest.$ac_objext` in
5635         *32-bit*)
5636           LD="${LD-ld} -melf32bsmip"
5637           ;;
5638         *N32*)
5639           LD="${LD-ld} -melf32bmipn32"
5640           ;;
5641         *64-bit*)
5642           LD="${LD-ld} -melf64bmip"
5643         ;;
5644       esac
5645     else
5646       case `/usr/bin/file conftest.$ac_objext` in
5647         *32-bit*)
5648           LD="${LD-ld} -32"
5649           ;;
5650         *N32*)
5651           LD="${LD-ld} -n32"
5652           ;;
5653         *64-bit*)
5654           LD="${LD-ld} -64"
5655           ;;
5656       esac
5657     fi
5658   fi
5659   rm -rf conftest*
5660   ;;
5661
5662 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5663 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5664   # Find out which ABI we are using.
5665   echo 'int i;' > conftest.$ac_ext
5666   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5667   (eval $ac_compile) 2>&5
5668   ac_status=$?
5669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670   test $ac_status = 0; }; then
5671     case `/usr/bin/file conftest.o` in
5672       *32-bit*)
5673         case $host in
5674           x86_64-*kfreebsd*-gnu)
5675             LD="${LD-ld} -m elf_i386_fbsd"
5676             ;;
5677           x86_64-*linux*)
5678             LD="${LD-ld} -m elf_i386"
5679             ;;
5680           ppc64-*linux*|powerpc64-*linux*)
5681             LD="${LD-ld} -m elf32ppclinux"
5682             ;;
5683           s390x-*linux*)
5684             LD="${LD-ld} -m elf_s390"
5685             ;;
5686           sparc64-*linux*)
5687             LD="${LD-ld} -m elf32_sparc"
5688             ;;
5689         esac
5690         ;;
5691       *64-bit*)
5692         case $host in
5693           x86_64-*kfreebsd*-gnu)
5694             LD="${LD-ld} -m elf_x86_64_fbsd"
5695             ;;
5696           x86_64-*linux*)
5697             LD="${LD-ld} -m elf_x86_64"
5698             ;;
5699           ppc*-*linux*|powerpc*-*linux*)
5700             LD="${LD-ld} -m elf64ppc"
5701             ;;
5702           s390*-*linux*|s390*-*tpf*)
5703             LD="${LD-ld} -m elf64_s390"
5704             ;;
5705           sparc*-*linux*)
5706             LD="${LD-ld} -m elf64_sparc"
5707             ;;
5708         esac
5709         ;;
5710     esac
5711   fi
5712   rm -rf conftest*
5713   ;;
5714
5715 *-*-sco3.2v5*)
5716   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5717   SAVE_CFLAGS="$CFLAGS"
5718   CFLAGS="$CFLAGS -belf"
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5720 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5721 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   ac_ext=c
5725 ac_cpp='$CPP $CPPFLAGS'
5726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729
5730      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h.  */
5732
5733 int
5734 main ()
5735 {
5736
5737   ;
5738   return 0;
5739 }
5740 _ACEOF
5741 if ac_fn_c_try_link "$LINENO"; then :
5742   lt_cv_cc_needs_belf=yes
5743 else
5744   lt_cv_cc_needs_belf=no
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext \
5747     conftest$ac_exeext conftest.$ac_ext
5748      ac_ext=c
5749 ac_cpp='$CPP $CPPFLAGS'
5750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5753
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5756 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5757   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5758     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5759     CFLAGS="$SAVE_CFLAGS"
5760   fi
5761   ;;
5762 sparc*-*solaris*)
5763   # Find out which ABI we are using.
5764   echo 'int i;' > conftest.$ac_ext
5765   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5766   (eval $ac_compile) 2>&5
5767   ac_status=$?
5768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769   test $ac_status = 0; }; then
5770     case `/usr/bin/file conftest.o` in
5771     *64-bit*)
5772       case $lt_cv_prog_gnu_ld in
5773       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5774       *)
5775         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5776           LD="${LD-ld} -64"
5777         fi
5778         ;;
5779       esac
5780       ;;
5781     esac
5782   fi
5783   rm -rf conftest*
5784   ;;
5785 esac
5786
5787 need_locks="$enable_libtool_lock"
5788
5789
5790   case $host_os in
5791     rhapsody* | darwin*)
5792     if test -n "$ac_tool_prefix"; then
5793   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5798   $as_echo_n "(cached) " >&6
5799 else
5800   if test -n "$DSYMUTIL"; then
5801   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5821 if test -n "$DSYMUTIL"; then
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5823 $as_echo "$DSYMUTIL" >&6; }
5824 else
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829
5830 fi
5831 if test -z "$ac_cv_prog_DSYMUTIL"; then
5832   ac_ct_DSYMUTIL=$DSYMUTIL
5833   # Extract the first word of "dsymutil", so it can be a program name with args.
5834 set dummy dsymutil; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   if test -n "$ac_ct_DSYMUTIL"; then
5841   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848     for ac_exec_ext in '' $ac_executable_extensions; do
5849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855   done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5861 if test -n "$ac_ct_DSYMUTIL"; then
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5863 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5864 else
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869   if test "x$ac_ct_DSYMUTIL" = x; then
5870     DSYMUTIL=":"
5871   else
5872     case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878     DSYMUTIL=$ac_ct_DSYMUTIL
5879   fi
5880 else
5881   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5882 fi
5883
5884     if test -n "$ac_tool_prefix"; then
5885   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   if test -n "$NMEDIT"; then
5893   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900     for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907   done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 NMEDIT=$ac_cv_prog_NMEDIT
5913 if test -n "$NMEDIT"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5915 $as_echo "$NMEDIT" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921
5922 fi
5923 if test -z "$ac_cv_prog_NMEDIT"; then
5924   ac_ct_NMEDIT=$NMEDIT
5925   # Extract the first word of "nmedit", so it can be a program name with args.
5926 set dummy nmedit; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$ac_ct_NMEDIT"; then
5933   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5953 if test -n "$ac_ct_NMEDIT"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5955 $as_echo "$ac_ct_NMEDIT" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961   if test "x$ac_ct_NMEDIT" = x; then
5962     NMEDIT=":"
5963   else
5964     case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970     NMEDIT=$ac_ct_NMEDIT
5971   fi
5972 else
5973   NMEDIT="$ac_cv_prog_NMEDIT"
5974 fi
5975
5976     if test -n "$ac_tool_prefix"; then
5977   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if test "${ac_cv_prog_LIPO+set}" = set; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   if test -n "$LIPO"; then
5985   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990   IFS=$as_save_IFS
5991   test -z "$as_dir" && as_dir=.
5992     for ac_exec_ext in '' $ac_executable_extensions; do
5993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996     break 2
5997   fi
5998 done
5999   done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 LIPO=$ac_cv_prog_LIPO
6005 if test -n "$LIPO"; then
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6007 $as_echo "$LIPO" >&6; }
6008 else
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013
6014 fi
6015 if test -z "$ac_cv_prog_LIPO"; then
6016   ac_ct_LIPO=$LIPO
6017   # Extract the first word of "lipo", so it can be a program name with args.
6018 set dummy lipo; ac_word=$2
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6022   $as_echo_n "(cached) " >&6
6023 else
6024   if test -n "$ac_ct_LIPO"; then
6025   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030   IFS=$as_save_IFS
6031   test -z "$as_dir" && as_dir=.
6032     for ac_exec_ext in '' $ac_executable_extensions; do
6033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034     ac_cv_prog_ac_ct_LIPO="lipo"
6035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036     break 2
6037   fi
6038 done
6039   done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6045 if test -n "$ac_ct_LIPO"; then
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6047 $as_echo "$ac_ct_LIPO" >&6; }
6048 else
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053   if test "x$ac_ct_LIPO" = x; then
6054     LIPO=":"
6055   else
6056     case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060 ac_tool_warned=yes ;;
6061 esac
6062     LIPO=$ac_ct_LIPO
6063   fi
6064 else
6065   LIPO="$ac_cv_prog_LIPO"
6066 fi
6067
6068     if test -n "$ac_tool_prefix"; then
6069   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6070 set dummy ${ac_tool_prefix}otool; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -n "$OTOOL"; then
6077   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084     for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091   done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 OTOOL=$ac_cv_prog_OTOOL
6097 if test -n "$OTOOL"; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6099 $as_echo "$OTOOL" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105
6106 fi
6107 if test -z "$ac_cv_prog_OTOOL"; then
6108   ac_ct_OTOOL=$OTOOL
6109   # Extract the first word of "otool", so it can be a program name with args.
6110 set dummy otool; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   if test -n "$ac_ct_OTOOL"; then
6117   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124     for ac_exec_ext in '' $ac_executable_extensions; do
6125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126     ac_cv_prog_ac_ct_OTOOL="otool"
6127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131   done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6137 if test -n "$ac_ct_OTOOL"; then
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6139 $as_echo "$ac_ct_OTOOL" >&6; }
6140 else
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145   if test "x$ac_ct_OTOOL" = x; then
6146     OTOOL=":"
6147   else
6148     case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152 ac_tool_warned=yes ;;
6153 esac
6154     OTOOL=$ac_ct_OTOOL
6155   fi
6156 else
6157   OTOOL="$ac_cv_prog_OTOOL"
6158 fi
6159
6160     if test -n "$ac_tool_prefix"; then
6161   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   if test -n "$OTOOL64"; then
6169   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176     for ac_exec_ext in '' $ac_executable_extensions; do
6177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183   done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 OTOOL64=$ac_cv_prog_OTOOL64
6189 if test -n "$OTOOL64"; then
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6191 $as_echo "$OTOOL64" >&6; }
6192 else
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197
6198 fi
6199 if test -z "$ac_cv_prog_OTOOL64"; then
6200   ac_ct_OTOOL64=$OTOOL64
6201   # Extract the first word of "otool64", so it can be a program name with args.
6202 set dummy otool64; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   if test -n "$ac_ct_OTOOL64"; then
6209   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218     ac_cv_prog_ac_ct_OTOOL64="otool64"
6219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223   done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6229 if test -n "$ac_ct_OTOOL64"; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6231 $as_echo "$ac_ct_OTOOL64" >&6; }
6232 else
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237   if test "x$ac_ct_OTOOL64" = x; then
6238     OTOOL64=":"
6239   else
6240     case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6245 esac
6246     OTOOL64=$ac_ct_OTOOL64
6247   fi
6248 else
6249   OTOOL64="$ac_cv_prog_OTOOL64"
6250 fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6279 $as_echo_n "checking for -single_module linker flag... " >&6; }
6280 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6281   $as_echo_n "(cached) " >&6
6282 else
6283   lt_cv_apple_cc_single_mod=no
6284       if test -z "${LT_MULTI_MODULE}"; then
6285         # By default we will add the -single_module flag. You can override
6286         # by either setting the environment variable LT_MULTI_MODULE
6287         # non-empty at configure time, or by adding -multi_module to the
6288         # link flags.
6289         rm -rf libconftest.dylib*
6290         echo "int foo(void){return 1;}" > conftest.c
6291         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6292 -dynamiclib -Wl,-single_module conftest.c" >&5
6293         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6294           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6295         _lt_result=$?
6296         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6297           lt_cv_apple_cc_single_mod=yes
6298         else
6299           cat conftest.err >&5
6300         fi
6301         rm -rf libconftest.dylib*
6302         rm -f conftest.*
6303       fi
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6306 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6308 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6309 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   lt_cv_ld_exported_symbols_list=no
6313       save_LDFLAGS=$LDFLAGS
6314       echo "_main" > conftest.sym
6315       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6316       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h.  */
6318
6319 int
6320 main ()
6321 {
6322
6323   ;
6324   return 0;
6325 }
6326 _ACEOF
6327 if ac_fn_c_try_link "$LINENO"; then :
6328   lt_cv_ld_exported_symbols_list=yes
6329 else
6330   lt_cv_ld_exported_symbols_list=no
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext \
6333     conftest$ac_exeext conftest.$ac_ext
6334         LDFLAGS="$save_LDFLAGS"
6335
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6338 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6339     case $host_os in
6340     rhapsody* | darwin1.[012])
6341       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6342     darwin1.*)
6343       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6344     darwin*) # darwin 5.x on
6345       # if running on 10.5 or later, the deployment target defaults
6346       # to the OS version, if on x86, and 10.4, the deployment
6347       # target defaults to 10.4. Don't you love it?
6348       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6349         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6350           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6351         10.[012]*)
6352           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6353         10.*)
6354           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6355       esac
6356     ;;
6357   esac
6358     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6359       _lt_dar_single_mod='$single_module'
6360     fi
6361     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6362       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6363     else
6364       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6365     fi
6366     if test "$DSYMUTIL" != ":"; then
6367       _lt_dsymutil='~$DSYMUTIL $lib || :'
6368     else
6369       _lt_dsymutil=
6370     fi
6371     ;;
6372   esac
6373
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6381 # On Suns, sometimes $CPP names a directory.
6382 if test -n "$CPP" && test -d "$CPP"; then
6383   CPP=
6384 fi
6385 if test -z "$CPP"; then
6386   if test "${ac_cv_prog_CPP+set}" = set; then :
6387   $as_echo_n "(cached) " >&6
6388 else
6389       # Double quotes because CPP needs to be expanded
6390     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6391     do
6392       ac_preproc_ok=false
6393 for ac_c_preproc_warn_flag in '' yes
6394 do
6395   # Use a header file that comes with gcc, so configuring glibc
6396   # with a fresh cross-compiler works.
6397   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6398   # <limits.h> exists even on freestanding compilers.
6399   # On the NeXT, cc -E runs the code through the compiler's parser,
6400   # not just through cpp. "Syntax error" is here to catch this case.
6401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h.  */
6403 #ifdef __STDC__
6404 # include <limits.h>
6405 #else
6406 # include <assert.h>
6407 #endif
6408                      Syntax error
6409 _ACEOF
6410 if ac_fn_c_try_cpp "$LINENO"; then :
6411
6412 else
6413   # Broken: fails on valid input.
6414 continue
6415 fi
6416 rm -f conftest.err conftest.i conftest.$ac_ext
6417
6418   # OK, works on sane cases.  Now check whether nonexistent headers
6419   # can be detected and how.
6420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h.  */
6422 #include <ac_nonexistent.h>
6423 _ACEOF
6424 if ac_fn_c_try_cpp "$LINENO"; then :
6425   # Broken: success on invalid input.
6426 continue
6427 else
6428   # Passes both tests.
6429 ac_preproc_ok=:
6430 break
6431 fi
6432 rm -f conftest.err conftest.i conftest.$ac_ext
6433
6434 done
6435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6436 rm -f conftest.i conftest.err conftest.$ac_ext
6437 if $ac_preproc_ok; then :
6438   break
6439 fi
6440
6441     done
6442     ac_cv_prog_CPP=$CPP
6443
6444 fi
6445   CPP=$ac_cv_prog_CPP
6446 else
6447   ac_cv_prog_CPP=$CPP
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6450 $as_echo "$CPP" >&6; }
6451 ac_preproc_ok=false
6452 for ac_c_preproc_warn_flag in '' yes
6453 do
6454   # Use a header file that comes with gcc, so configuring glibc
6455   # with a fresh cross-compiler works.
6456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6457   # <limits.h> exists even on freestanding compilers.
6458   # On the NeXT, cc -E runs the code through the compiler's parser,
6459   # not just through cpp. "Syntax error" is here to catch this case.
6460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h.  */
6462 #ifdef __STDC__
6463 # include <limits.h>
6464 #else
6465 # include <assert.h>
6466 #endif
6467                      Syntax error
6468 _ACEOF
6469 if ac_fn_c_try_cpp "$LINENO"; then :
6470
6471 else
6472   # Broken: fails on valid input.
6473 continue
6474 fi
6475 rm -f conftest.err conftest.i conftest.$ac_ext
6476
6477   # OK, works on sane cases.  Now check whether nonexistent headers
6478   # can be detected and how.
6479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h.  */
6481 #include <ac_nonexistent.h>
6482 _ACEOF
6483 if ac_fn_c_try_cpp "$LINENO"; then :
6484   # Broken: success on invalid input.
6485 continue
6486 else
6487   # Passes both tests.
6488 ac_preproc_ok=:
6489 break
6490 fi
6491 rm -f conftest.err conftest.i conftest.$ac_ext
6492
6493 done
6494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6495 rm -f conftest.i conftest.err conftest.$ac_ext
6496 if $ac_preproc_ok; then :
6497
6498 else
6499   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6501 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6502 See \`config.log' for more details" "$LINENO" 5 ; }
6503 fi
6504
6505 ac_ext=c
6506 ac_cpp='$CPP $CPPFLAGS'
6507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6513 $as_echo_n "checking for ANSI C header files... " >&6; }
6514 if test "${ac_cv_header_stdc+set}" = set; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h.  */
6519 #include <stdlib.h>
6520 #include <stdarg.h>
6521 #include <string.h>
6522 #include <float.h>
6523
6524 int
6525 main ()
6526 {
6527
6528   ;
6529   return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533   ac_cv_header_stdc=yes
6534 else
6535   ac_cv_header_stdc=no
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538
6539 if test $ac_cv_header_stdc = yes; then
6540   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h.  */
6543 #include <string.h>
6544
6545 _ACEOF
6546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6547   $EGREP "memchr" >/dev/null 2>&1; then :
6548
6549 else
6550   ac_cv_header_stdc=no
6551 fi
6552 rm -f conftest*
6553
6554 fi
6555
6556 if test $ac_cv_header_stdc = yes; then
6557   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h.  */
6560 #include <stdlib.h>
6561
6562 _ACEOF
6563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6564   $EGREP "free" >/dev/null 2>&1; then :
6565
6566 else
6567   ac_cv_header_stdc=no
6568 fi
6569 rm -f conftest*
6570
6571 fi
6572
6573 if test $ac_cv_header_stdc = yes; then
6574   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6575   if test "$cross_compiling" = yes; then :
6576   :
6577 else
6578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h.  */
6580 #include <ctype.h>
6581 #include <stdlib.h>
6582 #if ((' ' & 0x0FF) == 0x020)
6583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6585 #else
6586 # define ISLOWER(c) \
6587                    (('a' <= (c) && (c) <= 'i') \
6588                      || ('j' <= (c) && (c) <= 'r') \
6589                      || ('s' <= (c) && (c) <= 'z'))
6590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6591 #endif
6592
6593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6594 int
6595 main ()
6596 {
6597   int i;
6598   for (i = 0; i < 256; i++)
6599     if (XOR (islower (i), ISLOWER (i))
6600         || toupper (i) != TOUPPER (i))
6601       return 2;
6602   return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_run "$LINENO"; then :
6606
6607 else
6608   ac_cv_header_stdc=no
6609 fi
6610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6611   conftest.$ac_objext conftest.beam conftest.$ac_ext
6612 fi
6613
6614 fi
6615 fi
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6617 $as_echo "$ac_cv_header_stdc" >&6; }
6618 if test $ac_cv_header_stdc = yes; then
6619
6620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6621
6622 fi
6623
6624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6626                   inttypes.h stdint.h unistd.h
6627 do :
6628   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6629 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6630 "
6631 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6632   cat >>confdefs.h <<_ACEOF
6633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6634 _ACEOF
6635
6636 fi
6637
6638 done
6639
6640
6641 for ac_header in dlfcn.h
6642 do :
6643   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6644 "
6645 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6646   cat >>confdefs.h <<_ACEOF
6647 #define HAVE_DLFCN_H 1
6648 _ACEOF
6649
6650 fi
6651
6652 done
6653
6654
6655
6656 # Set options
6657
6658
6659
6660         enable_dlopen=no
6661
6662
6663   enable_win32_dll=no
6664
6665
6666             # Check whether --enable-shared was given.
6667 if test "${enable_shared+set}" = set; then :
6668   enableval=$enable_shared; p=${PACKAGE-default}
6669     case $enableval in
6670     yes) enable_shared=yes ;;
6671     no) enable_shared=no ;;
6672     *)
6673       enable_shared=no
6674       # Look at the argument we got.  We use all the common list separators.
6675       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6676       for pkg in $enableval; do
6677         IFS="$lt_save_ifs"
6678         if test "X$pkg" = "X$p"; then
6679           enable_shared=yes
6680         fi
6681       done
6682       IFS="$lt_save_ifs"
6683       ;;
6684     esac
6685 else
6686   enable_shared=yes
6687 fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697   # Check whether --enable-static was given.
6698 if test "${enable_static+set}" = set; then :
6699   enableval=$enable_static; p=${PACKAGE-default}
6700     case $enableval in
6701     yes) enable_static=yes ;;
6702     no) enable_static=no ;;
6703     *)
6704      enable_static=no
6705       # Look at the argument we got.  We use all the common list separators.
6706       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6707       for pkg in $enableval; do
6708         IFS="$lt_save_ifs"
6709         if test "X$pkg" = "X$p"; then
6710           enable_static=yes
6711         fi
6712       done
6713       IFS="$lt_save_ifs"
6714       ;;
6715     esac
6716 else
6717   enable_static=yes
6718 fi
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 # Check whether --with-pic was given.
6730 if test "${with_pic+set}" = set; then :
6731   withval=$with_pic; pic_mode="$withval"
6732 else
6733   pic_mode=default
6734 fi
6735
6736
6737 test -z "$pic_mode" && pic_mode=default
6738
6739
6740
6741
6742
6743
6744
6745   # Check whether --enable-fast-install was given.
6746 if test "${enable_fast_install+set}" = set; then :
6747   enableval=$enable_fast_install; p=${PACKAGE-default}
6748     case $enableval in
6749     yes) enable_fast_install=yes ;;
6750     no) enable_fast_install=no ;;
6751     *)
6752       enable_fast_install=no
6753       # Look at the argument we got.  We use all the common list separators.
6754       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6755       for pkg in $enableval; do
6756         IFS="$lt_save_ifs"
6757         if test "X$pkg" = "X$p"; then
6758           enable_fast_install=yes
6759         fi
6760       done
6761       IFS="$lt_save_ifs"
6762       ;;
6763     esac
6764 else
6765   enable_fast_install=yes
6766 fi
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778 # This can be used to rebuild libtool when needed
6779 LIBTOOL_DEPS="$ltmain"
6780
6781 # Always use our own libtool.
6782 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808 test -z "$LN_S" && LN_S="ln -s"
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823 if test -n "${ZSH_VERSION+set}" ; then
6824    setopt NO_GLOB_SUBST
6825 fi
6826
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6828 $as_echo_n "checking for objdir... " >&6; }
6829 if test "${lt_cv_objdir+set}" = set; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   rm -f .libs 2>/dev/null
6833 mkdir .libs 2>/dev/null
6834 if test -d .libs; then
6835   lt_cv_objdir=.libs
6836 else
6837   # MS-DOS does not allow filenames that begin with a dot.
6838   lt_cv_objdir=_libs
6839 fi
6840 rmdir .libs 2>/dev/null
6841 fi
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6843 $as_echo "$lt_cv_objdir" >&6; }
6844 objdir=$lt_cv_objdir
6845
6846
6847
6848
6849
6850 cat >>confdefs.h <<_ACEOF
6851 #define LT_OBJDIR "$lt_cv_objdir/"
6852 _ACEOF
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870 case $host_os in
6871 aix3*)
6872   # AIX sometimes has problems with the GCC collect2 program.  For some
6873   # reason, if we set the COLLECT_NAMES environment variable, the problems
6874   # vanish in a puff of smoke.
6875   if test "X${COLLECT_NAMES+set}" != Xset; then
6876     COLLECT_NAMES=
6877     export COLLECT_NAMES
6878   fi
6879   ;;
6880 esac
6881
6882 # Sed substitution that helps us do robust quoting.  It backslashifies
6883 # metacharacters that are still active within double-quoted strings.
6884 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6885
6886 # Same as above, but do not quote variable references.
6887 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6888
6889 # Sed substitution to delay expansion of an escaped shell variable in a
6890 # double_quote_subst'ed string.
6891 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6892
6893 # Sed substitution to delay expansion of an escaped single quote.
6894 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6895
6896 # Sed substitution to avoid accidental globbing in evaled expressions
6897 no_glob_subst='s/\*/\\\*/g'
6898
6899 # Global variables:
6900 ofile=libtool
6901 can_build_shared=yes
6902
6903 # All known linkers require a `.a' archive for static linking (except MSVC,
6904 # which needs '.lib').
6905 libext=a
6906
6907 with_gnu_ld="$lt_cv_prog_gnu_ld"
6908
6909 old_CC="$CC"
6910 old_CFLAGS="$CFLAGS"
6911
6912 # Set sane defaults for various variables
6913 test -z "$CC" && CC=cc
6914 test -z "$LTCC" && LTCC=$CC
6915 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6916 test -z "$LD" && LD=ld
6917 test -z "$ac_objext" && ac_objext=o
6918
6919 for cc_temp in $compiler""; do
6920   case $cc_temp in
6921     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6922     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6923     \-*) ;;
6924     *) break;;
6925   esac
6926 done
6927 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6928
6929
6930 # Only perform the check for file, if the check method requires it
6931 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6932 case $deplibs_check_method in
6933 file_magic*)
6934   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6936 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6937 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   case $MAGIC_CMD in
6941 [\\/*] |  ?:[\\/]*)
6942   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6943   ;;
6944 *)
6945   lt_save_MAGIC_CMD="$MAGIC_CMD"
6946   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6947   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6948   for ac_dir in $ac_dummy; do
6949     IFS="$lt_save_ifs"
6950     test -z "$ac_dir" && ac_dir=.
6951     if test -f $ac_dir/${ac_tool_prefix}file; then
6952       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6953       if test -n "$file_magic_test_file"; then
6954         case $deplibs_check_method in
6955         "file_magic "*)
6956           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6957           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6958           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6959             $EGREP "$file_magic_regex" > /dev/null; then
6960             :
6961           else
6962             cat <<_LT_EOF 1>&2
6963
6964 *** Warning: the command libtool uses to detect shared libraries,
6965 *** $file_magic_cmd, produces output that libtool cannot recognize.
6966 *** The result is that libtool may fail to recognize shared libraries
6967 *** as such.  This will affect the creation of libtool libraries that
6968 *** depend on shared libraries, but programs linked with such libtool
6969 *** libraries will work regardless of this problem.  Nevertheless, you
6970 *** may want to report the problem to your system manager and/or to
6971 *** bug-libtool@gnu.org
6972
6973 _LT_EOF
6974           fi ;;
6975         esac
6976       fi
6977       break
6978     fi
6979   done
6980   IFS="$lt_save_ifs"
6981   MAGIC_CMD="$lt_save_MAGIC_CMD"
6982   ;;
6983 esac
6984 fi
6985
6986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6987 if test -n "$MAGIC_CMD"; then
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6989 $as_echo "$MAGIC_CMD" >&6; }
6990 else
6991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6993 fi
6994
6995
6996
6997
6998
6999 if test -z "$lt_cv_path_MAGIC_CMD"; then
7000   if test -n "$ac_tool_prefix"; then
7001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7002 $as_echo_n "checking for file... " >&6; }
7003 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7004   $as_echo_n "(cached) " >&6
7005 else
7006   case $MAGIC_CMD in
7007 [\\/*] |  ?:[\\/]*)
7008   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7009   ;;
7010 *)
7011   lt_save_MAGIC_CMD="$MAGIC_CMD"
7012   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7013   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7014   for ac_dir in $ac_dummy; do
7015     IFS="$lt_save_ifs"
7016     test -z "$ac_dir" && ac_dir=.
7017     if test -f $ac_dir/file; then
7018       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7019       if test -n "$file_magic_test_file"; then
7020         case $deplibs_check_method in
7021         "file_magic "*)
7022           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7023           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7024           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7025             $EGREP "$file_magic_regex" > /dev/null; then
7026             :
7027           else
7028             cat <<_LT_EOF 1>&2
7029
7030 *** Warning: the command libtool uses to detect shared libraries,
7031 *** $file_magic_cmd, produces output that libtool cannot recognize.
7032 *** The result is that libtool may fail to recognize shared libraries
7033 *** as such.  This will affect the creation of libtool libraries that
7034 *** depend on shared libraries, but programs linked with such libtool
7035 *** libraries will work regardless of this problem.  Nevertheless, you
7036 *** may want to report the problem to your system manager and/or to
7037 *** bug-libtool@gnu.org
7038
7039 _LT_EOF
7040           fi ;;
7041         esac
7042       fi
7043       break
7044     fi
7045   done
7046   IFS="$lt_save_ifs"
7047   MAGIC_CMD="$lt_save_MAGIC_CMD"
7048   ;;
7049 esac
7050 fi
7051
7052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7053 if test -n "$MAGIC_CMD"; then
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7055 $as_echo "$MAGIC_CMD" >&6; }
7056 else
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060
7061
7062   else
7063     MAGIC_CMD=:
7064   fi
7065 fi
7066
7067   fi
7068   ;;
7069 esac
7070
7071 # Use C for the default configuration in the libtool script
7072
7073 lt_save_CC="$CC"
7074 ac_ext=c
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
7080
7081 # Source file extension for C test sources.
7082 ac_ext=c
7083
7084 # Object file extension for compiled C test sources.
7085 objext=o
7086 objext=$objext
7087
7088 # Code to be used in simple compile tests
7089 lt_simple_compile_test_code="int some_variable = 0;"
7090
7091 # Code to be used in simple link tests
7092 lt_simple_link_test_code='int main(){return(0);}'
7093
7094
7095
7096
7097
7098
7099
7100 # If no C compiler was specified, use CC.
7101 LTCC=${LTCC-"$CC"}
7102
7103 # If no C compiler flags were specified, use CFLAGS.
7104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7105
7106 # Allow CC to be a program name with arguments.
7107 compiler=$CC
7108
7109 # Save the default compiler, since it gets overwritten when the other
7110 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7111 compiler_DEFAULT=$CC
7112
7113 # save warnings/boilerplate of simple test code
7114 ac_outfile=conftest.$ac_objext
7115 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7117 _lt_compiler_boilerplate=`cat conftest.err`
7118 $RM conftest*
7119
7120 ac_outfile=conftest.$ac_objext
7121 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7123 _lt_linker_boilerplate=`cat conftest.err`
7124 $RM -r conftest*
7125
7126
7127 if test -n "$compiler"; then
7128
7129 lt_prog_compiler_no_builtin_flag=
7130
7131 if test "$GCC" = yes; then
7132   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7133
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7135 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   lt_cv_prog_compiler_rtti_exceptions=no
7140    ac_outfile=conftest.$ac_objext
7141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7142    lt_compiler_flag="-fno-rtti -fno-exceptions"
7143    # Insert the option either (1) after the last *FLAGS variable, or
7144    # (2) before a word containing "conftest.", or (3) at the end.
7145    # Note that $ac_compile itself does not contain backslashes and begins
7146    # with a dollar sign (not a hyphen), so the echo should work correctly.
7147    # The option is referenced via a variable to avoid confusing sed.
7148    lt_compile=`echo "$ac_compile" | $SED \
7149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7151    -e 's:$: $lt_compiler_flag:'`
7152    (eval echo "\"\$as_me:7152: $lt_compile\"" >&5)
7153    (eval "$lt_compile" 2>conftest.err)
7154    ac_status=$?
7155    cat conftest.err >&5
7156    echo "$as_me:7156: \$? = $ac_status" >&5
7157    if (exit $ac_status) && test -s "$ac_outfile"; then
7158      # The compiler can only warn and ignore the option if not recognized
7159      # So say no if there are warnings other than the usual output.
7160      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7161      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7162      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7163        lt_cv_prog_compiler_rtti_exceptions=yes
7164      fi
7165    fi
7166    $RM conftest*
7167
7168 fi
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7170 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7171
7172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7173     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7174 else
7175     :
7176 fi
7177
7178 fi
7179
7180
7181
7182
7183
7184
7185   lt_prog_compiler_wl=
7186 lt_prog_compiler_pic=
7187 lt_prog_compiler_static=
7188
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7191
7192   if test "$GCC" = yes; then
7193     lt_prog_compiler_wl='-Wl,'
7194     lt_prog_compiler_static='-static'
7195
7196     case $host_os in
7197       aix*)
7198       # All AIX code is PIC.
7199       if test "$host_cpu" = ia64; then
7200         # AIX 5 now supports IA64 processor
7201         lt_prog_compiler_static='-Bstatic'
7202       fi
7203       ;;
7204
7205     amigaos*)
7206       case $host_cpu in
7207       powerpc)
7208             # see comment about AmigaOS4 .so support
7209             lt_prog_compiler_pic='-fPIC'
7210         ;;
7211       m68k)
7212             # FIXME: we need at least 68020 code to build shared libraries, but
7213             # adding the `-m68020' flag to GCC prevents building anything better,
7214             # like `-m68040'.
7215             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7216         ;;
7217       esac
7218       ;;
7219
7220     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7221       # PIC is the default for these OSes.
7222       ;;
7223
7224     mingw* | cygwin* | pw32* | os2* | cegcc*)
7225       # This hack is so that the source file can tell whether it is being
7226       # built for inclusion in a dll (and should export symbols for example).
7227       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7228       # (--disable-auto-import) libraries
7229       lt_prog_compiler_pic='-DDLL_EXPORT'
7230       ;;
7231
7232     darwin* | rhapsody*)
7233       # PIC is the default on this platform
7234       # Common symbols not allowed in MH_DYLIB files
7235       lt_prog_compiler_pic='-fno-common'
7236       ;;
7237
7238     hpux*)
7239       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7240       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7241       # sets the default TLS model and affects inlining.
7242       case $host_cpu in
7243       hppa*64*)
7244         # +Z the default
7245         ;;
7246       *)
7247         lt_prog_compiler_pic='-fPIC'
7248         ;;
7249       esac
7250       ;;
7251
7252     interix[3-9]*)
7253       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7254       # Instead, we relocate shared libraries at runtime.
7255       ;;
7256
7257     msdosdjgpp*)
7258       # Just because we use GCC doesn't mean we suddenly get shared libraries
7259       # on systems that don't support them.
7260       lt_prog_compiler_can_build_shared=no
7261       enable_shared=no
7262       ;;
7263
7264     *nto* | *qnx*)
7265       # QNX uses GNU C++, but need to define -shared option too, otherwise
7266       # it will coredump.
7267       lt_prog_compiler_pic='-fPIC -shared'
7268       ;;
7269
7270     sysv4*MP*)
7271       if test -d /usr/nec; then
7272         lt_prog_compiler_pic=-Kconform_pic
7273       fi
7274       ;;
7275
7276     *)
7277       lt_prog_compiler_pic='-fPIC'
7278       ;;
7279     esac
7280   else
7281     # PORTME Check for flag to pass linker flags through the system compiler.
7282     case $host_os in
7283     aix*)
7284       lt_prog_compiler_wl='-Wl,'
7285       if test "$host_cpu" = ia64; then
7286         # AIX 5 now supports IA64 processor
7287         lt_prog_compiler_static='-Bstatic'
7288       else
7289         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7290       fi
7291       ;;
7292
7293     mingw* | cygwin* | pw32* | os2* | cegcc*)
7294       # This hack is so that the source file can tell whether it is being
7295       # built for inclusion in a dll (and should export symbols for example).
7296       lt_prog_compiler_pic='-DDLL_EXPORT'
7297       ;;
7298
7299     hpux9* | hpux10* | hpux11*)
7300       lt_prog_compiler_wl='-Wl,'
7301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7302       # not for PA HP-UX.
7303       case $host_cpu in
7304       hppa*64*|ia64*)
7305         # +Z the default
7306         ;;
7307       *)
7308         lt_prog_compiler_pic='+Z'
7309         ;;
7310       esac
7311       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7312       lt_prog_compiler_static='${wl}-a ${wl}archive'
7313       ;;
7314
7315     irix5* | irix6* | nonstopux*)
7316       lt_prog_compiler_wl='-Wl,'
7317       # PIC (with -KPIC) is the default.
7318       lt_prog_compiler_static='-non_shared'
7319       ;;
7320
7321     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7322       case $cc_basename in
7323       # old Intel for x86_64 which still supported -KPIC.
7324       ecc*)
7325         lt_prog_compiler_wl='-Wl,'
7326         lt_prog_compiler_pic='-KPIC'
7327         lt_prog_compiler_static='-static'
7328         ;;
7329       # icc used to be incompatible with GCC.
7330       # ICC 10 doesn't accept -KPIC any more.
7331       icc* | ifort*)
7332         lt_prog_compiler_wl='-Wl,'
7333         lt_prog_compiler_pic='-fPIC'
7334         lt_prog_compiler_static='-static'
7335         ;;
7336       # Lahey Fortran 8.1.
7337       lf95*)
7338         lt_prog_compiler_wl='-Wl,'
7339         lt_prog_compiler_pic='--shared'
7340         lt_prog_compiler_static='--static'
7341         ;;
7342       pgcc* | pgf77* | pgf90* | pgf95*)
7343         # Portland Group compilers (*not* the Pentium gcc compiler,
7344         # which looks to be a dead project)
7345         lt_prog_compiler_wl='-Wl,'
7346         lt_prog_compiler_pic='-fpic'
7347         lt_prog_compiler_static='-Bstatic'
7348         ;;
7349       ccc*)
7350         lt_prog_compiler_wl='-Wl,'
7351         # All Alpha code is PIC.
7352         lt_prog_compiler_static='-non_shared'
7353         ;;
7354       xl*)
7355         # IBM XL C 8.0/Fortran 10.1 on PPC
7356         lt_prog_compiler_wl='-Wl,'
7357         lt_prog_compiler_pic='-qpic'
7358         lt_prog_compiler_static='-qstaticlink'
7359         ;;
7360       *)
7361         case `$CC -V 2>&1 | sed 5q` in
7362         *Sun\ C*)
7363           # Sun C 5.9
7364           lt_prog_compiler_pic='-KPIC'
7365           lt_prog_compiler_static='-Bstatic'
7366           lt_prog_compiler_wl='-Wl,'
7367           ;;
7368         *Sun\ F*)
7369           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7370           lt_prog_compiler_pic='-KPIC'
7371           lt_prog_compiler_static='-Bstatic'
7372           lt_prog_compiler_wl=''
7373           ;;
7374         esac
7375         ;;
7376       esac
7377       ;;
7378
7379     newsos6)
7380       lt_prog_compiler_pic='-KPIC'
7381       lt_prog_compiler_static='-Bstatic'
7382       ;;
7383
7384     *nto* | *qnx*)
7385       # QNX uses GNU C++, but need to define -shared option too, otherwise
7386       # it will coredump.
7387       lt_prog_compiler_pic='-fPIC -shared'
7388       ;;
7389
7390     osf3* | osf4* | osf5*)
7391       lt_prog_compiler_wl='-Wl,'
7392       # All OSF/1 code is PIC.
7393       lt_prog_compiler_static='-non_shared'
7394       ;;
7395
7396     rdos*)
7397       lt_prog_compiler_static='-non_shared'
7398       ;;
7399
7400     solaris*)
7401       lt_prog_compiler_pic='-KPIC'
7402       lt_prog_compiler_static='-Bstatic'
7403       case $cc_basename in
7404       f77* | f90* | f95*)
7405         lt_prog_compiler_wl='-Qoption ld ';;
7406       *)
7407         lt_prog_compiler_wl='-Wl,';;
7408       esac
7409       ;;
7410
7411     sunos4*)
7412       lt_prog_compiler_wl='-Qoption ld '
7413       lt_prog_compiler_pic='-PIC'
7414       lt_prog_compiler_static='-Bstatic'
7415       ;;
7416
7417     sysv4 | sysv4.2uw2* | sysv4.3*)
7418       lt_prog_compiler_wl='-Wl,'
7419       lt_prog_compiler_pic='-KPIC'
7420       lt_prog_compiler_static='-Bstatic'
7421       ;;
7422
7423     sysv4*MP*)
7424       if test -d /usr/nec ;then
7425         lt_prog_compiler_pic='-Kconform_pic'
7426         lt_prog_compiler_static='-Bstatic'
7427       fi
7428       ;;
7429
7430     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7431       lt_prog_compiler_wl='-Wl,'
7432       lt_prog_compiler_pic='-KPIC'
7433       lt_prog_compiler_static='-Bstatic'
7434       ;;
7435
7436     unicos*)
7437       lt_prog_compiler_wl='-Wl,'
7438       lt_prog_compiler_can_build_shared=no
7439       ;;
7440
7441     uts4*)
7442       lt_prog_compiler_pic='-pic'
7443       lt_prog_compiler_static='-Bstatic'
7444       ;;
7445
7446     *)
7447       lt_prog_compiler_can_build_shared=no
7448       ;;
7449     esac
7450   fi
7451
7452 case $host_os in
7453   # For platforms which do not support PIC, -DPIC is meaningless:
7454   *djgpp*)
7455     lt_prog_compiler_pic=
7456     ;;
7457   *)
7458     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7459     ;;
7460 esac
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7462 $as_echo "$lt_prog_compiler_pic" >&6; }
7463
7464
7465
7466
7467
7468
7469 #
7470 # Check to make sure the PIC flag actually works.
7471 #
7472 if test -n "$lt_prog_compiler_pic"; then
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7475 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7476   $as_echo_n "(cached) " >&6
7477 else
7478   lt_cv_prog_compiler_pic_works=no
7479    ac_outfile=conftest.$ac_objext
7480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7481    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7482    # Insert the option either (1) after the last *FLAGS variable, or
7483    # (2) before a word containing "conftest.", or (3) at the end.
7484    # Note that $ac_compile itself does not contain backslashes and begins
7485    # with a dollar sign (not a hyphen), so the echo should work correctly.
7486    # The option is referenced via a variable to avoid confusing sed.
7487    lt_compile=`echo "$ac_compile" | $SED \
7488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7490    -e 's:$: $lt_compiler_flag:'`
7491    (eval echo "\"\$as_me:7491: $lt_compile\"" >&5)
7492    (eval "$lt_compile" 2>conftest.err)
7493    ac_status=$?
7494    cat conftest.err >&5
7495    echo "$as_me:7495: \$? = $ac_status" >&5
7496    if (exit $ac_status) && test -s "$ac_outfile"; then
7497      # The compiler can only warn and ignore the option if not recognized
7498      # So say no if there are warnings other than the usual output.
7499      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7502        lt_cv_prog_compiler_pic_works=yes
7503      fi
7504    fi
7505    $RM conftest*
7506
7507 fi
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7509 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7510
7511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7512     case $lt_prog_compiler_pic in
7513      "" | " "*) ;;
7514      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7515      esac
7516 else
7517     lt_prog_compiler_pic=
7518      lt_prog_compiler_can_build_shared=no
7519 fi
7520
7521 fi
7522
7523
7524
7525
7526
7527
7528 #
7529 # Check to make sure the static flag actually works.
7530 #
7531 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7533 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7534 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   lt_cv_prog_compiler_static_works=no
7538    save_LDFLAGS="$LDFLAGS"
7539    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7540    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7541    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7542      # The linker can only warn and ignore the option if not recognized
7543      # So say no if there are warnings
7544      if test -s conftest.err; then
7545        # Append any errors to the config.log.
7546        cat conftest.err 1>&5
7547        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7548        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7549        if diff conftest.exp conftest.er2 >/dev/null; then
7550          lt_cv_prog_compiler_static_works=yes
7551        fi
7552      else
7553        lt_cv_prog_compiler_static_works=yes
7554      fi
7555    fi
7556    $RM -r conftest*
7557    LDFLAGS="$save_LDFLAGS"
7558
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7561 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7562
7563 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7564     :
7565 else
7566     lt_prog_compiler_static=
7567 fi
7568
7569
7570
7571
7572
7573
7574
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7576 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7577 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   lt_cv_prog_compiler_c_o=no
7581    $RM -r conftest 2>/dev/null
7582    mkdir conftest
7583    cd conftest
7584    mkdir out
7585    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7586
7587    lt_compiler_flag="-o out/conftest2.$ac_objext"
7588    # Insert the option either (1) after the last *FLAGS variable, or
7589    # (2) before a word containing "conftest.", or (3) at the end.
7590    # Note that $ac_compile itself does not contain backslashes and begins
7591    # with a dollar sign (not a hyphen), so the echo should work correctly.
7592    lt_compile=`echo "$ac_compile" | $SED \
7593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595    -e 's:$: $lt_compiler_flag:'`
7596    (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
7597    (eval "$lt_compile" 2>out/conftest.err)
7598    ac_status=$?
7599    cat out/conftest.err >&5
7600    echo "$as_me:7600: \$? = $ac_status" >&5
7601    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7602    then
7603      # The compiler can only warn and ignore the option if not recognized
7604      # So say no if there are warnings
7605      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7606      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7607      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7608        lt_cv_prog_compiler_c_o=yes
7609      fi
7610    fi
7611    chmod u+w . 2>&5
7612    $RM conftest*
7613    # SGI C++ compiler will create directory out/ii_files/ for
7614    # template instantiation
7615    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7616    $RM out/* && rmdir out
7617    cd ..
7618    $RM -r conftest
7619    $RM conftest*
7620
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7623 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7624
7625
7626
7627
7628
7629
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7631 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7632 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   lt_cv_prog_compiler_c_o=no
7636    $RM -r conftest 2>/dev/null
7637    mkdir conftest
7638    cd conftest
7639    mkdir out
7640    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7641
7642    lt_compiler_flag="-o out/conftest2.$ac_objext"
7643    # Insert the option either (1) after the last *FLAGS variable, or
7644    # (2) before a word containing "conftest.", or (3) at the end.
7645    # Note that $ac_compile itself does not contain backslashes and begins
7646    # with a dollar sign (not a hyphen), so the echo should work correctly.
7647    lt_compile=`echo "$ac_compile" | $SED \
7648    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7650    -e 's:$: $lt_compiler_flag:'`
7651    (eval echo "\"\$as_me:7651: $lt_compile\"" >&5)
7652    (eval "$lt_compile" 2>out/conftest.err)
7653    ac_status=$?
7654    cat out/conftest.err >&5
7655    echo "$as_me:7655: \$? = $ac_status" >&5
7656    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7657    then
7658      # The compiler can only warn and ignore the option if not recognized
7659      # So say no if there are warnings
7660      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7661      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7662      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7663        lt_cv_prog_compiler_c_o=yes
7664      fi
7665    fi
7666    chmod u+w . 2>&5
7667    $RM conftest*
7668    # SGI C++ compiler will create directory out/ii_files/ for
7669    # template instantiation
7670    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7671    $RM out/* && rmdir out
7672    cd ..
7673    $RM -r conftest
7674    $RM conftest*
7675
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7678 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7679
7680
7681
7682
7683 hard_links="nottested"
7684 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7685   # do not overwrite the value of need_locks provided by the user
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7687 $as_echo_n "checking if we can lock with hard links... " >&6; }
7688   hard_links=yes
7689   $RM conftest*
7690   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7691   touch conftest.a
7692   ln conftest.a conftest.b 2>&5 || hard_links=no
7693   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7695 $as_echo "$hard_links" >&6; }
7696   if test "$hard_links" = no; then
7697     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7698 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7699     need_locks=warn
7700   fi
7701 else
7702   need_locks=no
7703 fi
7704
7705
7706
7707
7708
7709
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7712
7713   runpath_var=
7714   allow_undefined_flag=
7715   always_export_symbols=no
7716   archive_cmds=
7717   archive_expsym_cmds=
7718   compiler_needs_object=no
7719   enable_shared_with_static_runtimes=no
7720   export_dynamic_flag_spec=
7721   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7722   hardcode_automatic=no
7723   hardcode_direct=no
7724   hardcode_direct_absolute=no
7725   hardcode_libdir_flag_spec=
7726   hardcode_libdir_flag_spec_ld=
7727   hardcode_libdir_separator=
7728   hardcode_minus_L=no
7729   hardcode_shlibpath_var=unsupported
7730   inherit_rpath=no
7731   link_all_deplibs=unknown
7732   module_cmds=
7733   module_expsym_cmds=
7734   old_archive_from_new_cmds=
7735   old_archive_from_expsyms_cmds=
7736   thread_safe_flag_spec=
7737   whole_archive_flag_spec=
7738   # include_expsyms should be a list of space-separated symbols to be *always*
7739   # included in the symbol list
7740   include_expsyms=
7741   # exclude_expsyms can be an extended regexp of symbols to exclude
7742   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7743   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7744   # as well as any symbol that contains `d'.
7745   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7746   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7747   # platforms (ab)use it in PIC code, but their linkers get confused if
7748   # the symbol is explicitly referenced.  Since portable code cannot
7749   # rely on this symbol name, it's probably fine to never include it in
7750   # preloaded symbol tables.
7751   # Exclude shared library initialization/finalization symbols.
7752   extract_expsyms_cmds=
7753
7754   case $host_os in
7755   cygwin* | mingw* | pw32* | cegcc*)
7756     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7757     # When not using gcc, we currently assume that we are using
7758     # Microsoft Visual C++.
7759     if test "$GCC" != yes; then
7760       with_gnu_ld=no
7761     fi
7762     ;;
7763   interix*)
7764     # we just hope/assume this is gcc and not c89 (= MSVC++)
7765     with_gnu_ld=yes
7766     ;;
7767   openbsd*)
7768     with_gnu_ld=no
7769     ;;
7770   linux* | k*bsd*-gnu)
7771     link_all_deplibs=no
7772     ;;
7773   esac
7774
7775   ld_shlibs=yes
7776   if test "$with_gnu_ld" = yes; then
7777     # If archive_cmds runs LD, not CC, wlarc should be empty
7778     wlarc='${wl}'
7779
7780     # Set some defaults for GNU ld with shared library support. These
7781     # are reset later if shared libraries are not supported. Putting them
7782     # here allows them to be overridden if necessary.
7783     runpath_var=LD_RUN_PATH
7784     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7785     export_dynamic_flag_spec='${wl}--export-dynamic'
7786     # ancient GNU ld didn't support --whole-archive et. al.
7787     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7788       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7789     else
7790       whole_archive_flag_spec=
7791     fi
7792     supports_anon_versioning=no
7793     case `$LD -v 2>&1` in
7794       *GNU\ gold*) supports_anon_versioning=yes ;;
7795       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7796       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7797       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7798       *\ 2.11.*) ;; # other 2.11 versions
7799       *) supports_anon_versioning=yes ;;
7800     esac
7801
7802     # See if GNU ld supports shared libraries.
7803     case $host_os in
7804     aix[3-9]*)
7805       # On AIX/PPC, the GNU linker is very broken
7806       if test "$host_cpu" != ia64; then
7807         ld_shlibs=no
7808         cat <<_LT_EOF 1>&2
7809
7810 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7811 *** to be unable to reliably create shared libraries on AIX.
7812 *** Therefore, libtool is disabling shared libraries support.  If you
7813 *** really care for shared libraries, you may want to modify your PATH
7814 *** so that a non-GNU linker is found, and then restart.
7815
7816 _LT_EOF
7817       fi
7818       ;;
7819
7820     amigaos*)
7821       case $host_cpu in
7822       powerpc)
7823             # see comment about AmigaOS4 .so support
7824             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7825             archive_expsym_cmds=''
7826         ;;
7827       m68k)
7828             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)'
7829             hardcode_libdir_flag_spec='-L$libdir'
7830             hardcode_minus_L=yes
7831         ;;
7832       esac
7833       ;;
7834
7835     beos*)
7836       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7837         allow_undefined_flag=unsupported
7838         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7839         # support --undefined.  This deserves some investigation.  FIXME
7840         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7841       else
7842         ld_shlibs=no
7843       fi
7844       ;;
7845
7846     cygwin* | mingw* | pw32* | cegcc*)
7847       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7848       # as there is no search path for DLLs.
7849       hardcode_libdir_flag_spec='-L$libdir'
7850       allow_undefined_flag=unsupported
7851       always_export_symbols=no
7852       enable_shared_with_static_runtimes=yes
7853       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7854
7855       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7856         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7857         # If the export-symbols file already is a .def file (1st line
7858         # is EXPORTS), use it as is; otherwise, prepend...
7859         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7860           cp $export_symbols $output_objdir/$soname.def;
7861         else
7862           echo EXPORTS > $output_objdir/$soname.def;
7863           cat $export_symbols >> $output_objdir/$soname.def;
7864         fi~
7865         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7866       else
7867         ld_shlibs=no
7868       fi
7869       ;;
7870
7871     interix[3-9]*)
7872       hardcode_direct=no
7873       hardcode_shlibpath_var=no
7874       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7875       export_dynamic_flag_spec='${wl}-E'
7876       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7877       # Instead, shared libraries are loaded at an image base (0x10000000 by
7878       # default) and relocated if they conflict, which is a slow very memory
7879       # consuming and fragmenting process.  To avoid this, we pick a random,
7880       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7881       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7882       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7883       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'
7884       ;;
7885
7886     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7887       tmp_diet=no
7888       if test "$host_os" = linux-dietlibc; then
7889         case $cc_basename in
7890           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7891         esac
7892       fi
7893       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7894          && test "$tmp_diet" = no
7895       then
7896         tmp_addflag=
7897         tmp_sharedflag='-shared'
7898         case $cc_basename,$host_cpu in
7899         pgcc*)                          # Portland Group C compiler
7900           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7901           tmp_addflag=' $pic_flag'
7902           ;;
7903         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7904           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7905           tmp_addflag=' $pic_flag -Mnomain' ;;
7906         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7907           tmp_addflag=' -i_dynamic' ;;
7908         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7909           tmp_addflag=' -i_dynamic -nofor_main' ;;
7910         ifc* | ifort*)                  # Intel Fortran compiler
7911           tmp_addflag=' -nofor_main' ;;
7912         lf95*)                          # Lahey Fortran 8.1
7913           whole_archive_flag_spec=
7914           tmp_sharedflag='--shared' ;;
7915         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7916           tmp_sharedflag='-qmkshrobj'
7917           tmp_addflag= ;;
7918         esac
7919         case `$CC -V 2>&1 | sed 5q` in
7920         *Sun\ C*)                       # Sun C 5.9
7921           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7922           compiler_needs_object=yes
7923           tmp_sharedflag='-G' ;;
7924         *Sun\ F*)                       # Sun Fortran 8.3
7925           tmp_sharedflag='-G' ;;
7926         esac
7927         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7928
7929         if test "x$supports_anon_versioning" = xyes; then
7930           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7931             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7932             echo "local: *; };" >> $output_objdir/$libname.ver~
7933             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7934         fi
7935
7936         case $cc_basename in
7937         xlf*)
7938           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7939           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7940           hardcode_libdir_flag_spec=
7941           hardcode_libdir_flag_spec_ld='-rpath $libdir'
7942           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7943           if test "x$supports_anon_versioning" = xyes; then
7944             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7945               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7946               echo "local: *; };" >> $output_objdir/$libname.ver~
7947               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7948           fi
7949           ;;
7950         esac
7951       else
7952         ld_shlibs=no
7953       fi
7954       ;;
7955
7956     netbsd* | netbsdelf*-gnu)
7957       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7958         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7959         wlarc=
7960       else
7961         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7963       fi
7964       ;;
7965
7966     solaris*)
7967       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7968         ld_shlibs=no
7969         cat <<_LT_EOF 1>&2
7970
7971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7972 *** create shared libraries on Solaris systems.  Therefore, libtool
7973 *** is disabling shared libraries support.  We urge you to upgrade GNU
7974 *** binutils to release 2.9.1 or newer.  Another option is to modify
7975 *** your PATH or compiler configuration so that the native linker is
7976 *** used, and then restart.
7977
7978 _LT_EOF
7979       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7980         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7981         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7982       else
7983         ld_shlibs=no
7984       fi
7985       ;;
7986
7987     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7988       case `$LD -v 2>&1` in
7989         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7990         ld_shlibs=no
7991         cat <<_LT_EOF 1>&2
7992
7993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7994 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7995 *** is disabling shared libraries support.  We urge you to upgrade GNU
7996 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7997 *** your PATH or compiler configuration so that the native linker is
7998 *** used, and then restart.
7999
8000 _LT_EOF
8001         ;;
8002         *)
8003           # For security reasons, it is highly recommended that you always
8004           # use absolute paths for naming shared libraries, and exclude the
8005           # DT_RUNPATH tag from executables and libraries.  But doing so
8006           # requires that you compile everything twice, which is a pain.
8007           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8008             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8009             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8011           else
8012             ld_shlibs=no
8013           fi
8014         ;;
8015       esac
8016       ;;
8017
8018     sunos4*)
8019       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8020       wlarc=
8021       hardcode_direct=yes
8022       hardcode_shlibpath_var=no
8023       ;;
8024
8025     *)
8026       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8027         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8028         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8029       else
8030         ld_shlibs=no
8031       fi
8032       ;;
8033     esac
8034
8035     if test "$ld_shlibs" = no; then
8036       runpath_var=
8037       hardcode_libdir_flag_spec=
8038       export_dynamic_flag_spec=
8039       whole_archive_flag_spec=
8040     fi
8041   else
8042     # PORTME fill in a description of your system's linker (not GNU ld)
8043     case $host_os in
8044     aix3*)
8045       allow_undefined_flag=unsupported
8046       always_export_symbols=yes
8047       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'
8048       # Note: this linker hardcodes the directories in LIBPATH if there
8049       # are no directories specified by -L.
8050       hardcode_minus_L=yes
8051       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8052         # Neither direct hardcoding nor static linking is supported with a
8053         # broken collect2.
8054         hardcode_direct=unsupported
8055       fi
8056       ;;
8057
8058     aix[4-9]*)
8059       if test "$host_cpu" = ia64; then
8060         # On IA64, the linker does run time linking by default, so we don't
8061         # have to do anything special.
8062         aix_use_runtimelinking=no
8063         exp_sym_flag='-Bexport'
8064         no_entry_flag=""
8065       else
8066         # If we're using GNU nm, then we don't want the "-C" option.
8067         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8068         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8069           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8070         else
8071           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'
8072         fi
8073         aix_use_runtimelinking=no
8074
8075         # Test if we are trying to use run time linking or normal
8076         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8077         # need to do runtime linking.
8078         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8079           for ld_flag in $LDFLAGS; do
8080           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8081             aix_use_runtimelinking=yes
8082             break
8083           fi
8084           done
8085           ;;
8086         esac
8087
8088         exp_sym_flag='-bexport'
8089         no_entry_flag='-bnoentry'
8090       fi
8091
8092       # When large executables or shared objects are built, AIX ld can
8093       # have problems creating the table of contents.  If linking a library
8094       # or program results in "error TOC overflow" add -mminimal-toc to
8095       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8096       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8097
8098       archive_cmds=''
8099       hardcode_direct=yes
8100       hardcode_direct_absolute=yes
8101       hardcode_libdir_separator=':'
8102       link_all_deplibs=yes
8103       file_list_spec='${wl}-f,'
8104
8105       if test "$GCC" = yes; then
8106         case $host_os in aix4.[012]|aix4.[012].*)
8107         # We only want to do this on AIX 4.2 and lower, the check
8108         # below for broken collect2 doesn't work under 4.3+
8109           collect2name=`${CC} -print-prog-name=collect2`
8110           if test -f "$collect2name" &&
8111            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8112           then
8113           # We have reworked collect2
8114           :
8115           else
8116           # We have old collect2
8117           hardcode_direct=unsupported
8118           # It fails to find uninstalled libraries when the uninstalled
8119           # path is not listed in the libpath.  Setting hardcode_minus_L
8120           # to unsupported forces relinking
8121           hardcode_minus_L=yes
8122           hardcode_libdir_flag_spec='-L$libdir'
8123           hardcode_libdir_separator=
8124           fi
8125           ;;
8126         esac
8127         shared_flag='-shared'
8128         if test "$aix_use_runtimelinking" = yes; then
8129           shared_flag="$shared_flag "'${wl}-G'
8130         fi
8131         link_all_deplibs=no
8132       else
8133         # not using gcc
8134         if test "$host_cpu" = ia64; then
8135         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8136         # chokes on -Wl,-G. The following line is correct:
8137           shared_flag='-G'
8138         else
8139           if test "$aix_use_runtimelinking" = yes; then
8140             shared_flag='${wl}-G'
8141           else
8142             shared_flag='${wl}-bM:SRE'
8143           fi
8144         fi
8145       fi
8146
8147       export_dynamic_flag_spec='${wl}-bexpall'
8148       # It seems that -bexpall does not export symbols beginning with
8149       # underscore (_), so it is better to generate a list of symbols to export.
8150       always_export_symbols=yes
8151       if test "$aix_use_runtimelinking" = yes; then
8152         # Warning - without using the other runtime loading flags (-brtl),
8153         # -berok will link without error, but may produce a broken library.
8154         allow_undefined_flag='-berok'
8155         # Determine the default libpath from the value encoded in an
8156         # empty executable.
8157         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h.  */
8159
8160 int
8161 main ()
8162 {
8163
8164   ;
8165   return 0;
8166 }
8167 _ACEOF
8168 if ac_fn_c_try_link "$LINENO"; then :
8169
8170 lt_aix_libpath_sed='
8171     /Import File Strings/,/^$/ {
8172         /^0/ {
8173             s/^0  *\(.*\)$/\1/
8174             p
8175         }
8176     }'
8177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8178 # Check for a 64-bit object if we didn't find anything.
8179 if test -z "$aix_libpath"; then
8180   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8181 fi
8182 fi
8183 rm -f core conftest.err conftest.$ac_objext \
8184     conftest$ac_exeext conftest.$ac_ext
8185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8186
8187         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8188         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8189       else
8190         if test "$host_cpu" = ia64; then
8191           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8192           allow_undefined_flag="-z nodefs"
8193           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"
8194         else
8195          # Determine the default libpath from the value encoded in an
8196          # empty executable.
8197          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h.  */
8199
8200 int
8201 main ()
8202 {
8203
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"; then :
8209
8210 lt_aix_libpath_sed='
8211     /Import File Strings/,/^$/ {
8212         /^0/ {
8213             s/^0  *\(.*\)$/\1/
8214             p
8215         }
8216     }'
8217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8218 # Check for a 64-bit object if we didn't find anything.
8219 if test -z "$aix_libpath"; then
8220   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8221 fi
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext \
8224     conftest$ac_exeext conftest.$ac_ext
8225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8226
8227          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8228           # Warning - without using the other run time loading flags,
8229           # -berok will link without error, but may produce a broken library.
8230           no_undefined_flag=' ${wl}-bernotok'
8231           allow_undefined_flag=' ${wl}-berok'
8232           # Exported symbols can be pulled into shared objects from archives
8233           whole_archive_flag_spec='$convenience'
8234           archive_cmds_need_lc=yes
8235           # This is similar to how AIX traditionally builds its shared libraries.
8236           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'
8237         fi
8238       fi
8239       ;;
8240
8241     amigaos*)
8242       case $host_cpu in
8243       powerpc)
8244             # see comment about AmigaOS4 .so support
8245             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246             archive_expsym_cmds=''
8247         ;;
8248       m68k)
8249             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)'
8250             hardcode_libdir_flag_spec='-L$libdir'
8251             hardcode_minus_L=yes
8252         ;;
8253       esac
8254       ;;
8255
8256     bsdi[45]*)
8257       export_dynamic_flag_spec=-rdynamic
8258       ;;
8259
8260     cygwin* | mingw* | pw32* | cegcc*)
8261       # When not using gcc, we currently assume that we are using
8262       # Microsoft Visual C++.
8263       # hardcode_libdir_flag_spec is actually meaningless, as there is
8264       # no search path for DLLs.
8265       hardcode_libdir_flag_spec=' '
8266       allow_undefined_flag=unsupported
8267       # Tell ltmain to make .lib files, not .a files.
8268       libext=lib
8269       # Tell ltmain to make .dll files, not .so files.
8270       shrext_cmds=".dll"
8271       # FIXME: Setting linknames here is a bad hack.
8272       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8273       # The linker will automatically build a .lib file if we build a DLL.
8274       old_archive_from_new_cmds='true'
8275       # FIXME: Should let the user specify the lib program.
8276       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8277       fix_srcfile_path='`cygpath -w "$srcfile"`'
8278       enable_shared_with_static_runtimes=yes
8279       ;;
8280
8281     darwin* | rhapsody*)
8282
8283
8284   archive_cmds_need_lc=no
8285   hardcode_direct=no
8286   hardcode_automatic=yes
8287   hardcode_shlibpath_var=unsupported
8288   whole_archive_flag_spec=''
8289   link_all_deplibs=yes
8290   allow_undefined_flag="$_lt_dar_allow_undefined"
8291   case $cc_basename in
8292      ifort*) _lt_dar_can_shared=yes ;;
8293      *) _lt_dar_can_shared=$GCC ;;
8294   esac
8295   if test "$_lt_dar_can_shared" = "yes"; then
8296     output_verbose_link_cmd=echo
8297     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8298     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8299     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}"
8300     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}"
8301
8302   else
8303   ld_shlibs=no
8304   fi
8305
8306       ;;
8307
8308     dgux*)
8309       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8310       hardcode_libdir_flag_spec='-L$libdir'
8311       hardcode_shlibpath_var=no
8312       ;;
8313
8314     freebsd1*)
8315       ld_shlibs=no
8316       ;;
8317
8318     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8319     # support.  Future versions do this automatically, but an explicit c++rt0.o
8320     # does not break anything, and helps significantly (at the cost of a little
8321     # extra space).
8322     freebsd2.2*)
8323       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8324       hardcode_libdir_flag_spec='-R$libdir'
8325       hardcode_direct=yes
8326       hardcode_shlibpath_var=no
8327       ;;
8328
8329     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8330     freebsd2*)
8331       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8332       hardcode_direct=yes
8333       hardcode_minus_L=yes
8334       hardcode_shlibpath_var=no
8335       ;;
8336
8337     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8338     freebsd* | dragonfly*)
8339       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8340       hardcode_libdir_flag_spec='-R$libdir'
8341       hardcode_direct=yes
8342       hardcode_shlibpath_var=no
8343       ;;
8344
8345     hpux9*)
8346       if test "$GCC" = yes; then
8347         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8348       else
8349         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'
8350       fi
8351       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8352       hardcode_libdir_separator=:
8353       hardcode_direct=yes
8354
8355       # hardcode_minus_L: Not really in the search PATH,
8356       # but as the default location of the library.
8357       hardcode_minus_L=yes
8358       export_dynamic_flag_spec='${wl}-E'
8359       ;;
8360
8361     hpux10*)
8362       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8363         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8364       else
8365         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8366       fi
8367       if test "$with_gnu_ld" = no; then
8368         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8369         hardcode_libdir_flag_spec_ld='+b $libdir'
8370         hardcode_libdir_separator=:
8371         hardcode_direct=yes
8372         hardcode_direct_absolute=yes
8373         export_dynamic_flag_spec='${wl}-E'
8374         # hardcode_minus_L: Not really in the search PATH,
8375         # but as the default location of the library.
8376         hardcode_minus_L=yes
8377       fi
8378       ;;
8379
8380     hpux11*)
8381       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8382         case $host_cpu in
8383         hppa*64*)
8384           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8385           ;;
8386         ia64*)
8387           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8388           ;;
8389         *)
8390           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8391           ;;
8392         esac
8393       else
8394         case $host_cpu in
8395         hppa*64*)
8396           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8397           ;;
8398         ia64*)
8399           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8400           ;;
8401         *)
8402           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8403           ;;
8404         esac
8405       fi
8406       if test "$with_gnu_ld" = no; then
8407         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8408         hardcode_libdir_separator=:
8409
8410         case $host_cpu in
8411         hppa*64*|ia64*)
8412           hardcode_direct=no
8413           hardcode_shlibpath_var=no
8414           ;;
8415         *)
8416           hardcode_direct=yes
8417           hardcode_direct_absolute=yes
8418           export_dynamic_flag_spec='${wl}-E'
8419
8420           # hardcode_minus_L: Not really in the search PATH,
8421           # but as the default location of the library.
8422           hardcode_minus_L=yes
8423           ;;
8424         esac
8425       fi
8426       ;;
8427
8428     irix5* | irix6* | nonstopux*)
8429       if test "$GCC" = yes; then
8430         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8431         # Try to use the -exported_symbol ld option, if it does not
8432         # work, assume that -exports_file does not work either and
8433         # implicitly export all symbols.
8434         save_LDFLAGS="$LDFLAGS"
8435         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8436         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h.  */
8438 int foo(void) {}
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"; then :
8441   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8442
8443 fi
8444 rm -f core conftest.err conftest.$ac_objext \
8445     conftest$ac_exeext conftest.$ac_ext
8446         LDFLAGS="$save_LDFLAGS"
8447       else
8448         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8449         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8450       fi
8451       archive_cmds_need_lc='no'
8452       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8453       hardcode_libdir_separator=:
8454       inherit_rpath=yes
8455       link_all_deplibs=yes
8456       ;;
8457
8458     netbsd* | netbsdelf*-gnu)
8459       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8460         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8461       else
8462         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8463       fi
8464       hardcode_libdir_flag_spec='-R$libdir'
8465       hardcode_direct=yes
8466       hardcode_shlibpath_var=no
8467       ;;
8468
8469     newsos6)
8470       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8471       hardcode_direct=yes
8472       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8473       hardcode_libdir_separator=:
8474       hardcode_shlibpath_var=no
8475       ;;
8476
8477     *nto* | *qnx*)
8478       ;;
8479
8480     openbsd*)
8481       if test -f /usr/libexec/ld.so; then
8482         hardcode_direct=yes
8483         hardcode_shlibpath_var=no
8484         hardcode_direct_absolute=yes
8485         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8486           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8487           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8488           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8489           export_dynamic_flag_spec='${wl}-E'
8490         else
8491           case $host_os in
8492            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8493              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8494              hardcode_libdir_flag_spec='-R$libdir'
8495              ;;
8496            *)
8497              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8498              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8499              ;;
8500           esac
8501         fi
8502       else
8503         ld_shlibs=no
8504       fi
8505       ;;
8506
8507     os2*)
8508       hardcode_libdir_flag_spec='-L$libdir'
8509       hardcode_minus_L=yes
8510       allow_undefined_flag=unsupported
8511       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'
8512       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8513       ;;
8514
8515     osf3*)
8516       if test "$GCC" = yes; then
8517         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8518         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8519       else
8520         allow_undefined_flag=' -expect_unresolved \*'
8521         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8522       fi
8523       archive_cmds_need_lc='no'
8524       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8525       hardcode_libdir_separator=:
8526       ;;
8527
8528     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8529       if test "$GCC" = yes; then
8530         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8531         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8532         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533       else
8534         allow_undefined_flag=' -expect_unresolved \*'
8535         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8536         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~
8537         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8538
8539         # Both c and cxx compiler support -rpath directly
8540         hardcode_libdir_flag_spec='-rpath $libdir'
8541       fi
8542       archive_cmds_need_lc='no'
8543       hardcode_libdir_separator=:
8544       ;;
8545
8546     solaris*)
8547       no_undefined_flag=' -z defs'
8548       if test "$GCC" = yes; then
8549         wlarc='${wl}'
8550         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8551         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8552           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8553       else
8554         case `$CC -V 2>&1` in
8555         *"Compilers 5.0"*)
8556           wlarc=''
8557           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8559           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8560           ;;
8561         *)
8562           wlarc='${wl}'
8563           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8564           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8565           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8566           ;;
8567         esac
8568       fi
8569       hardcode_libdir_flag_spec='-R$libdir'
8570       hardcode_shlibpath_var=no
8571       case $host_os in
8572       solaris2.[0-5] | solaris2.[0-5].*) ;;
8573       *)
8574         # The compiler driver will combine and reorder linker options,
8575         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8576         # but is careful enough not to reorder.
8577         # Supported since Solaris 2.6 (maybe 2.5.1?)
8578         if test "$GCC" = yes; then
8579           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8580         else
8581           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8582         fi
8583         ;;
8584       esac
8585       link_all_deplibs=yes
8586       ;;
8587
8588     sunos4*)
8589       if test "x$host_vendor" = xsequent; then
8590         # Use $CC to link under sequent, because it throws in some extra .o
8591         # files that make .init and .fini sections work.
8592         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8593       else
8594         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8595       fi
8596       hardcode_libdir_flag_spec='-L$libdir'
8597       hardcode_direct=yes
8598       hardcode_minus_L=yes
8599       hardcode_shlibpath_var=no
8600       ;;
8601
8602     sysv4)
8603       case $host_vendor in
8604         sni)
8605           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8606           hardcode_direct=yes # is this really true???
8607         ;;
8608         siemens)
8609           ## LD is ld it makes a PLAMLIB
8610           ## CC just makes a GrossModule.
8611           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8612           reload_cmds='$CC -r -o $output$reload_objs'
8613           hardcode_direct=no
8614         ;;
8615         motorola)
8616           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8618         ;;
8619       esac
8620       runpath_var='LD_RUN_PATH'
8621       hardcode_shlibpath_var=no
8622       ;;
8623
8624     sysv4.3*)
8625       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626       hardcode_shlibpath_var=no
8627       export_dynamic_flag_spec='-Bexport'
8628       ;;
8629
8630     sysv4*MP*)
8631       if test -d /usr/nec; then
8632         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633         hardcode_shlibpath_var=no
8634         runpath_var=LD_RUN_PATH
8635         hardcode_runpath_var=yes
8636         ld_shlibs=yes
8637       fi
8638       ;;
8639
8640     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8641       no_undefined_flag='${wl}-z,text'
8642       archive_cmds_need_lc=no
8643       hardcode_shlibpath_var=no
8644       runpath_var='LD_RUN_PATH'
8645
8646       if test "$GCC" = yes; then
8647         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8648         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8649       else
8650         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8651         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8652       fi
8653       ;;
8654
8655     sysv5* | sco3.2v5* | sco5v6*)
8656       # Note: We can NOT use -z defs as we might desire, because we do not
8657       # link with -lc, and that would cause any symbols used from libc to
8658       # always be unresolved, which means just about no library would
8659       # ever link correctly.  If we're not using GNU ld we use -z text
8660       # though, which does catch some bad symbols but isn't as heavy-handed
8661       # as -z defs.
8662       no_undefined_flag='${wl}-z,text'
8663       allow_undefined_flag='${wl}-z,nodefs'
8664       archive_cmds_need_lc=no
8665       hardcode_shlibpath_var=no
8666       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8667       hardcode_libdir_separator=':'
8668       link_all_deplibs=yes
8669       export_dynamic_flag_spec='${wl}-Bexport'
8670       runpath_var='LD_RUN_PATH'
8671
8672       if test "$GCC" = yes; then
8673         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8674         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8675       else
8676         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8677         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678       fi
8679       ;;
8680
8681     uts4*)
8682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8683       hardcode_libdir_flag_spec='-L$libdir'
8684       hardcode_shlibpath_var=no
8685       ;;
8686
8687     *)
8688       ld_shlibs=no
8689       ;;
8690     esac
8691
8692     if test x$host_vendor = xsni; then
8693       case $host in
8694       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8695         export_dynamic_flag_spec='${wl}-Blargedynsym'
8696         ;;
8697       esac
8698     fi
8699   fi
8700
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8702 $as_echo "$ld_shlibs" >&6; }
8703 test "$ld_shlibs" = no && can_build_shared=no
8704
8705 with_gnu_ld=$with_gnu_ld
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721 #
8722 # Do we need to explicitly link libc?
8723 #
8724 case "x$archive_cmds_need_lc" in
8725 x|xyes)
8726   # Assume -lc should be added
8727   archive_cmds_need_lc=yes
8728
8729   if test "$enable_shared" = yes && test "$GCC" = yes; then
8730     case $archive_cmds in
8731     *'~'*)
8732       # FIXME: we may have to deal with multi-command sequences.
8733       ;;
8734     '$CC '*)
8735       # Test whether the compiler implicitly links with -lc since on some
8736       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8737       # to ld, don't add -lc before -lgcc.
8738       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8739 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8740       $RM conftest*
8741       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742
8743       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8744   (eval $ac_compile) 2>&5
8745   ac_status=$?
8746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747   test $ac_status = 0; } 2>conftest.err; then
8748         soname=conftest
8749         lib=conftest
8750         libobjs=conftest.$ac_objext
8751         deplibs=
8752         wl=$lt_prog_compiler_wl
8753         pic_flag=$lt_prog_compiler_pic
8754         compiler_flags=-v
8755         linker_flags=-v
8756         verstring=
8757         output_objdir=.
8758         libname=conftest
8759         lt_save_allow_undefined_flag=$allow_undefined_flag
8760         allow_undefined_flag=
8761         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8762   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8763   ac_status=$?
8764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8765   test $ac_status = 0; }
8766         then
8767           archive_cmds_need_lc=no
8768         else
8769           archive_cmds_need_lc=yes
8770         fi
8771         allow_undefined_flag=$lt_save_allow_undefined_flag
8772       else
8773         cat conftest.err 1>&5
8774       fi
8775       $RM conftest*
8776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8777 $as_echo "$archive_cmds_need_lc" >&6; }
8778       ;;
8779     esac
8780   fi
8781   ;;
8782 esac
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8942
8943 if test "$GCC" = yes; then
8944   case $host_os in
8945     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8946     *) lt_awk_arg="/^libraries:/" ;;
8947   esac
8948   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8949   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8950     # if the path contains ";" then we assume it to be the separator
8951     # otherwise default to the standard path separator (i.e. ":") - it is
8952     # assumed that no part of a normal pathname contains ";" but that should
8953     # okay in the real world where ";" in dirpaths is itself problematic.
8954     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8955   else
8956     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8957   fi
8958   # Ok, now we have the path, separated by spaces, we can step through it
8959   # and add multilib dir if necessary.
8960   lt_tmp_lt_search_path_spec=
8961   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8962   for lt_sys_path in $lt_search_path_spec; do
8963     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8964       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8965     else
8966       test -d "$lt_sys_path" && \
8967         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8968     fi
8969   done
8970   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8971 BEGIN {RS=" "; FS="/|\n";} {
8972   lt_foo="";
8973   lt_count=0;
8974   for (lt_i = NF; lt_i > 0; lt_i--) {
8975     if ($lt_i != "" && $lt_i != ".") {
8976       if ($lt_i == "..") {
8977         lt_count++;
8978       } else {
8979         if (lt_count == 0) {
8980           lt_foo="/" $lt_i lt_foo;
8981         } else {
8982           lt_count--;
8983         }
8984       }
8985     }
8986   }
8987   if (lt_foo != "") { lt_freq[lt_foo]++; }
8988   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8989 }'`
8990   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8991 else
8992   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8993 fi
8994 library_names_spec=
8995 libname_spec='lib$name'
8996 soname_spec=
8997 shrext_cmds=".so"
8998 postinstall_cmds=
8999 postuninstall_cmds=
9000 finish_cmds=
9001 finish_eval=
9002 shlibpath_var=
9003 shlibpath_overrides_runpath=unknown
9004 version_type=none
9005 dynamic_linker="$host_os ld.so"
9006 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9007 need_lib_prefix=unknown
9008 hardcode_into_libs=no
9009
9010 # when you set need_version to no, make sure it does not cause -set_version
9011 # flags to be left without arguments
9012 need_version=unknown
9013
9014 case $host_os in
9015 aix3*)
9016   version_type=linux
9017   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9018   shlibpath_var=LIBPATH
9019
9020   # AIX 3 has no versioning support, so we append a major version to the name.
9021   soname_spec='${libname}${release}${shared_ext}$major'
9022   ;;
9023
9024 aix[4-9]*)
9025   version_type=linux
9026   need_lib_prefix=no
9027   need_version=no
9028   hardcode_into_libs=yes
9029   if test "$host_cpu" = ia64; then
9030     # AIX 5 supports IA64
9031     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9032     shlibpath_var=LD_LIBRARY_PATH
9033   else
9034     # With GCC up to 2.95.x, collect2 would create an import file
9035     # for dependence libraries.  The import file would start with
9036     # the line `#! .'.  This would cause the generated library to
9037     # depend on `.', always an invalid library.  This was fixed in
9038     # development snapshots of GCC prior to 3.0.
9039     case $host_os in
9040       aix4 | aix4.[01] | aix4.[01].*)
9041       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9042            echo ' yes '
9043            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9044         :
9045       else
9046         can_build_shared=no
9047       fi
9048       ;;
9049     esac
9050     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9051     # soname into executable. Probably we can add versioning support to
9052     # collect2, so additional links can be useful in future.
9053     if test "$aix_use_runtimelinking" = yes; then
9054       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9055       # instead of lib<name>.a to let people know that these are not
9056       # typical AIX shared libraries.
9057       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058     else
9059       # We preserve .a as extension for shared libraries through AIX4.2
9060       # and later when we are not doing run time linking.
9061       library_names_spec='${libname}${release}.a $libname.a'
9062       soname_spec='${libname}${release}${shared_ext}$major'
9063     fi
9064     shlibpath_var=LIBPATH
9065   fi
9066   ;;
9067
9068 amigaos*)
9069   case $host_cpu in
9070   powerpc)
9071     # Since July 2007 AmigaOS4 officially supports .so libraries.
9072     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074     ;;
9075   m68k)
9076     library_names_spec='$libname.ixlibrary $libname.a'
9077     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9078     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9079     ;;
9080   esac
9081   ;;
9082
9083 beos*)
9084   library_names_spec='${libname}${shared_ext}'
9085   dynamic_linker="$host_os ld.so"
9086   shlibpath_var=LIBRARY_PATH
9087   ;;
9088
9089 bsdi[45]*)
9090   version_type=linux
9091   need_version=no
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093   soname_spec='${libname}${release}${shared_ext}$major'
9094   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9095   shlibpath_var=LD_LIBRARY_PATH
9096   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9097   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9098   # the default ld.so.conf also contains /usr/contrib/lib and
9099   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9100   # libtool to hard-code these into programs
9101   ;;
9102
9103 cygwin* | mingw* | pw32* | cegcc*)
9104   version_type=windows
9105   shrext_cmds=".dll"
9106   need_version=no
9107   need_lib_prefix=no
9108
9109   case $GCC,$host_os in
9110   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9111     library_names_spec='$libname.dll.a'
9112     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9113     postinstall_cmds='base_file=`basename \${file}`~
9114       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9115       dldir=$destdir/`dirname \$dlpath`~
9116       test -d \$dldir || mkdir -p \$dldir~
9117       $install_prog $dir/$dlname \$dldir/$dlname~
9118       chmod a+x \$dldir/$dlname~
9119       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9120         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9121       fi'
9122     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9123       dlpath=$dir/\$dldll~
9124        $RM \$dlpath'
9125     shlibpath_overrides_runpath=yes
9126
9127     case $host_os in
9128     cygwin*)
9129       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9130       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9131       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9132       ;;
9133     mingw* | cegcc*)
9134       # MinGW DLLs use traditional 'lib' prefix
9135       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9136       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9137       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9138         # It is most probably a Windows format PATH printed by
9139         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9140         # path with ; separators, and with drive letters. We can handle the
9141         # drive letters (cygwin fileutils understands them), so leave them,
9142         # especially as we might pass files found there to a mingw objdump,
9143         # which wouldn't understand a cygwinified path. Ahh.
9144         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9145       else
9146         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9147       fi
9148       ;;
9149     pw32*)
9150       # pw32 DLLs use 'pw' prefix rather than 'lib'
9151       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9152       ;;
9153     esac
9154     ;;
9155
9156   *)
9157     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9158     ;;
9159   esac
9160   dynamic_linker='Win32 ld.exe'
9161   # FIXME: first we should search . and the directory the executable is in
9162   shlibpath_var=PATH
9163   ;;
9164
9165 darwin* | rhapsody*)
9166   dynamic_linker="$host_os dyld"
9167   version_type=darwin
9168   need_lib_prefix=no
9169   need_version=no
9170   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9171   soname_spec='${libname}${release}${major}$shared_ext'
9172   shlibpath_overrides_runpath=yes
9173   shlibpath_var=DYLD_LIBRARY_PATH
9174   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9175
9176   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9177   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9178   ;;
9179
9180 dgux*)
9181   version_type=linux
9182   need_lib_prefix=no
9183   need_version=no
9184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9185   soname_spec='${libname}${release}${shared_ext}$major'
9186   shlibpath_var=LD_LIBRARY_PATH
9187   ;;
9188
9189 freebsd1*)
9190   dynamic_linker=no
9191   ;;
9192
9193 freebsd* | dragonfly*)
9194   # DragonFly does not have aout.  When/if they implement a new
9195   # versioning mechanism, adjust this.
9196   if test -x /usr/bin/objformat; then
9197     objformat=`/usr/bin/objformat`
9198   else
9199     case $host_os in
9200     freebsd[123]*) objformat=aout ;;
9201     *) objformat=elf ;;
9202     esac
9203   fi
9204   version_type=freebsd-$objformat
9205   case $version_type in
9206     freebsd-elf*)
9207       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9208       need_version=no
9209       need_lib_prefix=no
9210       ;;
9211     freebsd-*)
9212       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9213       need_version=yes
9214       ;;
9215   esac
9216   shlibpath_var=LD_LIBRARY_PATH
9217   case $host_os in
9218   freebsd2*)
9219     shlibpath_overrides_runpath=yes
9220     ;;
9221   freebsd3.[01]* | freebsdelf3.[01]*)
9222     shlibpath_overrides_runpath=yes
9223     hardcode_into_libs=yes
9224     ;;
9225   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9226   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9227     shlibpath_overrides_runpath=no
9228     hardcode_into_libs=yes
9229     ;;
9230   *) # from 4.6 on, and DragonFly
9231     shlibpath_overrides_runpath=yes
9232     hardcode_into_libs=yes
9233     ;;
9234   esac
9235   ;;
9236
9237 gnu*)
9238   version_type=linux
9239   need_lib_prefix=no
9240   need_version=no
9241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9242   soname_spec='${libname}${release}${shared_ext}$major'
9243   shlibpath_var=LD_LIBRARY_PATH
9244   hardcode_into_libs=yes
9245   ;;
9246
9247 hpux9* | hpux10* | hpux11*)
9248   # Give a soname corresponding to the major version so that dld.sl refuses to
9249   # link against other versions.
9250   version_type=sunos
9251   need_lib_prefix=no
9252   need_version=no
9253   case $host_cpu in
9254   ia64*)
9255     shrext_cmds='.so'
9256     hardcode_into_libs=yes
9257     dynamic_linker="$host_os dld.so"
9258     shlibpath_var=LD_LIBRARY_PATH
9259     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261     soname_spec='${libname}${release}${shared_ext}$major'
9262     if test "X$HPUX_IA64_MODE" = X32; then
9263       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9264     else
9265       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9266     fi
9267     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9268     ;;
9269   hppa*64*)
9270     shrext_cmds='.sl'
9271     hardcode_into_libs=yes
9272     dynamic_linker="$host_os dld.sl"
9273     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9274     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276     soname_spec='${libname}${release}${shared_ext}$major'
9277     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9278     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9279     ;;
9280   *)
9281     shrext_cmds='.sl'
9282     dynamic_linker="$host_os dld.sl"
9283     shlibpath_var=SHLIB_PATH
9284     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286     soname_spec='${libname}${release}${shared_ext}$major'
9287     ;;
9288   esac
9289   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9290   postinstall_cmds='chmod 555 $lib'
9291   ;;
9292
9293 interix[3-9]*)
9294   version_type=linux
9295   need_lib_prefix=no
9296   need_version=no
9297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9298   soname_spec='${libname}${release}${shared_ext}$major'
9299   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9300   shlibpath_var=LD_LIBRARY_PATH
9301   shlibpath_overrides_runpath=no
9302   hardcode_into_libs=yes
9303   ;;
9304
9305 irix5* | irix6* | nonstopux*)
9306   case $host_os in
9307     nonstopux*) version_type=nonstopux ;;
9308     *)
9309         if test "$lt_cv_prog_gnu_ld" = yes; then
9310                 version_type=linux
9311         else
9312                 version_type=irix
9313         fi ;;
9314   esac
9315   need_lib_prefix=no
9316   need_version=no
9317   soname_spec='${libname}${release}${shared_ext}$major'
9318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9319   case $host_os in
9320   irix5* | nonstopux*)
9321     libsuff= shlibsuff=
9322     ;;
9323   *)
9324     case $LD in # libtool.m4 will add one of these switches to LD
9325     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9326       libsuff= shlibsuff= libmagic=32-bit;;
9327     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9328       libsuff=32 shlibsuff=N32 libmagic=N32;;
9329     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9330       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9331     *) libsuff= shlibsuff= libmagic=never-match;;
9332     esac
9333     ;;
9334   esac
9335   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9336   shlibpath_overrides_runpath=no
9337   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9338   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9339   hardcode_into_libs=yes
9340   ;;
9341
9342 # No shared lib support for Linux oldld, aout, or coff.
9343 linux*oldld* | linux*aout* | linux*coff*)
9344   dynamic_linker=no
9345   ;;
9346
9347 # This must be Linux ELF.
9348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9349   version_type=linux
9350   need_lib_prefix=no
9351   need_version=no
9352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353   soname_spec='${libname}${release}${shared_ext}$major'
9354   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9355   shlibpath_var=LD_LIBRARY_PATH
9356   shlibpath_overrides_runpath=no
9357   # Some binutils ld are patched to set DT_RUNPATH
9358   save_LDFLAGS=$LDFLAGS
9359   save_libdir=$libdir
9360   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9361        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h.  */
9364
9365 int
9366 main ()
9367 {
9368
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_link "$LINENO"; then :
9374   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9375   shlibpath_overrides_runpath=yes
9376 fi
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext \
9379     conftest$ac_exeext conftest.$ac_ext
9380   LDFLAGS=$save_LDFLAGS
9381   libdir=$save_libdir
9382
9383   # This implies no fast_install, which is unacceptable.
9384   # Some rework will be needed to allow for fast_install
9385   # before this can be enabled.
9386   hardcode_into_libs=yes
9387
9388   # Append ld.so.conf contents to the search path
9389   if test -f /etc/ld.so.conf; then
9390     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9391     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9392   fi
9393
9394   # We used to test for /lib/ld.so.1 and disable shared libraries on
9395   # powerpc, because MkLinux only supported shared libraries with the
9396   # GNU dynamic linker.  Since this was broken with cross compilers,
9397   # most powerpc-linux boxes support dynamic linking these days and
9398   # people can always --disable-shared, the test was removed, and we
9399   # assume the GNU/Linux dynamic linker is in use.
9400   dynamic_linker='GNU/Linux ld.so'
9401   ;;
9402
9403 netbsdelf*-gnu)
9404   version_type=linux
9405   need_lib_prefix=no
9406   need_version=no
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9408   soname_spec='${libname}${release}${shared_ext}$major'
9409   shlibpath_var=LD_LIBRARY_PATH
9410   shlibpath_overrides_runpath=no
9411   hardcode_into_libs=yes
9412   dynamic_linker='NetBSD ld.elf_so'
9413   ;;
9414
9415 netbsd*)
9416   version_type=sunos
9417   need_lib_prefix=no
9418   need_version=no
9419   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9421     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9422     dynamic_linker='NetBSD (a.out) ld.so'
9423   else
9424     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9425     soname_spec='${libname}${release}${shared_ext}$major'
9426     dynamic_linker='NetBSD ld.elf_so'
9427   fi
9428   shlibpath_var=LD_LIBRARY_PATH
9429   shlibpath_overrides_runpath=yes
9430   hardcode_into_libs=yes
9431   ;;
9432
9433 newsos6)
9434   version_type=linux
9435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436   shlibpath_var=LD_LIBRARY_PATH
9437   shlibpath_overrides_runpath=yes
9438   ;;
9439
9440 *nto* | *qnx*)
9441   version_type=qnx
9442   need_lib_prefix=no
9443   need_version=no
9444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445   soname_spec='${libname}${release}${shared_ext}$major'
9446   shlibpath_var=LD_LIBRARY_PATH
9447   shlibpath_overrides_runpath=no
9448   hardcode_into_libs=yes
9449   dynamic_linker='ldqnx.so'
9450   ;;
9451
9452 openbsd*)
9453   version_type=sunos
9454   sys_lib_dlsearch_path_spec="/usr/lib"
9455   need_lib_prefix=no
9456   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9457   case $host_os in
9458     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9459     *)                          need_version=no  ;;
9460   esac
9461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9462   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9463   shlibpath_var=LD_LIBRARY_PATH
9464   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9465     case $host_os in
9466       openbsd2.[89] | openbsd2.[89].*)
9467         shlibpath_overrides_runpath=no
9468         ;;
9469       *)
9470         shlibpath_overrides_runpath=yes
9471         ;;
9472       esac
9473   else
9474     shlibpath_overrides_runpath=yes
9475   fi
9476   ;;
9477
9478 os2*)
9479   libname_spec='$name'
9480   shrext_cmds=".dll"
9481   need_lib_prefix=no
9482   library_names_spec='$libname${shared_ext} $libname.a'
9483   dynamic_linker='OS/2 ld.exe'
9484   shlibpath_var=LIBPATH
9485   ;;
9486
9487 osf3* | osf4* | osf5*)
9488   version_type=osf
9489   need_lib_prefix=no
9490   need_version=no
9491   soname_spec='${libname}${release}${shared_ext}$major'
9492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493   shlibpath_var=LD_LIBRARY_PATH
9494   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9495   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9496   ;;
9497
9498 rdos*)
9499   dynamic_linker=no
9500   ;;
9501
9502 solaris*)
9503   version_type=linux
9504   need_lib_prefix=no
9505   need_version=no
9506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507   soname_spec='${libname}${release}${shared_ext}$major'
9508   shlibpath_var=LD_LIBRARY_PATH
9509   shlibpath_overrides_runpath=yes
9510   hardcode_into_libs=yes
9511   # ldd complains unless libraries are executable
9512   postinstall_cmds='chmod +x $lib'
9513   ;;
9514
9515 sunos4*)
9516   version_type=sunos
9517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9518   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9519   shlibpath_var=LD_LIBRARY_PATH
9520   shlibpath_overrides_runpath=yes
9521   if test "$with_gnu_ld" = yes; then
9522     need_lib_prefix=no
9523   fi
9524   need_version=yes
9525   ;;
9526
9527 sysv4 | sysv4.3*)
9528   version_type=linux
9529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530   soname_spec='${libname}${release}${shared_ext}$major'
9531   shlibpath_var=LD_LIBRARY_PATH
9532   case $host_vendor in
9533     sni)
9534       shlibpath_overrides_runpath=no
9535       need_lib_prefix=no
9536       runpath_var=LD_RUN_PATH
9537       ;;
9538     siemens)
9539       need_lib_prefix=no
9540       ;;
9541     motorola)
9542       need_lib_prefix=no
9543       need_version=no
9544       shlibpath_overrides_runpath=no
9545       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9546       ;;
9547   esac
9548   ;;
9549
9550 sysv4*MP*)
9551   if test -d /usr/nec ;then
9552     version_type=linux
9553     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9554     soname_spec='$libname${shared_ext}.$major'
9555     shlibpath_var=LD_LIBRARY_PATH
9556   fi
9557   ;;
9558
9559 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9560   version_type=freebsd-elf
9561   need_lib_prefix=no
9562   need_version=no
9563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9564   soname_spec='${libname}${release}${shared_ext}$major'
9565   shlibpath_var=LD_LIBRARY_PATH
9566   shlibpath_overrides_runpath=yes
9567   hardcode_into_libs=yes
9568   if test "$with_gnu_ld" = yes; then
9569     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9570   else
9571     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9572     case $host_os in
9573       sco3.2v5*)
9574         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9575         ;;
9576     esac
9577   fi
9578   sys_lib_dlsearch_path_spec='/usr/lib'
9579   ;;
9580
9581 tpf*)
9582   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9583   version_type=linux
9584   need_lib_prefix=no
9585   need_version=no
9586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587   shlibpath_var=LD_LIBRARY_PATH
9588   shlibpath_overrides_runpath=no
9589   hardcode_into_libs=yes
9590   ;;
9591
9592 uts4*)
9593   version_type=linux
9594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595   soname_spec='${libname}${release}${shared_ext}$major'
9596   shlibpath_var=LD_LIBRARY_PATH
9597   ;;
9598
9599 *)
9600   dynamic_linker=no
9601   ;;
9602 esac
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9604 $as_echo "$dynamic_linker" >&6; }
9605 test "$dynamic_linker" = no && can_build_shared=no
9606
9607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9608 if test "$GCC" = yes; then
9609   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9610 fi
9611
9612 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9613   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9614 fi
9615 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9616   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9617 fi
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9706 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9707 hardcode_action=
9708 if test -n "$hardcode_libdir_flag_spec" ||
9709    test -n "$runpath_var" ||
9710    test "X$hardcode_automatic" = "Xyes" ; then
9711
9712   # We can hardcode non-existent directories.
9713   if test "$hardcode_direct" != no &&
9714      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9715      # have to relink, otherwise we might link with an installed library
9716      # when we should be linking with a yet-to-be-installed one
9717      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9718      test "$hardcode_minus_L" != no; then
9719     # Linking always hardcodes the temporary library directory.
9720     hardcode_action=relink
9721   else
9722     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9723     hardcode_action=immediate
9724   fi
9725 else
9726   # We cannot hardcode anything, or else we can only hardcode existing
9727   # directories.
9728   hardcode_action=unsupported
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9731 $as_echo "$hardcode_action" >&6; }
9732
9733 if test "$hardcode_action" = relink ||
9734    test "$inherit_rpath" = yes; then
9735   # Fast installation is not supported
9736   enable_fast_install=no
9737 elif test "$shlibpath_overrides_runpath" = yes ||
9738      test "$enable_shared" = no; then
9739   # Fast installation is not necessary
9740   enable_fast_install=needless
9741 fi
9742
9743
9744
9745
9746
9747
9748   if test "x$enable_dlopen" != xyes; then
9749   enable_dlopen=unknown
9750   enable_dlopen_self=unknown
9751   enable_dlopen_self_static=unknown
9752 else
9753   lt_cv_dlopen=no
9754   lt_cv_dlopen_libs=
9755
9756   case $host_os in
9757   beos*)
9758     lt_cv_dlopen="load_add_on"
9759     lt_cv_dlopen_libs=
9760     lt_cv_dlopen_self=yes
9761     ;;
9762
9763   mingw* | pw32* | cegcc*)
9764     lt_cv_dlopen="LoadLibrary"
9765     lt_cv_dlopen_libs=
9766     ;;
9767
9768   cygwin*)
9769     lt_cv_dlopen="dlopen"
9770     lt_cv_dlopen_libs=
9771     ;;
9772
9773   darwin*)
9774   # if libdl is installed we need to link against it
9775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9777 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9778   $as_echo_n "(cached) " >&6
9779 else
9780   ac_check_lib_save_LIBS=$LIBS
9781 LIBS="-ldl  $LIBS"
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h.  */
9784
9785 /* Override any GCC internal prototype to avoid an error.
9786    Use char because int might match the return type of a GCC
9787    builtin and then its argument prototype would still apply.  */
9788 #ifdef __cplusplus
9789 extern "C"
9790 #endif
9791 char dlopen ();
9792 int
9793 main ()
9794 {
9795 return dlopen ();
9796   ;
9797   return 0;
9798 }
9799 _ACEOF
9800 if ac_fn_c_try_link "$LINENO"; then :
9801   ac_cv_lib_dl_dlopen=yes
9802 else
9803   ac_cv_lib_dl_dlopen=no
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext \
9806     conftest$ac_exeext conftest.$ac_ext
9807 LIBS=$ac_check_lib_save_LIBS
9808 fi
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9810 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9811 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9812   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9813 else
9814
9815     lt_cv_dlopen="dyld"
9816     lt_cv_dlopen_libs=
9817     lt_cv_dlopen_self=yes
9818
9819 fi
9820
9821     ;;
9822
9823   *)
9824     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9825 if test "x$ac_cv_func_shl_load" = x""yes; then :
9826   lt_cv_dlopen="shl_load"
9827 else
9828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9829 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9830 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9831   $as_echo_n "(cached) " >&6
9832 else
9833   ac_check_lib_save_LIBS=$LIBS
9834 LIBS="-ldld  $LIBS"
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h.  */
9837
9838 /* Override any GCC internal prototype to avoid an error.
9839    Use char because int might match the return type of a GCC
9840    builtin and then its argument prototype would still apply.  */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char shl_load ();
9845 int
9846 main ()
9847 {
9848 return shl_load ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"; then :
9854   ac_cv_lib_dld_shl_load=yes
9855 else
9856   ac_cv_lib_dld_shl_load=no
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859     conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9863 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9864 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9865   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9866 else
9867   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9868 if test "x$ac_cv_func_dlopen" = x""yes; then :
9869   lt_cv_dlopen="dlopen"
9870 else
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9874   $as_echo_n "(cached) " >&6
9875 else
9876   ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldl  $LIBS"
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h.  */
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882    Use char because int might match the return type of a GCC
9883    builtin and then its argument prototype would still apply.  */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char dlopen ();
9888 int
9889 main ()
9890 {
9891 return dlopen ();
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897   ac_cv_lib_dl_dlopen=yes
9898 else
9899   ac_cv_lib_dl_dlopen=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext \
9902     conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9904 fi
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9907 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9908   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9909 else
9910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9911 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9912 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   ac_check_lib_save_LIBS=$LIBS
9916 LIBS="-lsvld  $LIBS"
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h.  */
9919
9920 /* Override any GCC internal prototype to avoid an error.
9921    Use char because int might match the return type of a GCC
9922    builtin and then its argument prototype would still apply.  */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 char dlopen ();
9927 int
9928 main ()
9929 {
9930 return dlopen ();
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_c_try_link "$LINENO"; then :
9936   ac_cv_lib_svld_dlopen=yes
9937 else
9938   ac_cv_lib_svld_dlopen=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext \
9941     conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9946 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9947   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9948 else
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9950 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9951 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9952   $as_echo_n "(cached) " >&6
9953 else
9954   ac_check_lib_save_LIBS=$LIBS
9955 LIBS="-ldld  $LIBS"
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h.  */
9958
9959 /* Override any GCC internal prototype to avoid an error.
9960    Use char because int might match the return type of a GCC
9961    builtin and then its argument prototype would still apply.  */
9962 #ifdef __cplusplus
9963 extern "C"
9964 #endif
9965 char dld_link ();
9966 int
9967 main ()
9968 {
9969 return dld_link ();
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975   ac_cv_lib_dld_dld_link=yes
9976 else
9977   ac_cv_lib_dld_dld_link=no
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980     conftest$ac_exeext conftest.$ac_ext
9981 LIBS=$ac_check_lib_save_LIBS
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9984 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9985 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9986   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9987 fi
9988
9989
9990 fi
9991
9992
9993 fi
9994
9995
9996 fi
9997
9998
9999 fi
10000
10001
10002 fi
10003
10004     ;;
10005   esac
10006
10007   if test "x$lt_cv_dlopen" != xno; then
10008     enable_dlopen=yes
10009   else
10010     enable_dlopen=no
10011   fi
10012
10013   case $lt_cv_dlopen in
10014   dlopen)
10015     save_CPPFLAGS="$CPPFLAGS"
10016     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10017
10018     save_LDFLAGS="$LDFLAGS"
10019     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10020
10021     save_LIBS="$LIBS"
10022     LIBS="$lt_cv_dlopen_libs $LIBS"
10023
10024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10025 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10026 if test "${lt_cv_dlopen_self+set}" = set; then :
10027   $as_echo_n "(cached) " >&6
10028 else
10029           if test "$cross_compiling" = yes; then :
10030   lt_cv_dlopen_self=cross
10031 else
10032   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10033   lt_status=$lt_dlunknown
10034   cat > conftest.$ac_ext <<_LT_EOF
10035 #line 10035 "configure"
10036 #include "confdefs.h"
10037
10038 #if HAVE_DLFCN_H
10039 #include <dlfcn.h>
10040 #endif
10041
10042 #include <stdio.h>
10043
10044 #ifdef RTLD_GLOBAL
10045 #  define LT_DLGLOBAL           RTLD_GLOBAL
10046 #else
10047 #  ifdef DL_GLOBAL
10048 #    define LT_DLGLOBAL         DL_GLOBAL
10049 #  else
10050 #    define LT_DLGLOBAL         0
10051 #  endif
10052 #endif
10053
10054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10055    find out it does not work in some platform. */
10056 #ifndef LT_DLLAZY_OR_NOW
10057 #  ifdef RTLD_LAZY
10058 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10059 #  else
10060 #    ifdef DL_LAZY
10061 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10062 #    else
10063 #      ifdef RTLD_NOW
10064 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10065 #      else
10066 #        ifdef DL_NOW
10067 #          define LT_DLLAZY_OR_NOW      DL_NOW
10068 #        else
10069 #          define LT_DLLAZY_OR_NOW      0
10070 #        endif
10071 #      endif
10072 #    endif
10073 #  endif
10074 #endif
10075
10076 void fnord() { int i=42;}
10077 int main ()
10078 {
10079   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10080   int status = $lt_dlunknown;
10081
10082   if (self)
10083     {
10084       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10085       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10086       /* dlclose (self); */
10087     }
10088   else
10089     puts (dlerror ());
10090
10091   return status;
10092 }
10093 _LT_EOF
10094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10095   (eval $ac_link) 2>&5
10096   ac_status=$?
10097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10099     (./conftest; exit; ) >&5 2>/dev/null
10100     lt_status=$?
10101     case x$lt_status in
10102       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10103       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10104       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10105     esac
10106   else :
10107     # compilation failed
10108     lt_cv_dlopen_self=no
10109   fi
10110 fi
10111 rm -fr conftest*
10112
10113
10114 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10116 $as_echo "$lt_cv_dlopen_self" >&6; }
10117
10118     if test "x$lt_cv_dlopen_self" = xyes; then
10119       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10120       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10121 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10122 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125           if test "$cross_compiling" = yes; then :
10126   lt_cv_dlopen_self_static=cross
10127 else
10128   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10129   lt_status=$lt_dlunknown
10130   cat > conftest.$ac_ext <<_LT_EOF
10131 #line 10131 "configure"
10132 #include "confdefs.h"
10133
10134 #if HAVE_DLFCN_H
10135 #include <dlfcn.h>
10136 #endif
10137
10138 #include <stdio.h>
10139
10140 #ifdef RTLD_GLOBAL
10141 #  define LT_DLGLOBAL           RTLD_GLOBAL
10142 #else
10143 #  ifdef DL_GLOBAL
10144 #    define LT_DLGLOBAL         DL_GLOBAL
10145 #  else
10146 #    define LT_DLGLOBAL         0
10147 #  endif
10148 #endif
10149
10150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10151    find out it does not work in some platform. */
10152 #ifndef LT_DLLAZY_OR_NOW
10153 #  ifdef RTLD_LAZY
10154 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10155 #  else
10156 #    ifdef DL_LAZY
10157 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10158 #    else
10159 #      ifdef RTLD_NOW
10160 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10161 #      else
10162 #        ifdef DL_NOW
10163 #          define LT_DLLAZY_OR_NOW      DL_NOW
10164 #        else
10165 #          define LT_DLLAZY_OR_NOW      0
10166 #        endif
10167 #      endif
10168 #    endif
10169 #  endif
10170 #endif
10171
10172 void fnord() { int i=42;}
10173 int main ()
10174 {
10175   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10176   int status = $lt_dlunknown;
10177
10178   if (self)
10179     {
10180       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10181       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10182       /* dlclose (self); */
10183     }
10184   else
10185     puts (dlerror ());
10186
10187   return status;
10188 }
10189 _LT_EOF
10190   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10191   (eval $ac_link) 2>&5
10192   ac_status=$?
10193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10194   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10195     (./conftest; exit; ) >&5 2>/dev/null
10196     lt_status=$?
10197     case x$lt_status in
10198       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10199       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10200       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10201     esac
10202   else :
10203     # compilation failed
10204     lt_cv_dlopen_self_static=no
10205   fi
10206 fi
10207 rm -fr conftest*
10208
10209
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10212 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10213     fi
10214
10215     CPPFLAGS="$save_CPPFLAGS"
10216     LDFLAGS="$save_LDFLAGS"
10217     LIBS="$save_LIBS"
10218     ;;
10219   esac
10220
10221   case $lt_cv_dlopen_self in
10222   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10223   *) enable_dlopen_self=unknown ;;
10224   esac
10225
10226   case $lt_cv_dlopen_self_static in
10227   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10228   *) enable_dlopen_self_static=unknown ;;
10229   esac
10230 fi
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248 striplib=
10249 old_striplib=
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10251 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10252 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10253   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10254   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10256 $as_echo "yes" >&6; }
10257 else
10258 # FIXME - insert some real tests, host_os isn't really good enough
10259   case $host_os in
10260   darwin*)
10261     if test -n "$STRIP" ; then
10262       striplib="$STRIP -x"
10263       old_striplib="$STRIP -S"
10264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265 $as_echo "yes" >&6; }
10266     else
10267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10269     fi
10270     ;;
10271   *)
10272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10274     ;;
10275   esac
10276 fi
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289   # Report which library types will actually be built
10290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10291 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10293 $as_echo "$can_build_shared" >&6; }
10294
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10296 $as_echo_n "checking whether to build shared libraries... " >&6; }
10297   test "$can_build_shared" = "no" && enable_shared=no
10298
10299   # On AIX, shared libraries and static libraries use the same namespace, and
10300   # are all built from PIC.
10301   case $host_os in
10302   aix3*)
10303     test "$enable_shared" = yes && enable_static=no
10304     if test -n "$RANLIB"; then
10305       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10306       postinstall_cmds='$RANLIB $lib'
10307     fi
10308     ;;
10309
10310   aix[4-9]*)
10311     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10312       test "$enable_shared" = yes && enable_static=no
10313     fi
10314     ;;
10315   esac
10316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10317 $as_echo "$enable_shared" >&6; }
10318
10319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10320 $as_echo_n "checking whether to build static libraries... " >&6; }
10321   # Make sure either enable_shared or enable_static is yes.
10322   test "$enable_shared" = yes || enable_static=yes
10323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10324 $as_echo "$enable_static" >&6; }
10325
10326
10327
10328
10329 fi
10330 ac_ext=c
10331 ac_cpp='$CPP $CPPFLAGS'
10332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10335
10336 CC="$lt_save_CC"
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350         ac_config_commands="$ac_config_commands libtool"
10351
10352
10353
10354
10355 # Only expand once:
10356
10357
10358
10359 # Checks for programs.
10360 ac_ext=c
10361 ac_cpp='$CPP $CPPFLAGS'
10362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365 if test -n "$ac_tool_prefix"; then
10366   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if test "${ac_cv_prog_CC+set}" = set; then :
10371   $as_echo_n "(cached) " >&6
10372 else
10373   if test -n "$CC"; then
10374   ac_cv_prog_CC="$CC" # Let the user override the test.
10375 else
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10378 do
10379   IFS=$as_save_IFS
10380   test -z "$as_dir" && as_dir=.
10381     for ac_exec_ext in '' $ac_executable_extensions; do
10382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10383     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385     break 2
10386   fi
10387 done
10388   done
10389 IFS=$as_save_IFS
10390
10391 fi
10392 fi
10393 CC=$ac_cv_prog_CC
10394 if test -n "$CC"; then
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10396 $as_echo "$CC" >&6; }
10397 else
10398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10400 fi
10401
10402
10403 fi
10404 if test -z "$ac_cv_prog_CC"; then
10405   ac_ct_CC=$CC
10406   # Extract the first word of "gcc", so it can be a program name with args.
10407 set dummy gcc; ac_word=$2
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10409 $as_echo_n "checking for $ac_word... " >&6; }
10410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10411   $as_echo_n "(cached) " >&6
10412 else
10413   if test -n "$ac_ct_CC"; then
10414   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10415 else
10416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417 for as_dir in $PATH
10418 do
10419   IFS=$as_save_IFS
10420   test -z "$as_dir" && as_dir=.
10421     for ac_exec_ext in '' $ac_executable_extensions; do
10422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10423     ac_cv_prog_ac_ct_CC="gcc"
10424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425     break 2
10426   fi
10427 done
10428   done
10429 IFS=$as_save_IFS
10430
10431 fi
10432 fi
10433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10434 if test -n "$ac_ct_CC"; then
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10436 $as_echo "$ac_ct_CC" >&6; }
10437 else
10438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10440 fi
10441
10442   if test "x$ac_ct_CC" = x; then
10443     CC=""
10444   else
10445     case $cross_compiling:$ac_tool_warned in
10446 yes:)
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10449 ac_tool_warned=yes ;;
10450 esac
10451     CC=$ac_ct_CC
10452   fi
10453 else
10454   CC="$ac_cv_prog_CC"
10455 fi
10456
10457 if test -z "$CC"; then
10458           if test -n "$ac_tool_prefix"; then
10459     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10460 set dummy ${ac_tool_prefix}cc; ac_word=$2
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462 $as_echo_n "checking for $ac_word... " >&6; }
10463 if test "${ac_cv_prog_CC+set}" = set; then :
10464   $as_echo_n "(cached) " >&6
10465 else
10466   if test -n "$CC"; then
10467   ac_cv_prog_CC="$CC" # Let the user override the test.
10468 else
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472   IFS=$as_save_IFS
10473   test -z "$as_dir" && as_dir=.
10474     for ac_exec_ext in '' $ac_executable_extensions; do
10475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10476     ac_cv_prog_CC="${ac_tool_prefix}cc"
10477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478     break 2
10479   fi
10480 done
10481   done
10482 IFS=$as_save_IFS
10483
10484 fi
10485 fi
10486 CC=$ac_cv_prog_CC
10487 if test -n "$CC"; then
10488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10489 $as_echo "$CC" >&6; }
10490 else
10491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10493 fi
10494
10495
10496   fi
10497 fi
10498 if test -z "$CC"; then
10499   # Extract the first word of "cc", so it can be a program name with args.
10500 set dummy cc; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if test "${ac_cv_prog_CC+set}" = set; then :
10504   $as_echo_n "(cached) " >&6
10505 else
10506   if test -n "$CC"; then
10507   ac_cv_prog_CC="$CC" # Let the user override the test.
10508 else
10509   ac_prog_rejected=no
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10512 do
10513   IFS=$as_save_IFS
10514   test -z "$as_dir" && as_dir=.
10515     for ac_exec_ext in '' $ac_executable_extensions; do
10516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10518        ac_prog_rejected=yes
10519        continue
10520      fi
10521     ac_cv_prog_CC="cc"
10522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523     break 2
10524   fi
10525 done
10526   done
10527 IFS=$as_save_IFS
10528
10529 if test $ac_prog_rejected = yes; then
10530   # We found a bogon in the path, so make sure we never use it.
10531   set dummy $ac_cv_prog_CC
10532   shift
10533   if test $# != 0; then
10534     # We chose a different compiler from the bogus one.
10535     # However, it has the same basename, so the bogon will be chosen
10536     # first if we set CC to just the basename; use the full file name.
10537     shift
10538     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10539   fi
10540 fi
10541 fi
10542 fi
10543 CC=$ac_cv_prog_CC
10544 if test -n "$CC"; then
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10546 $as_echo "$CC" >&6; }
10547 else
10548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10550 fi
10551
10552
10553 fi
10554 if test -z "$CC"; then
10555   if test -n "$ac_tool_prefix"; then
10556   for ac_prog in cl.exe
10557   do
10558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if test "${ac_cv_prog_CC+set}" = set; then :
10563   $as_echo_n "(cached) " >&6
10564 else
10565   if test -n "$CC"; then
10566   ac_cv_prog_CC="$CC" # Let the user override the test.
10567 else
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10570 do
10571   IFS=$as_save_IFS
10572   test -z "$as_dir" && as_dir=.
10573     for ac_exec_ext in '' $ac_executable_extensions; do
10574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577     break 2
10578   fi
10579 done
10580   done
10581 IFS=$as_save_IFS
10582
10583 fi
10584 fi
10585 CC=$ac_cv_prog_CC
10586 if test -n "$CC"; then
10587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10588 $as_echo "$CC" >&6; }
10589 else
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10592 fi
10593
10594
10595     test -n "$CC" && break
10596   done
10597 fi
10598 if test -z "$CC"; then
10599   ac_ct_CC=$CC
10600   for ac_prog in cl.exe
10601 do
10602   # Extract the first word of "$ac_prog", so it can be a program name with args.
10603 set dummy $ac_prog; ac_word=$2
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 $as_echo_n "checking for $ac_word... " >&6; }
10606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10607   $as_echo_n "(cached) " >&6
10608 else
10609   if test -n "$ac_ct_CC"; then
10610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10611 else
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10614 do
10615   IFS=$as_save_IFS
10616   test -z "$as_dir" && as_dir=.
10617     for ac_exec_ext in '' $ac_executable_extensions; do
10618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10619     ac_cv_prog_ac_ct_CC="$ac_prog"
10620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621     break 2
10622   fi
10623 done
10624   done
10625 IFS=$as_save_IFS
10626
10627 fi
10628 fi
10629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10630 if test -n "$ac_ct_CC"; then
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10632 $as_echo "$ac_ct_CC" >&6; }
10633 else
10634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10636 fi
10637
10638
10639   test -n "$ac_ct_CC" && break
10640 done
10641
10642   if test "x$ac_ct_CC" = x; then
10643     CC=""
10644   else
10645     case $cross_compiling:$ac_tool_warned in
10646 yes:)
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10649 ac_tool_warned=yes ;;
10650 esac
10651     CC=$ac_ct_CC
10652   fi
10653 fi
10654
10655 fi
10656
10657
10658 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10660 as_fn_error $? "no acceptable C compiler found in \$PATH
10661 See \`config.log' for more details" "$LINENO" 5 ; }
10662
10663 # Provide some information about the compiler.
10664 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10665 set X $ac_compile
10666 ac_compiler=$2
10667 for ac_option in --version -v -V -qversion; do
10668   { { ac_try="$ac_compiler $ac_option >&5"
10669 case "(($ac_try" in
10670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671   *) ac_try_echo=$ac_try;;
10672 esac
10673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10674 $as_echo "$ac_try_echo"; } >&5
10675   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10676   ac_status=$?
10677   if test -s conftest.err; then
10678     sed '10a\
10679 ... rest of stderr output deleted ...
10680          10q' conftest.err >conftest.er1
10681     cat conftest.er1 >&5
10682   fi
10683   rm -f conftest.er1 conftest.err
10684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10685   test $ac_status = 0; }
10686 done
10687
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10689 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10690 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10691   $as_echo_n "(cached) " >&6
10692 else
10693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h.  */
10695
10696 int
10697 main ()
10698 {
10699 #ifndef __GNUC__
10700        choke me
10701 #endif
10702
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 if ac_fn_c_try_compile "$LINENO"; then :
10708   ac_compiler_gnu=yes
10709 else
10710   ac_compiler_gnu=no
10711 fi
10712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10714
10715 fi
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10717 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10718 if test $ac_compiler_gnu = yes; then
10719   GCC=yes
10720 else
10721   GCC=
10722 fi
10723 ac_test_CFLAGS=${CFLAGS+set}
10724 ac_save_CFLAGS=$CFLAGS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10726 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10727 if test "${ac_cv_prog_cc_g+set}" = set; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   ac_save_c_werror_flag=$ac_c_werror_flag
10731    ac_c_werror_flag=yes
10732    ac_cv_prog_cc_g=no
10733    CFLAGS="-g"
10734    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h.  */
10736
10737 int
10738 main ()
10739 {
10740
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_c_try_compile "$LINENO"; then :
10746   ac_cv_prog_cc_g=yes
10747 else
10748   CFLAGS=""
10749       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h.  */
10751
10752 int
10753 main ()
10754 {
10755
10756   ;
10757   return 0;
10758 }
10759 _ACEOF
10760 if ac_fn_c_try_compile "$LINENO"; then :
10761
10762 else
10763   ac_c_werror_flag=$ac_save_c_werror_flag
10764          CFLAGS="-g"
10765          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h.  */
10767
10768 int
10769 main ()
10770 {
10771
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_compile "$LINENO"; then :
10777   ac_cv_prog_cc_g=yes
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784    ac_c_werror_flag=$ac_save_c_werror_flag
10785 fi
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10787 $as_echo "$ac_cv_prog_cc_g" >&6; }
10788 if test "$ac_test_CFLAGS" = set; then
10789   CFLAGS=$ac_save_CFLAGS
10790 elif test $ac_cv_prog_cc_g = yes; then
10791   if test "$GCC" = yes; then
10792     CFLAGS="-g -O2"
10793   else
10794     CFLAGS="-g"
10795   fi
10796 else
10797   if test "$GCC" = yes; then
10798     CFLAGS="-O2"
10799   else
10800     CFLAGS=
10801   fi
10802 fi
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10804 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10805 if test "${ac_cv_prog_cc_c89+set}" = set; then :
10806   $as_echo_n "(cached) " >&6
10807 else
10808   ac_cv_prog_cc_c89=no
10809 ac_save_CC=$CC
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h.  */
10812 #include <stdarg.h>
10813 #include <stdio.h>
10814 #include <sys/types.h>
10815 #include <sys/stat.h>
10816 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10817 struct buf { int x; };
10818 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10819 static char *e (p, i)
10820      char **p;
10821      int i;
10822 {
10823   return p[i];
10824 }
10825 static char *f (char * (*g) (char **, int), char **p, ...)
10826 {
10827   char *s;
10828   va_list v;
10829   va_start (v,p);
10830   s = g (p, va_arg (v,int));
10831   va_end (v);
10832   return s;
10833 }
10834
10835 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10836    function prototypes and stuff, but not '\xHH' hex character constants.
10837    These don't provoke an error unfortunately, instead are silently treated
10838    as 'x'.  The following induces an error, until -std is added to get
10839    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10840    array size at least.  It's necessary to write '\x00'==0 to get something
10841    that's true only with -std.  */
10842 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10843
10844 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10845    inside strings and character constants.  */
10846 #define FOO(x) 'x'
10847 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10848
10849 int test (int i, double x);
10850 struct s1 {int (*f) (int a);};
10851 struct s2 {int (*f) (double a);};
10852 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10853 int argc;
10854 char **argv;
10855 int
10856 main ()
10857 {
10858 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10864         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10865 do
10866   CC="$ac_save_CC $ac_arg"
10867   if ac_fn_c_try_compile "$LINENO"; then :
10868   ac_cv_prog_cc_c89=$ac_arg
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext
10871   test "x$ac_cv_prog_cc_c89" != "xno" && break
10872 done
10873 rm -f conftest.$ac_ext
10874 CC=$ac_save_CC
10875
10876 fi
10877 # AC_CACHE_VAL
10878 case "x$ac_cv_prog_cc_c89" in
10879   x)
10880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10881 $as_echo "none needed" >&6; } ;;
10882   xno)
10883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10884 $as_echo "unsupported" >&6; } ;;
10885   *)
10886     CC="$CC $ac_cv_prog_cc_c89"
10887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10888 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10889 esac
10890 if test "x$ac_cv_prog_cc_c89" != xno; then :
10891
10892 fi
10893
10894 ac_ext=c
10895 ac_cpp='$CPP $CPPFLAGS'
10896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10899
10900 depcc="$CC"   am_compiler_list=
10901
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10903 $as_echo_n "checking dependency style of $depcc... " >&6; }
10904 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10905   $as_echo_n "(cached) " >&6
10906 else
10907   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10908   # We make a subdir and do the tests there.  Otherwise we can end up
10909   # making bogus files that we don't know about and never remove.  For
10910   # instance it was reported that on HP-UX the gcc test will end up
10911   # making a dummy file named `D' -- because `-MD' means `put the output
10912   # in D'.
10913   mkdir conftest.dir
10914   # Copy depcomp to subdir because otherwise we won't find it if we're
10915   # using a relative directory.
10916   cp "$am_depcomp" conftest.dir
10917   cd conftest.dir
10918   # We will build objects and dependencies in a subdirectory because
10919   # it helps to detect inapplicable dependency modes.  For instance
10920   # both Tru64's cc and ICC support -MD to output dependencies as a
10921   # side effect of compilation, but ICC will put the dependencies in
10922   # the current directory while Tru64 will put them in the object
10923   # directory.
10924   mkdir sub
10925
10926   am_cv_CC_dependencies_compiler_type=none
10927   if test "$am_compiler_list" = ""; then
10928      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10929   fi
10930   am__universal=false
10931   case " $depcc " in #(
10932      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10933      esac
10934
10935   for depmode in $am_compiler_list; do
10936     # Setup a source with many dependencies, because some compilers
10937     # like to wrap large dependency lists on column 80 (with \), and
10938     # we should not choose a depcomp mode which is confused by this.
10939     #
10940     # We need to recreate these files for each test, as the compiler may
10941     # overwrite some of them when testing with obscure command lines.
10942     # This happens at least with the AIX C compiler.
10943     : > sub/conftest.c
10944     for i in 1 2 3 4 5 6; do
10945       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10946       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10947       # Solaris 8's {/usr,}/bin/sh.
10948       touch sub/conftst$i.h
10949     done
10950     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10951
10952     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10953     # mode.  It turns out that the SunPro C++ compiler does not properly
10954     # handle `-M -o', and we need to detect this.  Also, some Intel
10955     # versions had trouble with output in subdirs
10956     am__obj=sub/conftest.${OBJEXT-o}
10957     am__minus_obj="-o $am__obj"
10958     case $depmode in
10959     gcc)
10960       # This depmode causes a compiler race in universal mode.
10961       test "$am__universal" = false || continue
10962       ;;
10963     nosideeffect)
10964       # after this tag, mechanisms are not by side-effect, so they'll
10965       # only be used when explicitly requested
10966       if test "x$enable_dependency_tracking" = xyes; then
10967         continue
10968       else
10969         break
10970       fi
10971       ;;
10972     msvisualcpp | msvcmsys)
10973       # This compiler won't grok `-c -o', but also, the minuso test has
10974       # not run yet.  These depmodes are late enough in the game, and
10975       # so weak that their functioning should not be impacted.
10976       am__obj=conftest.${OBJEXT-o}
10977       am__minus_obj=
10978       ;;
10979     none) break ;;
10980     esac
10981     if depmode=$depmode \
10982        source=sub/conftest.c object=$am__obj \
10983        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10984        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10985          >/dev/null 2>conftest.err &&
10986        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10987        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10988        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10989        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10990       # icc doesn't choke on unknown options, it will just issue warnings
10991       # or remarks (even with -Werror).  So we grep stderr for any message
10992       # that says an option was ignored or not supported.
10993       # When given -MP, icc 7.0 and 7.1 complain thusly:
10994       #   icc: Command line warning: ignoring option '-M'; no argument required
10995       # The diagnosis changed in icc 8.0:
10996       #   icc: Command line remark: option '-MP' not supported
10997       if (grep 'ignoring option' conftest.err ||
10998           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10999         am_cv_CC_dependencies_compiler_type=$depmode
11000         break
11001       fi
11002     fi
11003   done
11004
11005   cd ..
11006   rm -rf conftest.dir
11007 else
11008   am_cv_CC_dependencies_compiler_type=none
11009 fi
11010
11011 fi
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11013 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11014 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11015
11016  if
11017   test "x$enable_dependency_tracking" != xno \
11018   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11019   am__fastdepCC_TRUE=
11020   am__fastdepCC_FALSE='#'
11021 else
11022   am__fastdepCC_TRUE='#'
11023   am__fastdepCC_FALSE=
11024 fi
11025
11026
11027
11028
11029 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile mtdev.pc"
11030
11031 cat >confcache <<\_ACEOF
11032 # This file is a shell script that caches the results of configure
11033 # tests run on this system so they can be shared between configure
11034 # scripts and configure runs, see configure's option --config-cache.
11035 # It is not useful on other systems.  If it contains results you don't
11036 # want to keep, you may remove or edit it.
11037 #
11038 # config.status only pays attention to the cache file if you give it
11039 # the --recheck option to rerun configure.
11040 #
11041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11043 # following values.
11044
11045 _ACEOF
11046
11047 # The following way of writing the cache mishandles newlines in values,
11048 # but we know of no workaround that is simple, portable, and efficient.
11049 # So, we kill variables containing newlines.
11050 # Ultrix sh set writes to stderr and can't be redirected directly,
11051 # and sets the high bit in the cache file unless we assign to the vars.
11052 (
11053   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11054     eval ac_val=\$$ac_var
11055     case $ac_val in #(
11056     *${as_nl}*)
11057       case $ac_var in #(
11058       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11060       esac
11061       case $ac_var in #(
11062       _ | IFS | as_nl) ;; #(
11063       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11064       *) { eval $ac_var=; unset $ac_var;} ;;
11065       esac ;;
11066     esac
11067   done
11068
11069   (set) 2>&1 |
11070     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11071     *${as_nl}ac_space=\ *)
11072       # `set' does not quote correctly, so add quotes: double-quote
11073       # substitution turns \\\\ into \\, and sed turns \\ into \.
11074       sed -n \
11075         "s/'/'\\\\''/g;
11076           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11077       ;; #(
11078     *)
11079       # `set' quotes correctly as required by POSIX, so do not add quotes.
11080       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11081       ;;
11082     esac |
11083     sort
11084 ) |
11085   sed '
11086      /^ac_cv_env_/b end
11087      t clear
11088      :clear
11089      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11090      t end
11091      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11092      :end' >>confcache
11093 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11094   if test -w "$cache_file"; then
11095     test "x$cache_file" != "x/dev/null" &&
11096       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11097 $as_echo "$as_me: updating cache $cache_file" >&6;}
11098     cat confcache >$cache_file
11099   else
11100     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11101 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11102   fi
11103 fi
11104 rm -f confcache
11105
11106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11107 # Let make expand exec_prefix.
11108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11109
11110 DEFS=-DHAVE_CONFIG_H
11111
11112 ac_libobjs=
11113 ac_ltlibobjs=
11114 U=
11115 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11116   # 1. Remove the extension, and $U if already installed.
11117   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11118   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11119   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11120   #    will be set to the directory where LIBOBJS objects are built.
11121   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11122   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11123 done
11124 LIBOBJS=$ac_libobjs
11125
11126 LTLIBOBJS=$ac_ltlibobjs
11127
11128
11129  if test -n "$EXEEXT"; then
11130   am__EXEEXT_TRUE=
11131   am__EXEEXT_FALSE='#'
11132 else
11133   am__EXEEXT_TRUE='#'
11134   am__EXEEXT_FALSE=
11135 fi
11136
11137 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11138   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11140 fi
11141 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11142   as_fn_error $? "conditional \"AMDEP\" was never defined.
11143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11144 fi
11145 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11146   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11148 fi
11149 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11150   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11152 fi
11153
11154 : ${CONFIG_STATUS=./config.status}
11155 ac_write_fail=0
11156 ac_clean_files_save=$ac_clean_files
11157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11159 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11160 as_write_fail=0
11161 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11162 #! $SHELL
11163 # Generated by $as_me.
11164 # Run this file to recreate the current configuration.
11165 # Compiler output produced by configure, useful for debugging
11166 # configure, is in config.log if it exists.
11167
11168 debug=false
11169 ac_cs_recheck=false
11170 ac_cs_silent=false
11171
11172 SHELL=\${CONFIG_SHELL-$SHELL}
11173 export SHELL
11174 _ASEOF
11175 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11176 ## -------------------- ##
11177 ## M4sh Initialization. ##
11178 ## -------------------- ##
11179
11180 # Be more Bourne compatible
11181 DUALCASE=1; export DUALCASE # for MKS sh
11182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11183   emulate sh
11184   NULLCMD=:
11185   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11186   # is contrary to our usage.  Disable this feature.
11187   alias -g '${1+"$@"}'='"$@"'
11188   setopt NO_GLOB_SUBST
11189 else
11190   case `(set -o) 2>/dev/null` in #(
11191   *posix*) :
11192     set -o posix ;; #(
11193   *) :
11194      ;;
11195 esac
11196 fi
11197
11198
11199 as_nl='
11200 '
11201 export as_nl
11202 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11203 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11206 # Prefer a ksh shell builtin over an external printf program on Solaris,
11207 # but without wasting forks for bash or zsh.
11208 if test -z "$BASH_VERSION$ZSH_VERSION" \
11209     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11210   as_echo='print -r --'
11211   as_echo_n='print -rn --'
11212 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11213   as_echo='printf %s\n'
11214   as_echo_n='printf %s'
11215 else
11216   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11217     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11218     as_echo_n='/usr/ucb/echo -n'
11219   else
11220     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11221     as_echo_n_body='eval
11222       arg=$1;
11223       case $arg in #(
11224       *"$as_nl"*)
11225         expr "X$arg" : "X\\(.*\\)$as_nl";
11226         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11227       esac;
11228       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11229     '
11230     export as_echo_n_body
11231     as_echo_n='sh -c $as_echo_n_body as_echo'
11232   fi
11233   export as_echo_body
11234   as_echo='sh -c $as_echo_body as_echo'
11235 fi
11236
11237 # The user is always right.
11238 if test "${PATH_SEPARATOR+set}" != set; then
11239   PATH_SEPARATOR=:
11240   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11241     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11242       PATH_SEPARATOR=';'
11243   }
11244 fi
11245
11246
11247 # IFS
11248 # We need space, tab and new line, in precisely that order.  Quoting is
11249 # there to prevent editors from complaining about space-tab.
11250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11251 # splitting by setting IFS to empty value.)
11252 IFS=" ""        $as_nl"
11253
11254 # Find who we are.  Look in the path if we contain no directory separator.
11255 case $0 in #((
11256   *[\\/]* ) as_myself=$0 ;;
11257   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258 for as_dir in $PATH
11259 do
11260   IFS=$as_save_IFS
11261   test -z "$as_dir" && as_dir=.
11262     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11263   done
11264 IFS=$as_save_IFS
11265
11266      ;;
11267 esac
11268 # We did not find ourselves, most probably we were run as `sh COMMAND'
11269 # in which case we are not to be found in the path.
11270 if test "x$as_myself" = x; then
11271   as_myself=$0
11272 fi
11273 if test ! -f "$as_myself"; then
11274   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11275   exit 1
11276 fi
11277
11278 # Unset variables that we do not need and which cause bugs (e.g. in
11279 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11280 # suppresses any "Segmentation fault" message there.  '((' could
11281 # trigger a bug in pdksh 5.2.14.
11282 for as_var in BASH_ENV ENV MAIL MAILPATH
11283 do eval test x\${$as_var+set} = xset \
11284   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11285 done
11286 PS1='$ '
11287 PS2='> '
11288 PS4='+ '
11289
11290 # NLS nuisances.
11291 LC_ALL=C
11292 export LC_ALL
11293 LANGUAGE=C
11294 export LANGUAGE
11295
11296 # CDPATH.
11297 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11298
11299
11300 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11301 # ----------------------------------------
11302 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11303 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11304 # script with STATUS, using 1 if that was 0.
11305 as_fn_error ()
11306 {
11307   as_status=$1; test $as_status -eq 0 && as_status=1
11308   if test "$4"; then
11309     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11310     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11311   fi
11312   $as_echo "$as_me: error: $2" >&2
11313   as_fn_exit $as_status
11314 } # as_fn_error
11315
11316
11317 # as_fn_set_status STATUS
11318 # -----------------------
11319 # Set $? to STATUS, without forking.
11320 as_fn_set_status ()
11321 {
11322   return $1
11323 } # as_fn_set_status
11324
11325 # as_fn_exit STATUS
11326 # -----------------
11327 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11328 as_fn_exit ()
11329 {
11330   set +e
11331   as_fn_set_status $1
11332   exit $1
11333 } # as_fn_exit
11334
11335 # as_fn_unset VAR
11336 # ---------------
11337 # Portably unset VAR.
11338 as_fn_unset ()
11339 {
11340   { eval $1=; unset $1;}
11341 }
11342 as_unset=as_fn_unset
11343 # as_fn_append VAR VALUE
11344 # ----------------------
11345 # Append the text in VALUE to the end of the definition contained in VAR. Take
11346 # advantage of any shell optimizations that allow amortized linear growth over
11347 # repeated appends, instead of the typical quadratic growth present in naive
11348 # implementations.
11349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11350   eval 'as_fn_append ()
11351   {
11352     eval $1+=\$2
11353   }'
11354 else
11355   as_fn_append ()
11356   {
11357     eval $1=\$$1\$2
11358   }
11359 fi # as_fn_append
11360
11361 # as_fn_arith ARG...
11362 # ------------------
11363 # Perform arithmetic evaluation on the ARGs, and store the result in the
11364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11365 # must be portable across $(()) and expr.
11366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11367   eval 'as_fn_arith ()
11368   {
11369     as_val=$(( $* ))
11370   }'
11371 else
11372   as_fn_arith ()
11373   {
11374     as_val=`expr "$@" || test $? -eq 1`
11375   }
11376 fi # as_fn_arith
11377
11378
11379 if expr a : '\(a\)' >/dev/null 2>&1 &&
11380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11381   as_expr=expr
11382 else
11383   as_expr=false
11384 fi
11385
11386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11387   as_basename=basename
11388 else
11389   as_basename=false
11390 fi
11391
11392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11393   as_dirname=dirname
11394 else
11395   as_dirname=false
11396 fi
11397
11398 as_me=`$as_basename -- "$0" ||
11399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11400          X"$0" : 'X\(//\)$' \| \
11401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11402 $as_echo X/"$0" |
11403     sed '/^.*\/\([^/][^/]*\)\/*$/{
11404             s//\1/
11405             q
11406           }
11407           /^X\/\(\/\/\)$/{
11408             s//\1/
11409             q
11410           }
11411           /^X\/\(\/\).*/{
11412             s//\1/
11413             q
11414           }
11415           s/.*/./; q'`
11416
11417 # Avoid depending upon Character Ranges.
11418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11421 as_cr_digits='0123456789'
11422 as_cr_alnum=$as_cr_Letters$as_cr_digits
11423
11424 ECHO_C= ECHO_N= ECHO_T=
11425 case `echo -n x` in #(((((
11426 -n*)
11427   case `echo 'xy\c'` in
11428   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11429   xy)  ECHO_C='\c';;
11430   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11431        ECHO_T=' ';;
11432   esac;;
11433 *)
11434   ECHO_N='-n';;
11435 esac
11436
11437 rm -f conf$$ conf$$.exe conf$$.file
11438 if test -d conf$$.dir; then
11439   rm -f conf$$.dir/conf$$.file
11440 else
11441   rm -f conf$$.dir
11442   mkdir conf$$.dir 2>/dev/null
11443 fi
11444 if (echo >conf$$.file) 2>/dev/null; then
11445   if ln -s conf$$.file conf$$ 2>/dev/null; then
11446     as_ln_s='ln -s'
11447     # ... but there are two gotchas:
11448     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11449     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11450     # In both cases, we have to default to `cp -p'.
11451     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11452       as_ln_s='cp -p'
11453   elif ln conf$$.file conf$$ 2>/dev/null; then
11454     as_ln_s=ln
11455   else
11456     as_ln_s='cp -p'
11457   fi
11458 else
11459   as_ln_s='cp -p'
11460 fi
11461 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11462 rmdir conf$$.dir 2>/dev/null
11463
11464
11465 # as_fn_mkdir_p
11466 # -------------
11467 # Create "$as_dir" as a directory, including parents if necessary.
11468 as_fn_mkdir_p ()
11469 {
11470
11471   case $as_dir in #(
11472   -*) as_dir=./$as_dir;;
11473   esac
11474   test -d "$as_dir" || eval $as_mkdir_p || {
11475     as_dirs=
11476     while :; do
11477       case $as_dir in #(
11478       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11479       *) as_qdir=$as_dir;;
11480       esac
11481       as_dirs="'$as_qdir' $as_dirs"
11482       as_dir=`$as_dirname -- "$as_dir" ||
11483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11484          X"$as_dir" : 'X\(//\)[^/]' \| \
11485          X"$as_dir" : 'X\(//\)$' \| \
11486          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11487 $as_echo X"$as_dir" |
11488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11489             s//\1/
11490             q
11491           }
11492           /^X\(\/\/\)[^/].*/{
11493             s//\1/
11494             q
11495           }
11496           /^X\(\/\/\)$/{
11497             s//\1/
11498             q
11499           }
11500           /^X\(\/\).*/{
11501             s//\1/
11502             q
11503           }
11504           s/.*/./; q'`
11505       test -d "$as_dir" && break
11506     done
11507     test -z "$as_dirs" || eval "mkdir $as_dirs"
11508   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11509
11510
11511 } # as_fn_mkdir_p
11512 if mkdir -p . 2>/dev/null; then
11513   as_mkdir_p='mkdir -p "$as_dir"'
11514 else
11515   test -d ./-p && rmdir ./-p
11516   as_mkdir_p=false
11517 fi
11518
11519 if test -x / >/dev/null 2>&1; then
11520   as_test_x='test -x'
11521 else
11522   if ls -dL / >/dev/null 2>&1; then
11523     as_ls_L_option=L
11524   else
11525     as_ls_L_option=
11526   fi
11527   as_test_x='
11528     eval sh -c '\''
11529       if test -d "$1"; then
11530         test -d "$1/.";
11531       else
11532         case $1 in #(
11533         -*)set "./$1";;
11534         esac;
11535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11536         ???[sx]*):;;*)false;;esac;fi
11537     '\'' sh
11538   '
11539 fi
11540 as_executable_p=$as_test_x
11541
11542 # Sed expression to map a string onto a valid CPP name.
11543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11544
11545 # Sed expression to map a string onto a valid variable name.
11546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11547
11548
11549 exec 6>&1
11550 ## ----------------------------------- ##
11551 ## Main body of $CONFIG_STATUS script. ##
11552 ## ----------------------------------- ##
11553 _ASEOF
11554 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11555
11556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11557 # Save the log message, to keep $0 and so on meaningful, and to
11558 # report actual input values of CONFIG_FILES etc. instead of their
11559 # values after options handling.
11560 ac_log="
11561 This file was extended by Multitouch Protocol Translation Library $as_me 1.0.11, which was
11562 generated by GNU Autoconf 2.67.  Invocation command line was
11563
11564   CONFIG_FILES    = $CONFIG_FILES
11565   CONFIG_HEADERS  = $CONFIG_HEADERS
11566   CONFIG_LINKS    = $CONFIG_LINKS
11567   CONFIG_COMMANDS = $CONFIG_COMMANDS
11568   $ $0 $@
11569
11570 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11571 "
11572
11573 _ACEOF
11574
11575 case $ac_config_files in *"
11576 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11577 esac
11578
11579 case $ac_config_headers in *"
11580 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11581 esac
11582
11583
11584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11585 # Files that config.status was made for.
11586 config_files="$ac_config_files"
11587 config_headers="$ac_config_headers"
11588 config_commands="$ac_config_commands"
11589
11590 _ACEOF
11591
11592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11593 ac_cs_usage="\
11594 \`$as_me' instantiates files and other configuration actions
11595 from templates according to the current configuration.  Unless the files
11596 and actions are specified as TAGs, all are instantiated by default.
11597
11598 Usage: $0 [OPTION]... [TAG]...
11599
11600   -h, --help       print this help, then exit
11601   -V, --version    print version number and configuration settings, then exit
11602       --config     print configuration, then exit
11603   -q, --quiet, --silent
11604                    do not print progress messages
11605   -d, --debug      don't remove temporary files
11606       --recheck    update $as_me by reconfiguring in the same conditions
11607       --file=FILE[:TEMPLATE]
11608                    instantiate the configuration file FILE
11609       --header=FILE[:TEMPLATE]
11610                    instantiate the configuration header FILE
11611
11612 Configuration files:
11613 $config_files
11614
11615 Configuration headers:
11616 $config_headers
11617
11618 Configuration commands:
11619 $config_commands
11620
11621 Report bugs to the package provider."
11622
11623 _ACEOF
11624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11625 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11626 ac_cs_version="\\
11627 Multitouch Protocol Translation Library config.status 1.0.11
11628 configured by $0, generated by GNU Autoconf 2.67,
11629   with options \\"\$ac_cs_config\\"
11630
11631 Copyright (C) 2010 Free Software Foundation, Inc.
11632 This config.status script is free software; the Free Software Foundation
11633 gives unlimited permission to copy, distribute and modify it."
11634
11635 ac_pwd='$ac_pwd'
11636 srcdir='$srcdir'
11637 INSTALL='$INSTALL'
11638 MKDIR_P='$MKDIR_P'
11639 AWK='$AWK'
11640 test -n "\$AWK" || AWK=awk
11641 _ACEOF
11642
11643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11644 # The default lists apply if the user does not specify any file.
11645 ac_need_defaults=:
11646 while test $# != 0
11647 do
11648   case $1 in
11649   --*=?*)
11650     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11651     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11652     ac_shift=:
11653     ;;
11654   --*=)
11655     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11656     ac_optarg=
11657     ac_shift=:
11658     ;;
11659   *)
11660     ac_option=$1
11661     ac_optarg=$2
11662     ac_shift=shift
11663     ;;
11664   esac
11665
11666   case $ac_option in
11667   # Handling of the options.
11668   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11669     ac_cs_recheck=: ;;
11670   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11671     $as_echo "$ac_cs_version"; exit ;;
11672   --config | --confi | --conf | --con | --co | --c )
11673     $as_echo "$ac_cs_config"; exit ;;
11674   --debug | --debu | --deb | --de | --d | -d )
11675     debug=: ;;
11676   --file | --fil | --fi | --f )
11677     $ac_shift
11678     case $ac_optarg in
11679     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11680     '') as_fn_error $? "missing file argument" ;;
11681     esac
11682     as_fn_append CONFIG_FILES " '$ac_optarg'"
11683     ac_need_defaults=false;;
11684   --header | --heade | --head | --hea )
11685     $ac_shift
11686     case $ac_optarg in
11687     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11688     esac
11689     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11690     ac_need_defaults=false;;
11691   --he | --h)
11692     # Conflict between --help and --header
11693     as_fn_error $? "ambiguous option: \`$1'
11694 Try \`$0 --help' for more information.";;
11695   --help | --hel | -h )
11696     $as_echo "$ac_cs_usage"; exit ;;
11697   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11698   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11699     ac_cs_silent=: ;;
11700
11701   # This is an error.
11702   -*) as_fn_error $? "unrecognized option: \`$1'
11703 Try \`$0 --help' for more information." ;;
11704
11705   *) as_fn_append ac_config_targets " $1"
11706      ac_need_defaults=false ;;
11707
11708   esac
11709   shift
11710 done
11711
11712 ac_configure_extra_args=
11713
11714 if $ac_cs_silent; then
11715   exec 6>/dev/null
11716   ac_configure_extra_args="$ac_configure_extra_args --silent"
11717 fi
11718
11719 _ACEOF
11720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11721 if \$ac_cs_recheck; then
11722   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11723   shift
11724   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11725   CONFIG_SHELL='$SHELL'
11726   export CONFIG_SHELL
11727   exec "\$@"
11728 fi
11729
11730 _ACEOF
11731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11732 exec 5>>config.log
11733 {
11734   echo
11735   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11736 ## Running $as_me. ##
11737 _ASBOX
11738   $as_echo "$ac_log"
11739 } >&5
11740
11741 _ACEOF
11742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11743 #
11744 # INIT-COMMANDS
11745 #
11746 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11747
11748
11749 # The HP-UX ksh and POSIX shell print the target directory to stdout
11750 # if CDPATH is set.
11751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11752
11753 sed_quote_subst='$sed_quote_subst'
11754 double_quote_subst='$double_quote_subst'
11755 delay_variable_subst='$delay_variable_subst'
11756 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11757 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11758 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11759 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11760 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11761 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11762 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11763 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11764 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11765 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11766 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11767 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11768 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11769 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11770 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11771 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11772 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11773 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11774 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11775 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11776 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11777 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11778 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11779 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11780 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11781 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11782 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11783 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11784 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11785 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11786 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11787 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11788 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11789 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11790 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11791 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11792 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11793 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11794 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11795 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11796 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11797 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11798 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11799 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11800 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11801 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11802 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11803 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11804 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11805 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11806 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11807 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11808 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11809 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11810 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11811 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11812 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11813 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11814 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11815 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11816 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11817 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11818 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11819 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11820 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11821 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11822 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11823 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11824 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11825 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11826 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11827 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11828 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11829 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11830 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11831 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11832 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11833 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11834 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11835 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11836 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11837 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11838 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11839 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11840 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11841 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11842 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11843 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11844 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11845 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11846 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11847 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11848 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11849 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11850 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11851 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11852 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11853 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11854 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11855 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11856 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11857 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11858 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11859 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11860 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11861 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11862 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11863 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11864 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11865 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11866 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11867 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11868 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11869 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11870 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11871 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11872 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11873 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11874
11875 LTCC='$LTCC'
11876 LTCFLAGS='$LTCFLAGS'
11877 compiler='$compiler_DEFAULT'
11878
11879 # Quote evaled strings.
11880 for var in SED \
11881 GREP \
11882 EGREP \
11883 FGREP \
11884 LD \
11885 NM \
11886 LN_S \
11887 lt_SP2NL \
11888 lt_NL2SP \
11889 reload_flag \
11890 OBJDUMP \
11891 deplibs_check_method \
11892 file_magic_cmd \
11893 AR \
11894 AR_FLAGS \
11895 STRIP \
11896 RANLIB \
11897 CC \
11898 CFLAGS \
11899 compiler \
11900 lt_cv_sys_global_symbol_pipe \
11901 lt_cv_sys_global_symbol_to_cdecl \
11902 lt_cv_sys_global_symbol_to_c_name_address \
11903 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11904 SHELL \
11905 ECHO \
11906 lt_prog_compiler_no_builtin_flag \
11907 lt_prog_compiler_wl \
11908 lt_prog_compiler_pic \
11909 lt_prog_compiler_static \
11910 lt_cv_prog_compiler_c_o \
11911 need_locks \
11912 DSYMUTIL \
11913 NMEDIT \
11914 LIPO \
11915 OTOOL \
11916 OTOOL64 \
11917 shrext_cmds \
11918 export_dynamic_flag_spec \
11919 whole_archive_flag_spec \
11920 compiler_needs_object \
11921 with_gnu_ld \
11922 allow_undefined_flag \
11923 no_undefined_flag \
11924 hardcode_libdir_flag_spec \
11925 hardcode_libdir_flag_spec_ld \
11926 hardcode_libdir_separator \
11927 fix_srcfile_path \
11928 exclude_expsyms \
11929 include_expsyms \
11930 file_list_spec \
11931 variables_saved_for_relink \
11932 libname_spec \
11933 library_names_spec \
11934 soname_spec \
11935 finish_eval \
11936 old_striplib \
11937 striplib; do
11938     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11939     *[\\\\\\\`\\"\\\$]*)
11940       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11941       ;;
11942     *)
11943       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11944       ;;
11945     esac
11946 done
11947
11948 # Double-quote double-evaled strings.
11949 for var in reload_cmds \
11950 old_postinstall_cmds \
11951 old_postuninstall_cmds \
11952 old_archive_cmds \
11953 extract_expsyms_cmds \
11954 old_archive_from_new_cmds \
11955 old_archive_from_expsyms_cmds \
11956 archive_cmds \
11957 archive_expsym_cmds \
11958 module_cmds \
11959 module_expsym_cmds \
11960 export_symbols_cmds \
11961 prelink_cmds \
11962 postinstall_cmds \
11963 postuninstall_cmds \
11964 finish_cmds \
11965 sys_lib_search_path_spec \
11966 sys_lib_dlsearch_path_spec; do
11967     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11968     *[\\\\\\\`\\"\\\$]*)
11969       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11970       ;;
11971     *)
11972       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11973       ;;
11974     esac
11975 done
11976
11977 # Fix-up fallback echo if it was mangled by the above quoting rules.
11978 case \$lt_ECHO in
11979 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11980   ;;
11981 esac
11982
11983 ac_aux_dir='$ac_aux_dir'
11984 xsi_shell='$xsi_shell'
11985 lt_shell_append='$lt_shell_append'
11986
11987 # See if we are running on zsh, and set the options which allow our
11988 # commands through without removal of \ escapes INIT.
11989 if test -n "\${ZSH_VERSION+set}" ; then
11990    setopt NO_GLOB_SUBST
11991 fi
11992
11993
11994     PACKAGE='$PACKAGE'
11995     VERSION='$VERSION'
11996     TIMESTAMP='$TIMESTAMP'
11997     RM='$RM'
11998     ofile='$ofile'
11999
12000
12001
12002
12003 _ACEOF
12004
12005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12006
12007 # Handling of arguments.
12008 for ac_config_target in $ac_config_targets
12009 do
12010   case $ac_config_target in
12011     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12012     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12013     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12014     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12015     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12016     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12017     "mtdev.pc") CONFIG_FILES="$CONFIG_FILES mtdev.pc" ;;
12018
12019   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12020   esac
12021 done
12022
12023
12024 # If the user did not use the arguments to specify the items to instantiate,
12025 # then the envvar interface is used.  Set only those that are not.
12026 # We use the long form for the default assignment because of an extremely
12027 # bizarre bug on SunOS 4.1.3.
12028 if $ac_need_defaults; then
12029   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12030   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12031   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12032 fi
12033
12034 # Have a temporary directory for convenience.  Make it in the build tree
12035 # simply because there is no reason against having it here, and in addition,
12036 # creating and moving files from /tmp can sometimes cause problems.
12037 # Hook for its removal unless debugging.
12038 # Note that there is a small window in which the directory will not be cleaned:
12039 # after its creation but before its name has been assigned to `$tmp'.
12040 $debug ||
12041 {
12042   tmp=
12043   trap 'exit_status=$?
12044   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12045 ' 0
12046   trap 'as_fn_exit 1' 1 2 13 15
12047 }
12048 # Create a (secure) tmp directory for tmp files.
12049
12050 {
12051   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12052   test -n "$tmp" && test -d "$tmp"
12053 }  ||
12054 {
12055   tmp=./conf$$-$RANDOM
12056   (umask 077 && mkdir "$tmp")
12057 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12058
12059 # Set up the scripts for CONFIG_FILES section.
12060 # No need to generate them if there are no CONFIG_FILES.
12061 # This happens for instance with `./config.status config.h'.
12062 if test -n "$CONFIG_FILES"; then
12063
12064
12065 ac_cr=`echo X | tr X '\015'`
12066 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12067 # But we know of no other shell where ac_cr would be empty at this
12068 # point, so we can use a bashism as a fallback.
12069 if test "x$ac_cr" = x; then
12070   eval ac_cr=\$\'\\r\'
12071 fi
12072 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12073 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12074   ac_cs_awk_cr='\\r'
12075 else
12076   ac_cs_awk_cr=$ac_cr
12077 fi
12078
12079 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12080 _ACEOF
12081
12082
12083 {
12084   echo "cat >conf$$subs.awk <<_ACEOF" &&
12085   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12086   echo "_ACEOF"
12087 } >conf$$subs.sh ||
12088   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12089 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12090 ac_delim='%!_!# '
12091 for ac_last_try in false false false false false :; do
12092   . ./conf$$subs.sh ||
12093     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12094
12095   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12096   if test $ac_delim_n = $ac_delim_num; then
12097     break
12098   elif $ac_last_try; then
12099     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12100   else
12101     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12102   fi
12103 done
12104 rm -f conf$$subs.sh
12105
12106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12108 _ACEOF
12109 sed -n '
12110 h
12111 s/^/S["/; s/!.*/"]=/
12112 p
12113 g
12114 s/^[^!]*!//
12115 :repl
12116 t repl
12117 s/'"$ac_delim"'$//
12118 t delim
12119 :nl
12120 h
12121 s/\(.\{148\}\)..*/\1/
12122 t more1
12123 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12124 p
12125 n
12126 b repl
12127 :more1
12128 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12129 p
12130 g
12131 s/.\{148\}//
12132 t nl
12133 :delim
12134 h
12135 s/\(.\{148\}\)..*/\1/
12136 t more2
12137 s/["\\]/\\&/g; s/^/"/; s/$/"/
12138 p
12139 b
12140 :more2
12141 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12142 p
12143 g
12144 s/.\{148\}//
12145 t delim
12146 ' <conf$$subs.awk | sed '
12147 /^[^""]/{
12148   N
12149   s/\n//
12150 }
12151 ' >>$CONFIG_STATUS || ac_write_fail=1
12152 rm -f conf$$subs.awk
12153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12154 _ACAWK
12155 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12156   for (key in S) S_is_set[key] = 1
12157   FS = "\a"
12158
12159 }
12160 {
12161   line = $ 0
12162   nfields = split(line, field, "@")
12163   substed = 0
12164   len = length(field[1])
12165   for (i = 2; i < nfields; i++) {
12166     key = field[i]
12167     keylen = length(key)
12168     if (S_is_set[key]) {
12169       value = S[key]
12170       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12171       len += length(value) + length(field[++i])
12172       substed = 1
12173     } else
12174       len += 1 + keylen
12175   }
12176
12177   print line
12178 }
12179
12180 _ACAWK
12181 _ACEOF
12182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12184   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12185 else
12186   cat
12187 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12188   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12189 _ACEOF
12190
12191 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12192 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12193 # trailing colons and then remove the whole line if VPATH becomes empty
12194 # (actually we leave an empty line to preserve line numbers).
12195 if test "x$srcdir" = x.; then
12196   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12197 h
12198 s///
12199 s/^/:/
12200 s/[      ]*$/:/
12201 s/:\$(srcdir):/:/g
12202 s/:\${srcdir}:/:/g
12203 s/:@srcdir@:/:/g
12204 s/^:*//
12205 s/:*$//
12206 x
12207 s/\(=[   ]*\).*/\1/
12208 G
12209 s/\n//
12210 s/^[^=]*=[       ]*$//
12211 }'
12212 fi
12213
12214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12215 fi # test -n "$CONFIG_FILES"
12216
12217 # Set up the scripts for CONFIG_HEADERS section.
12218 # No need to generate them if there are no CONFIG_HEADERS.
12219 # This happens for instance with `./config.status Makefile'.
12220 if test -n "$CONFIG_HEADERS"; then
12221 cat >"$tmp/defines.awk" <<\_ACAWK ||
12222 BEGIN {
12223 _ACEOF
12224
12225 # Transform confdefs.h into an awk script `defines.awk', embedded as
12226 # here-document in config.status, that substitutes the proper values into
12227 # config.h.in to produce config.h.
12228
12229 # Create a delimiter string that does not exist in confdefs.h, to ease
12230 # handling of long lines.
12231 ac_delim='%!_!# '
12232 for ac_last_try in false false :; do
12233   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12234   if test -z "$ac_t"; then
12235     break
12236   elif $ac_last_try; then
12237     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12238   else
12239     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12240   fi
12241 done
12242
12243 # For the awk script, D is an array of macro values keyed by name,
12244 # likewise P contains macro parameters if any.  Preserve backslash
12245 # newline sequences.
12246
12247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12248 sed -n '
12249 s/.\{148\}/&'"$ac_delim"'/g
12250 t rset
12251 :rset
12252 s/^[     ]*#[    ]*define[       ][      ]*/ /
12253 t def
12254 d
12255 :def
12256 s/\\$//
12257 t bsnl
12258 s/["\\]/\\&/g
12259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12260 D["\1"]=" \3"/p
12261 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12262 d
12263 :bsnl
12264 s/["\\]/\\&/g
12265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12266 D["\1"]=" \3\\\\\\n"\\/p
12267 t cont
12268 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12269 t cont
12270 d
12271 :cont
12272 n
12273 s/.\{148\}/&'"$ac_delim"'/g
12274 t clear
12275 :clear
12276 s/\\$//
12277 t bsnlc
12278 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12279 d
12280 :bsnlc
12281 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12282 b cont
12283 ' <confdefs.h | sed '
12284 s/'"$ac_delim"'/"\\\
12285 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12286
12287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12288   for (key in D) D_is_set[key] = 1
12289   FS = "\a"
12290 }
12291 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12292   line = \$ 0
12293   split(line, arg, " ")
12294   if (arg[1] == "#") {
12295     defundef = arg[2]
12296     mac1 = arg[3]
12297   } else {
12298     defundef = substr(arg[1], 2)
12299     mac1 = arg[2]
12300   }
12301   split(mac1, mac2, "(") #)
12302   macro = mac2[1]
12303   prefix = substr(line, 1, index(line, defundef) - 1)
12304   if (D_is_set[macro]) {
12305     # Preserve the white space surrounding the "#".
12306     print prefix "define", macro P[macro] D[macro]
12307     next
12308   } else {
12309     # Replace #undef with comments.  This is necessary, for example,
12310     # in the case of _POSIX_SOURCE, which is predefined and required
12311     # on some systems where configure will not decide to define it.
12312     if (defundef == "undef") {
12313       print "/*", prefix defundef, macro, "*/"
12314       next
12315     }
12316   }
12317 }
12318 { print }
12319 _ACAWK
12320 _ACEOF
12321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12322   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12323 fi # test -n "$CONFIG_HEADERS"
12324
12325
12326 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12327 shift
12328 for ac_tag
12329 do
12330   case $ac_tag in
12331   :[FHLC]) ac_mode=$ac_tag; continue;;
12332   esac
12333   case $ac_mode$ac_tag in
12334   :[FHL]*:*);;
12335   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12336   :[FH]-) ac_tag=-:-;;
12337   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12338   esac
12339   ac_save_IFS=$IFS
12340   IFS=:
12341   set x $ac_tag
12342   IFS=$ac_save_IFS
12343   shift
12344   ac_file=$1
12345   shift
12346
12347   case $ac_mode in
12348   :L) ac_source=$1;;
12349   :[FH])
12350     ac_file_inputs=
12351     for ac_f
12352     do
12353       case $ac_f in
12354       -) ac_f="$tmp/stdin";;
12355       *) # Look for the file first in the build tree, then in the source tree
12356          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12357          # because $ac_f cannot contain `:'.
12358          test -f "$ac_f" ||
12359            case $ac_f in
12360            [\\/$]*) false;;
12361            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12362            esac ||
12363            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12364       esac
12365       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12366       as_fn_append ac_file_inputs " '$ac_f'"
12367     done
12368
12369     # Let's still pretend it is `configure' which instantiates (i.e., don't
12370     # use $as_me), people would be surprised to read:
12371     #    /* config.h.  Generated by config.status.  */
12372     configure_input='Generated from '`
12373           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12374         `' by configure.'
12375     if test x"$ac_file" != x-; then
12376       configure_input="$ac_file.  $configure_input"
12377       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12378 $as_echo "$as_me: creating $ac_file" >&6;}
12379     fi
12380     # Neutralize special characters interpreted by sed in replacement strings.
12381     case $configure_input in #(
12382     *\&* | *\|* | *\\* )
12383        ac_sed_conf_input=`$as_echo "$configure_input" |
12384        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12385     *) ac_sed_conf_input=$configure_input;;
12386     esac
12387
12388     case $ac_tag in
12389     *:-:* | *:-) cat >"$tmp/stdin" \
12390       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
12391     esac
12392     ;;
12393   esac
12394
12395   ac_dir=`$as_dirname -- "$ac_file" ||
12396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12397          X"$ac_file" : 'X\(//\)[^/]' \| \
12398          X"$ac_file" : 'X\(//\)$' \| \
12399          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12400 $as_echo X"$ac_file" |
12401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12402             s//\1/
12403             q
12404           }
12405           /^X\(\/\/\)[^/].*/{
12406             s//\1/
12407             q
12408           }
12409           /^X\(\/\/\)$/{
12410             s//\1/
12411             q
12412           }
12413           /^X\(\/\).*/{
12414             s//\1/
12415             q
12416           }
12417           s/.*/./; q'`
12418   as_dir="$ac_dir"; as_fn_mkdir_p
12419   ac_builddir=.
12420
12421 case "$ac_dir" in
12422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12423 *)
12424   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12425   # A ".." for each directory in $ac_dir_suffix.
12426   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12427   case $ac_top_builddir_sub in
12428   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12429   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12430   esac ;;
12431 esac
12432 ac_abs_top_builddir=$ac_pwd
12433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12434 # for backward compatibility:
12435 ac_top_builddir=$ac_top_build_prefix
12436
12437 case $srcdir in
12438   .)  # We are building in place.
12439     ac_srcdir=.
12440     ac_top_srcdir=$ac_top_builddir_sub
12441     ac_abs_top_srcdir=$ac_pwd ;;
12442   [\\/]* | ?:[\\/]* )  # Absolute name.
12443     ac_srcdir=$srcdir$ac_dir_suffix;
12444     ac_top_srcdir=$srcdir
12445     ac_abs_top_srcdir=$srcdir ;;
12446   *) # Relative name.
12447     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12448     ac_top_srcdir=$ac_top_build_prefix$srcdir
12449     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12450 esac
12451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12452
12453
12454   case $ac_mode in
12455   :F)
12456   #
12457   # CONFIG_FILE
12458   #
12459
12460   case $INSTALL in
12461   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12462   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12463   esac
12464   ac_MKDIR_P=$MKDIR_P
12465   case $MKDIR_P in
12466   [\\/$]* | ?:[\\/]* ) ;;
12467   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12468   esac
12469 _ACEOF
12470
12471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472 # If the template does not know about datarootdir, expand it.
12473 # FIXME: This hack should be removed a few years after 2.60.
12474 ac_datarootdir_hack=; ac_datarootdir_seen=
12475 ac_sed_dataroot='
12476 /datarootdir/ {
12477   p
12478   q
12479 }
12480 /@datadir@/p
12481 /@docdir@/p
12482 /@infodir@/p
12483 /@localedir@/p
12484 /@mandir@/p'
12485 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12486 *datarootdir*) ac_datarootdir_seen=yes;;
12487 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12488   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12489 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12490 _ACEOF
12491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492   ac_datarootdir_hack='
12493   s&@datadir@&$datadir&g
12494   s&@docdir@&$docdir&g
12495   s&@infodir@&$infodir&g
12496   s&@localedir@&$localedir&g
12497   s&@mandir@&$mandir&g
12498   s&\\\${datarootdir}&$datarootdir&g' ;;
12499 esac
12500 _ACEOF
12501
12502 # Neutralize VPATH when `$srcdir' = `.'.
12503 # Shell code in configure.ac might set extrasub.
12504 # FIXME: do we really want to maintain this feature?
12505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12506 ac_sed_extra="$ac_vpsub
12507 $extrasub
12508 _ACEOF
12509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12510 :t
12511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12512 s|@configure_input@|$ac_sed_conf_input|;t t
12513 s&@top_builddir@&$ac_top_builddir_sub&;t t
12514 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12515 s&@srcdir@&$ac_srcdir&;t t
12516 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12517 s&@top_srcdir@&$ac_top_srcdir&;t t
12518 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12519 s&@builddir@&$ac_builddir&;t t
12520 s&@abs_builddir@&$ac_abs_builddir&;t t
12521 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12522 s&@INSTALL@&$ac_INSTALL&;t t
12523 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12524 $ac_datarootdir_hack
12525 "
12526 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12527   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12528
12529 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12530   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12531   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12533 which seems to be undefined.  Please make sure it is defined" >&5
12534 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12535 which seems to be undefined.  Please make sure it is defined" >&2;}
12536
12537   rm -f "$tmp/stdin"
12538   case $ac_file in
12539   -) cat "$tmp/out" && rm -f "$tmp/out";;
12540   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12541   esac \
12542   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12543  ;;
12544   :H)
12545   #
12546   # CONFIG_HEADER
12547   #
12548   if test x"$ac_file" != x-; then
12549     {
12550       $as_echo "/* $configure_input  */" \
12551       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12552     } >"$tmp/config.h" \
12553       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12554     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12555       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12556 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12557     else
12558       rm -f "$ac_file"
12559       mv "$tmp/config.h" "$ac_file" \
12560         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12561     fi
12562   else
12563     $as_echo "/* $configure_input  */" \
12564       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12565       || as_fn_error $? "could not create -" "$LINENO" 5
12566   fi
12567 # Compute "$ac_file"'s index in $config_headers.
12568 _am_arg="$ac_file"
12569 _am_stamp_count=1
12570 for _am_header in $config_headers :; do
12571   case $_am_header in
12572     $_am_arg | $_am_arg:* )
12573       break ;;
12574     * )
12575       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12576   esac
12577 done
12578 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12579 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12580          X"$_am_arg" : 'X\(//\)[^/]' \| \
12581          X"$_am_arg" : 'X\(//\)$' \| \
12582          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12583 $as_echo X"$_am_arg" |
12584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12585             s//\1/
12586             q
12587           }
12588           /^X\(\/\/\)[^/].*/{
12589             s//\1/
12590             q
12591           }
12592           /^X\(\/\/\)$/{
12593             s//\1/
12594             q
12595           }
12596           /^X\(\/\).*/{
12597             s//\1/
12598             q
12599           }
12600           s/.*/./; q'`/stamp-h$_am_stamp_count
12601  ;;
12602
12603   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12604 $as_echo "$as_me: executing $ac_file commands" >&6;}
12605  ;;
12606   esac
12607
12608
12609   case $ac_file$ac_mode in
12610     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12611   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12612   # are listed without --file.  Let's play safe and only enable the eval
12613   # if we detect the quoting.
12614   case $CONFIG_FILES in
12615   *\'*) eval set x "$CONFIG_FILES" ;;
12616   *)   set x $CONFIG_FILES ;;
12617   esac
12618   shift
12619   for mf
12620   do
12621     # Strip MF so we end up with the name of the file.
12622     mf=`echo "$mf" | sed -e 's/:.*$//'`
12623     # Check whether this is an Automake generated Makefile or not.
12624     # We used to match only the files named `Makefile.in', but
12625     # some people rename them; so instead we look at the file content.
12626     # Grep'ing the first line is not enough: some people post-process
12627     # each Makefile.in and add a new line on top of each file to say so.
12628     # Grep'ing the whole file is not good either: AIX grep has a line
12629     # limit of 2048, but all sed's we know have understand at least 4000.
12630     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12631       dirpart=`$as_dirname -- "$mf" ||
12632 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12633          X"$mf" : 'X\(//\)[^/]' \| \
12634          X"$mf" : 'X\(//\)$' \| \
12635          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12636 $as_echo X"$mf" |
12637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12638             s//\1/
12639             q
12640           }
12641           /^X\(\/\/\)[^/].*/{
12642             s//\1/
12643             q
12644           }
12645           /^X\(\/\/\)$/{
12646             s//\1/
12647             q
12648           }
12649           /^X\(\/\).*/{
12650             s//\1/
12651             q
12652           }
12653           s/.*/./; q'`
12654     else
12655       continue
12656     fi
12657     # Extract the definition of DEPDIR, am__include, and am__quote
12658     # from the Makefile without running `make'.
12659     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12660     test -z "$DEPDIR" && continue
12661     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12662     test -z "am__include" && continue
12663     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12664     # When using ansi2knr, U may be empty or an underscore; expand it
12665     U=`sed -n 's/^U = //p' < "$mf"`
12666     # Find all dependency output files, they are included files with
12667     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12668     # simplest approach to changing $(DEPDIR) to its actual value in the
12669     # expansion.
12670     for file in `sed -n "
12671       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12672          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12673       # Make sure the directory exists.
12674       test -f "$dirpart/$file" && continue
12675       fdir=`$as_dirname -- "$file" ||
12676 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12677          X"$file" : 'X\(//\)[^/]' \| \
12678          X"$file" : 'X\(//\)$' \| \
12679          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12680 $as_echo X"$file" |
12681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12682             s//\1/
12683             q
12684           }
12685           /^X\(\/\/\)[^/].*/{
12686             s//\1/
12687             q
12688           }
12689           /^X\(\/\/\)$/{
12690             s//\1/
12691             q
12692           }
12693           /^X\(\/\).*/{
12694             s//\1/
12695             q
12696           }
12697           s/.*/./; q'`
12698       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12699       # echo "creating $dirpart/$file"
12700       echo '# dummy' > "$dirpart/$file"
12701     done
12702   done
12703 }
12704  ;;
12705     "libtool":C)
12706
12707     # See if we are running on zsh, and set the options which allow our
12708     # commands through without removal of \ escapes.
12709     if test -n "${ZSH_VERSION+set}" ; then
12710       setopt NO_GLOB_SUBST
12711     fi
12712
12713     cfgfile="${ofile}T"
12714     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12715     $RM "$cfgfile"
12716
12717     cat <<_LT_EOF >> "$cfgfile"
12718 #! $SHELL
12719
12720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12724 #
12725 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12726 #                 2006, 2007, 2008 Free Software Foundation, Inc.
12727 #   Written by Gordon Matzigkeit, 1996
12728 #
12729 #   This file is part of GNU Libtool.
12730 #
12731 # GNU Libtool is free software; you can redistribute it and/or
12732 # modify it under the terms of the GNU General Public License as
12733 # published by the Free Software Foundation; either version 2 of
12734 # the License, or (at your option) any later version.
12735 #
12736 # As a special exception to the GNU General Public License,
12737 # if you distribute this file as part of a program or library that
12738 # is built using GNU Libtool, you may include this file under the
12739 # same distribution terms that you use for the rest of that program.
12740 #
12741 # GNU Libtool is distributed in the hope that it will be useful,
12742 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12743 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12744 # GNU General Public License for more details.
12745 #
12746 # You should have received a copy of the GNU General Public License
12747 # along with GNU Libtool; see the file COPYING.  If not, a copy
12748 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12749 # obtained by writing to the Free Software Foundation, Inc.,
12750 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12751
12752
12753 # The names of the tagged configurations supported by this script.
12754 available_tags=""
12755
12756 # ### BEGIN LIBTOOL CONFIG
12757
12758 # Which release of libtool.m4 was used?
12759 macro_version=$macro_version
12760 macro_revision=$macro_revision
12761
12762 # Whether or not to build shared libraries.
12763 build_libtool_libs=$enable_shared
12764
12765 # Whether or not to build static libraries.
12766 build_old_libs=$enable_static
12767
12768 # What type of objects to build.
12769 pic_mode=$pic_mode
12770
12771 # Whether or not to optimize for fast installation.
12772 fast_install=$enable_fast_install
12773
12774 # The host system.
12775 host_alias=$host_alias
12776 host=$host
12777 host_os=$host_os
12778
12779 # The build system.
12780 build_alias=$build_alias
12781 build=$build
12782 build_os=$build_os
12783
12784 # A sed program that does not truncate output.
12785 SED=$lt_SED
12786
12787 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12788 Xsed="\$SED -e 1s/^X//"
12789
12790 # A grep program that handles long lines.
12791 GREP=$lt_GREP
12792
12793 # An ERE matcher.
12794 EGREP=$lt_EGREP
12795
12796 # A literal string matcher.
12797 FGREP=$lt_FGREP
12798
12799 # A BSD- or MS-compatible name lister.
12800 NM=$lt_NM
12801
12802 # Whether we need soft or hard links.
12803 LN_S=$lt_LN_S
12804
12805 # What is the maximum length of a command?
12806 max_cmd_len=$max_cmd_len
12807
12808 # Object file suffix (normally "o").
12809 objext=$ac_objext
12810
12811 # Executable file suffix (normally "").
12812 exeext=$exeext
12813
12814 # whether the shell understands "unset".
12815 lt_unset=$lt_unset
12816
12817 # turn spaces into newlines.
12818 SP2NL=$lt_lt_SP2NL
12819
12820 # turn newlines into spaces.
12821 NL2SP=$lt_lt_NL2SP
12822
12823 # How to create reloadable object files.
12824 reload_flag=$lt_reload_flag
12825 reload_cmds=$lt_reload_cmds
12826
12827 # An object symbol dumper.
12828 OBJDUMP=$lt_OBJDUMP
12829
12830 # Method to check whether dependent libraries are shared objects.
12831 deplibs_check_method=$lt_deplibs_check_method
12832
12833 # Command to use when deplibs_check_method == "file_magic".
12834 file_magic_cmd=$lt_file_magic_cmd
12835
12836 # The archiver.
12837 AR=$lt_AR
12838 AR_FLAGS=$lt_AR_FLAGS
12839
12840 # A symbol stripping program.
12841 STRIP=$lt_STRIP
12842
12843 # Commands used to install an old-style archive.
12844 RANLIB=$lt_RANLIB
12845 old_postinstall_cmds=$lt_old_postinstall_cmds
12846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12847
12848 # A C compiler.
12849 LTCC=$lt_CC
12850
12851 # LTCC compiler flags.
12852 LTCFLAGS=$lt_CFLAGS
12853
12854 # Take the output of nm and produce a listing of raw symbols and C names.
12855 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12856
12857 # Transform the output of nm in a proper C declaration.
12858 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12859
12860 # Transform the output of nm in a C name address pair.
12861 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12862
12863 # Transform the output of nm in a C name address pair when lib prefix is needed.
12864 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12865
12866 # The name of the directory that contains temporary libtool files.
12867 objdir=$objdir
12868
12869 # Shell to use when invoking shell scripts.
12870 SHELL=$lt_SHELL
12871
12872 # An echo program that does not interpret backslashes.
12873 ECHO=$lt_ECHO
12874
12875 # Used to examine libraries when file_magic_cmd begins with "file".
12876 MAGIC_CMD=$MAGIC_CMD
12877
12878 # Must we lock files when doing compilation?
12879 need_locks=$lt_need_locks
12880
12881 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12882 DSYMUTIL=$lt_DSYMUTIL
12883
12884 # Tool to change global to local symbols on Mac OS X.
12885 NMEDIT=$lt_NMEDIT
12886
12887 # Tool to manipulate fat objects and archives on Mac OS X.
12888 LIPO=$lt_LIPO
12889
12890 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12891 OTOOL=$lt_OTOOL
12892
12893 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12894 OTOOL64=$lt_OTOOL64
12895
12896 # Old archive suffix (normally "a").
12897 libext=$libext
12898
12899 # Shared library suffix (normally ".so").
12900 shrext_cmds=$lt_shrext_cmds
12901
12902 # The commands to extract the exported symbol list from a shared archive.
12903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12904
12905 # Variables whose values should be saved in libtool wrapper scripts and
12906 # restored at link time.
12907 variables_saved_for_relink=$lt_variables_saved_for_relink
12908
12909 # Do we need the "lib" prefix for modules?
12910 need_lib_prefix=$need_lib_prefix
12911
12912 # Do we need a version for libraries?
12913 need_version=$need_version
12914
12915 # Library versioning type.
12916 version_type=$version_type
12917
12918 # Shared library runtime path variable.
12919 runpath_var=$runpath_var
12920
12921 # Shared library path variable.
12922 shlibpath_var=$shlibpath_var
12923
12924 # Is shlibpath searched before the hard-coded library search path?
12925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12926
12927 # Format of library name prefix.
12928 libname_spec=$lt_libname_spec
12929
12930 # List of archive names.  First name is the real one, the rest are links.
12931 # The last name is the one that the linker finds with -lNAME
12932 library_names_spec=$lt_library_names_spec
12933
12934 # The coded name of the library, if different from the real name.
12935 soname_spec=$lt_soname_spec
12936
12937 # Command to use after installation of a shared archive.
12938 postinstall_cmds=$lt_postinstall_cmds
12939
12940 # Command to use after uninstallation of a shared archive.
12941 postuninstall_cmds=$lt_postuninstall_cmds
12942
12943 # Commands used to finish a libtool library installation in a directory.
12944 finish_cmds=$lt_finish_cmds
12945
12946 # As "finish_cmds", except a single script fragment to be evaled but
12947 # not shown.
12948 finish_eval=$lt_finish_eval
12949
12950 # Whether we should hardcode library paths into libraries.
12951 hardcode_into_libs=$hardcode_into_libs
12952
12953 # Compile-time system search path for libraries.
12954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12955
12956 # Run-time system search path for libraries.
12957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12958
12959 # Whether dlopen is supported.
12960 dlopen_support=$enable_dlopen
12961
12962 # Whether dlopen of programs is supported.
12963 dlopen_self=$enable_dlopen_self
12964
12965 # Whether dlopen of statically linked programs is supported.
12966 dlopen_self_static=$enable_dlopen_self_static
12967
12968 # Commands to strip libraries.
12969 old_striplib=$lt_old_striplib
12970 striplib=$lt_striplib
12971
12972
12973 # The linker used to build libraries.
12974 LD=$lt_LD
12975
12976 # Commands used to build an old-style archive.
12977 old_archive_cmds=$lt_old_archive_cmds
12978
12979 # A language specific compiler.
12980 CC=$lt_compiler
12981
12982 # Is the compiler the GNU compiler?
12983 with_gcc=$GCC
12984
12985 # Compiler flag to turn off builtin functions.
12986 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12987
12988 # How to pass a linker flag through the compiler.
12989 wl=$lt_lt_prog_compiler_wl
12990
12991 # Additional compiler flags for building library objects.
12992 pic_flag=$lt_lt_prog_compiler_pic
12993
12994 # Compiler flag to prevent dynamic linking.
12995 link_static_flag=$lt_lt_prog_compiler_static
12996
12997 # Does compiler simultaneously support -c and -o options?
12998 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12999
13000 # Whether or not to add -lc for building shared libraries.
13001 build_libtool_need_lc=$archive_cmds_need_lc
13002
13003 # Whether or not to disallow shared libs when runtime libs are static.
13004 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13005
13006 # Compiler flag to allow reflexive dlopens.
13007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13008
13009 # Compiler flag to generate shared objects directly from archives.
13010 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13011
13012 # Whether the compiler copes with passing no objects directly.
13013 compiler_needs_object=$lt_compiler_needs_object
13014
13015 # Create an old-style archive from a shared archive.
13016 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13017
13018 # Create a temporary old-style archive to link instead of a shared archive.
13019 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13020
13021 # Commands used to build a shared archive.
13022 archive_cmds=$lt_archive_cmds
13023 archive_expsym_cmds=$lt_archive_expsym_cmds
13024
13025 # Commands used to build a loadable module if different from building
13026 # a shared archive.
13027 module_cmds=$lt_module_cmds
13028 module_expsym_cmds=$lt_module_expsym_cmds
13029
13030 # Whether we are building with GNU ld or not.
13031 with_gnu_ld=$lt_with_gnu_ld
13032
13033 # Flag that allows shared libraries with undefined symbols to be built.
13034 allow_undefined_flag=$lt_allow_undefined_flag
13035
13036 # Flag that enforces no undefined symbols.
13037 no_undefined_flag=$lt_no_undefined_flag
13038
13039 # Flag to hardcode \$libdir into a binary during linking.
13040 # This must work even if \$libdir does not exist
13041 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13042
13043 # If ld is used when linking, flag to hardcode \$libdir into a binary
13044 # during linking.  This must work even if \$libdir does not exist.
13045 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13046
13047 # Whether we need a single "-rpath" flag with a separated argument.
13048 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13049
13050 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13051 # DIR into the resulting binary.
13052 hardcode_direct=$hardcode_direct
13053
13054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13055 # DIR into the resulting binary and the resulting library dependency is
13056 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13057 # library is relocated.
13058 hardcode_direct_absolute=$hardcode_direct_absolute
13059
13060 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13061 # into the resulting binary.
13062 hardcode_minus_L=$hardcode_minus_L
13063
13064 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13065 # into the resulting binary.
13066 hardcode_shlibpath_var=$hardcode_shlibpath_var
13067
13068 # Set to "yes" if building a shared library automatically hardcodes DIR
13069 # into the library and all subsequent libraries and executables linked
13070 # against it.
13071 hardcode_automatic=$hardcode_automatic
13072
13073 # Set to yes if linker adds runtime paths of dependent libraries
13074 # to runtime path list.
13075 inherit_rpath=$inherit_rpath
13076
13077 # Whether libtool must link a program against all its dependency libraries.
13078 link_all_deplibs=$link_all_deplibs
13079
13080 # Fix the shell variable \$srcfile for the compiler.
13081 fix_srcfile_path=$lt_fix_srcfile_path
13082
13083 # Set to "yes" if exported symbols are required.
13084 always_export_symbols=$always_export_symbols
13085
13086 # The commands to list exported symbols.
13087 export_symbols_cmds=$lt_export_symbols_cmds
13088
13089 # Symbols that should not be listed in the preloaded symbols.
13090 exclude_expsyms=$lt_exclude_expsyms
13091
13092 # Symbols that must always be exported.
13093 include_expsyms=$lt_include_expsyms
13094
13095 # Commands necessary for linking programs (against libraries) with templates.
13096 prelink_cmds=$lt_prelink_cmds
13097
13098 # Specify filename containing input files.
13099 file_list_spec=$lt_file_list_spec
13100
13101 # How to hardcode a shared library path into an executable.
13102 hardcode_action=$hardcode_action
13103
13104 # ### END LIBTOOL CONFIG
13105
13106 _LT_EOF
13107
13108   case $host_os in
13109   aix3*)
13110     cat <<\_LT_EOF >> "$cfgfile"
13111 # AIX sometimes has problems with the GCC collect2 program.  For some
13112 # reason, if we set the COLLECT_NAMES environment variable, the problems
13113 # vanish in a puff of smoke.
13114 if test "X${COLLECT_NAMES+set}" != Xset; then
13115   COLLECT_NAMES=
13116   export COLLECT_NAMES
13117 fi
13118 _LT_EOF
13119     ;;
13120   esac
13121
13122
13123 ltmain="$ac_aux_dir/ltmain.sh"
13124
13125
13126   # We use sed instead of cat because bash on DJGPP gets confused if
13127   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13128   # text mode, it properly converts lines to CR/LF.  This bash problem
13129   # is reportedly fixed, but why not run on old versions too?
13130   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13131     || (rm -f "$cfgfile"; exit 1)
13132
13133   case $xsi_shell in
13134   yes)
13135     cat << \_LT_EOF >> "$cfgfile"
13136
13137 # func_dirname file append nondir_replacement
13138 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13139 # otherwise set result to NONDIR_REPLACEMENT.
13140 func_dirname ()
13141 {
13142   case ${1} in
13143     */*) func_dirname_result="${1%/*}${2}" ;;
13144     *  ) func_dirname_result="${3}" ;;
13145   esac
13146 }
13147
13148 # func_basename file
13149 func_basename ()
13150 {
13151   func_basename_result="${1##*/}"
13152 }
13153
13154 # func_dirname_and_basename file append nondir_replacement
13155 # perform func_basename and func_dirname in a single function
13156 # call:
13157 #   dirname:  Compute the dirname of FILE.  If nonempty,
13158 #             add APPEND to the result, otherwise set result
13159 #             to NONDIR_REPLACEMENT.
13160 #             value returned in "$func_dirname_result"
13161 #   basename: Compute filename of FILE.
13162 #             value retuned in "$func_basename_result"
13163 # Implementation must be kept synchronized with func_dirname
13164 # and func_basename. For efficiency, we do not delegate to
13165 # those functions but instead duplicate the functionality here.
13166 func_dirname_and_basename ()
13167 {
13168   case ${1} in
13169     */*) func_dirname_result="${1%/*}${2}" ;;
13170     *  ) func_dirname_result="${3}" ;;
13171   esac
13172   func_basename_result="${1##*/}"
13173 }
13174
13175 # func_stripname prefix suffix name
13176 # strip PREFIX and SUFFIX off of NAME.
13177 # PREFIX and SUFFIX must not contain globbing or regex special
13178 # characters, hashes, percent signs, but SUFFIX may contain a leading
13179 # dot (in which case that matches only a dot).
13180 func_stripname ()
13181 {
13182   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13183   # positional parameters, so assign one to ordinary parameter first.
13184   func_stripname_result=${3}
13185   func_stripname_result=${func_stripname_result#"${1}"}
13186   func_stripname_result=${func_stripname_result%"${2}"}
13187 }
13188
13189 # func_opt_split
13190 func_opt_split ()
13191 {
13192   func_opt_split_opt=${1%%=*}
13193   func_opt_split_arg=${1#*=}
13194 }
13195
13196 # func_lo2o object
13197 func_lo2o ()
13198 {
13199   case ${1} in
13200     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13201     *)    func_lo2o_result=${1} ;;
13202   esac
13203 }
13204
13205 # func_xform libobj-or-source
13206 func_xform ()
13207 {
13208   func_xform_result=${1%.*}.lo
13209 }
13210
13211 # func_arith arithmetic-term...
13212 func_arith ()
13213 {
13214   func_arith_result=$(( $* ))
13215 }
13216
13217 # func_len string
13218 # STRING may not start with a hyphen.
13219 func_len ()
13220 {
13221   func_len_result=${#1}
13222 }
13223
13224 _LT_EOF
13225     ;;
13226   *) # Bourne compatible functions.
13227     cat << \_LT_EOF >> "$cfgfile"
13228
13229 # func_dirname file append nondir_replacement
13230 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13231 # otherwise set result to NONDIR_REPLACEMENT.
13232 func_dirname ()
13233 {
13234   # Extract subdirectory from the argument.
13235   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13236   if test "X$func_dirname_result" = "X${1}"; then
13237     func_dirname_result="${3}"
13238   else
13239     func_dirname_result="$func_dirname_result${2}"
13240   fi
13241 }
13242
13243 # func_basename file
13244 func_basename ()
13245 {
13246   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13247 }
13248
13249
13250 # func_stripname prefix suffix name
13251 # strip PREFIX and SUFFIX off of NAME.
13252 # PREFIX and SUFFIX must not contain globbing or regex special
13253 # characters, hashes, percent signs, but SUFFIX may contain a leading
13254 # dot (in which case that matches only a dot).
13255 # func_strip_suffix prefix name
13256 func_stripname ()
13257 {
13258   case ${2} in
13259     .*) func_stripname_result=`$ECHO "X${3}" \
13260            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13261     *)  func_stripname_result=`$ECHO "X${3}" \
13262            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13263   esac
13264 }
13265
13266 # sed scripts:
13267 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13268 my_sed_long_arg='1s/^-[^=]*=//'
13269
13270 # func_opt_split
13271 func_opt_split ()
13272 {
13273   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13274   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13275 }
13276
13277 # func_lo2o object
13278 func_lo2o ()
13279 {
13280   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13281 }
13282
13283 # func_xform libobj-or-source
13284 func_xform ()
13285 {
13286   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13287 }
13288
13289 # func_arith arithmetic-term...
13290 func_arith ()
13291 {
13292   func_arith_result=`expr "$@"`
13293 }
13294
13295 # func_len string
13296 # STRING may not start with a hyphen.
13297 func_len ()
13298 {
13299   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13300 }
13301
13302 _LT_EOF
13303 esac
13304
13305 case $lt_shell_append in
13306   yes)
13307     cat << \_LT_EOF >> "$cfgfile"
13308
13309 # func_append var value
13310 # Append VALUE to the end of shell variable VAR.
13311 func_append ()
13312 {
13313   eval "$1+=\$2"
13314 }
13315 _LT_EOF
13316     ;;
13317   *)
13318     cat << \_LT_EOF >> "$cfgfile"
13319
13320 # func_append var value
13321 # Append VALUE to the end of shell variable VAR.
13322 func_append ()
13323 {
13324   eval "$1=\$$1\$2"
13325 }
13326
13327 _LT_EOF
13328     ;;
13329   esac
13330
13331
13332   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13333     || (rm -f "$cfgfile"; exit 1)
13334
13335   mv -f "$cfgfile" "$ofile" ||
13336     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13337   chmod +x "$ofile"
13338
13339  ;;
13340
13341   esac
13342 done # for ac_tag
13343
13344
13345 as_fn_exit 0
13346 _ACEOF
13347 ac_clean_files=$ac_clean_files_save
13348
13349 test $ac_write_fail = 0 ||
13350   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13351
13352
13353 # configure is writing to config.log, and then calls config.status.
13354 # config.status does its own redirection, appending to config.log.
13355 # Unfortunately, on DOS this fails, as config.log is still kept open
13356 # by configure, so config.status won't be able to write to it; its
13357 # output is simply discarded.  So we exec the FD to /dev/null,
13358 # effectively closing config.log, so it can be properly (re)opened and
13359 # appended to by config.status.  When coming back to configure, we
13360 # need to make the FD available again.
13361 if test "$no_create" != yes; then
13362   ac_cs_success=:
13363   ac_config_status_args=
13364   test "$silent" = yes &&
13365     ac_config_status_args="$ac_config_status_args --quiet"
13366   exec 5>/dev/null
13367   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13368   exec 5>>config.log
13369   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13370   # would make configure fail if this is the last instruction.
13371   $ac_cs_success || as_fn_exit 1
13372 fi
13373 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13375 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13376 fi
13377