clean up spec file for packaging
[profile/ivi/xorg-x11-drv-intel.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for xf86-video-intel 2.15.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239   fi
240   exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258   { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267   return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275   set +e
276   as_fn_set_status $1
277   exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286   case $as_dir in #(
287   -*) as_dir=./$as_dir;;
288   esac
289   test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292       case $as_dir in #(
293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294       *) as_qdir=$as_dir;;
295       esac
296       as_dirs="'$as_qdir' $as_dirs"
297       as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299          X"$as_dir" : 'X\(//\)[^/]' \| \
300          X"$as_dir" : 'X\(//\)$' \| \
301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)[^/].*/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\).*/{
316             s//\1/
317             q
318           }
319           s/.*/./; q'`
320       test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334   eval 'as_fn_append ()
335   {
336     eval $1+=\$2
337   }'
338 else
339   as_fn_append ()
340   {
341     eval $1=\$$1\$2
342   }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351   eval 'as_fn_arith ()
352   {
353     as_val=$(( $* ))
354   }'
355 else
356   as_fn_arith ()
357   {
358     as_val=`expr "$@" || test $? -eq 1`
359   }
360 fi # as_fn_arith
361
362
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
368 as_fn_error ()
369 {
370   as_status=$1; test $as_status -eq 0 && as_status=1
371   if test "$4"; then
372     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374   fi
375   $as_echo "$as_me: error: $2" >&2
376   as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
381   as_expr=expr
382 else
383   as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387   as_basename=basename
388 else
389   as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393   as_dirname=dirname
394 else
395   as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400          X"$0" : 'X\(//\)$' \| \
401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\/\)$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\).*/{
412             s//\1/
413             q
414           }
415           s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425   as_lineno_1=$LINENO as_lineno_1a=$LINENO
426   as_lineno_2=$LINENO as_lineno_2a=$LINENO
427   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430   sed -n '
431     p
432     /[$]LINENO/=
433   ' <$as_myself |
434     sed '
435       s/[$]LINENO.*/&-/
436       t lineno
437       b
438       :lineno
439       N
440       :loop
441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442       t loop
443       s/-\n.*//
444     ' >$as_me.lineno &&
445   chmod +x "$as_me.lineno" ||
446     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448   # Don't try to exec as it changes $[0], causing all sort of problems
449   # (the dirname of $[0] is not the place where we might find the
450   # original and so on.  Autoconf is especially sensitive to this).
451   . "./$as_me.lineno"
452   # Exit status is that of the last command.
453   exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459   case `echo 'xy\c'` in
460   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461   xy)  ECHO_C='\c';;
462   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463        ECHO_T=' ';;
464   esac;;
465 *)
466   ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471   rm -f conf$$.dir/conf$$.file
472 else
473   rm -f conf$$.dir
474   mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477   if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484       as_ln_s='cp -p'
485   elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487   else
488     as_ln_s='cp -p'
489   fi
490 else
491   as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497   as_mkdir_p='mkdir -p "$as_dir"'
498 else
499   test -d ./-p && rmdir ./-p
500   as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504   as_test_x='test -x'
505 else
506   if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508   else
509     as_ls_L_option=
510   fi
511   as_test_x='
512     eval sh -c '\''
513       if test -d "$1"; then
514         test -d "$1/.";
515       else
516         case $1 in #(
517         -*)set "./$1";;
518         esac;
519         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520         ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522   '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539   # Remove one level of quotation (which was required for Make).
540   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541   ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546   # Discard the --no-reexec flag, and continue.
547   shift
548 elif test "X$1" = X--fallback-echo; then
549   # Avoid inline document here, it may be left over
550   :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552   # Yippee, $ECHO works!
553   :
554 else
555   # Restart under the correct shell.
556   exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560   # used as fallback echo
561   shift
562   cat <<_LT_EOF
563 $*
564 _LT_EOF
565   exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573   if test "X${echo_test_string+set}" != Xset; then
574     # find a string as large as possible, as long as the shell can cope with it
575     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579       then
580         break
581       fi
582     done
583   fi
584
585   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587      test "X$echo_testing_string" = "X$echo_test_string"; then
588     :
589   else
590     # The Solaris, AIX, and Digital Unix default echo programs unquote
591     # backslashes.  This makes it impossible to quote backslashes using
592     #   echo "$something" | sed 's/\\/\\\\/g'
593     #
594     # So, first we look for a working echo in the user's PATH.
595
596     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597     for dir in $PATH /usr/ucb; do
598       IFS="$lt_save_ifs"
599       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602          test "X$echo_testing_string" = "X$echo_test_string"; then
603         ECHO="$dir/echo"
604         break
605       fi
606     done
607     IFS="$lt_save_ifs"
608
609     if test "X$ECHO" = Xecho; then
610       # We didn't find a better echo, so look for alternatives.
611       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613          test "X$echo_testing_string" = "X$echo_test_string"; then
614         # This shell has a builtin print -r that does the trick.
615         ECHO='print -r'
616       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617            test "X$CONFIG_SHELL" != X/bin/ksh; then
618         # If we have ksh, try running configure again with it.
619         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620         export ORIGINAL_CONFIG_SHELL
621         CONFIG_SHELL=/bin/ksh
622         export CONFIG_SHELL
623         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624       else
625         # Try using printf.
626         ECHO='printf %s\n'
627         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629            test "X$echo_testing_string" = "X$echo_test_string"; then
630           # Cool, printf works
631           :
632         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633              test "X$echo_testing_string" = 'X\t' &&
634              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635              test "X$echo_testing_string" = "X$echo_test_string"; then
636           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637           export CONFIG_SHELL
638           SHELL="$CONFIG_SHELL"
639           export SHELL
640           ECHO="$CONFIG_SHELL $0 --fallback-echo"
641         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642              test "X$echo_testing_string" = 'X\t' &&
643              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644              test "X$echo_testing_string" = "X$echo_test_string"; then
645           ECHO="$CONFIG_SHELL $0 --fallback-echo"
646         else
647           # maybe with a smaller string...
648           prev=:
649
650           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652             then
653               break
654             fi
655             prev="$cmd"
656           done
657
658           if test "$prev" != 'sed 50q "$0"'; then
659             echo_test_string=`eval $prev`
660             export echo_test_string
661             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662           else
663             # Oops.  We lost completely, so just stick with echo.
664             ECHO=echo
665           fi
666         fi
667       fi
668     fi
669   fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
684
685 # Name of the host.
686 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690 #
691 # Initializations.
692 #
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
701
702 # Identity of this package.
703 PACKAGE_NAME='xf86-video-intel'
704 PACKAGE_TARNAME='xf86-video-intel'
705 PACKAGE_VERSION='2.15.0'
706 PACKAGE_STRING='xf86-video-intel 2.15.0'
707 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708 PACKAGE_URL=''
709
710 ac_unique_file="Makefile.am"
711 # Factoring default headers for most tests.
712 ac_includes_default="\
713 #include <stdio.h>
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
716 #endif
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
719 #endif
720 #ifdef STDC_HEADERS
721 # include <stdlib.h>
722 # include <stddef.h>
723 #else
724 # ifdef HAVE_STDLIB_H
725 #  include <stdlib.h>
726 # endif
727 #endif
728 #ifdef HAVE_STRING_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #  include <memory.h>
731 # endif
732 # include <string.h>
733 #endif
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
736 #endif
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
739 #endif
740 #ifdef HAVE_STDINT_H
741 # include <stdint.h>
742 #endif
743 #ifdef HAVE_UNISTD_H
744 # include <unistd.h>
745 #endif"
746
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 moduledir
752 DRIVER_NAME
753 KMS_ONLY_FALSE
754 KMS_ONLY_TRUE
755 XVMC_FALSE
756 XVMC_TRUE
757 XVMCLIB_LIBS
758 XVMCLIB_CFLAGS
759 DRI_LIBS
760 DRI_CFLAGS
761 DRI_FALSE
762 DRI_TRUE
763 PCIACCESS_LIBS
764 PCIACCESS_CFLAGS
765 DRM_LIBS
766 DRM_CFLAGS
767 XORG_LIBS
768 XORG_CFLAGS
769 UDEV_LIBS
770 UDEV_CFLAGS
771 HAVE_GEN4ASM_FALSE
772 HAVE_GEN4ASM_TRUE
773 GEN4ASM_LIBS
774 GEN4ASM_CFLAGS
775 OTOOL64
776 OTOOL
777 LIPO
778 NMEDIT
779 DSYMUTIL
780 lt_ECHO
781 RANLIB
782 AR
783 OBJDUMP
784 LN_S
785 NM
786 ac_ct_DUMPBIN
787 DUMPBIN
788 LD
789 FGREP
790 LIBTOOL
791 MAN_SUBSTS
792 XORG_MAN_PAGE
793 ADMIN_MAN_DIR
794 DRIVER_MAN_DIR
795 MISC_MAN_DIR
796 FILE_MAN_DIR
797 LIB_MAN_DIR
798 APP_MAN_DIR
799 ADMIN_MAN_SUFFIX
800 DRIVER_MAN_SUFFIX
801 MISC_MAN_SUFFIX
802 FILE_MAN_SUFFIX
803 LIB_MAN_SUFFIX
804 APP_MAN_SUFFIX
805 SED
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 INSTALL_CMD
815 PKG_CONFIG_LIBDIR
816 PKG_CONFIG_PATH
817 PKG_CONFIG
818 CHANGELOG_CMD
819 CWARNFLAGS
820 EGREP
821 GREP
822 CPP
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 AM_BACKSLASH
840 AM_DEFAULT_VERBOSITY
841 MAINT
842 MAINTAINER_MODE_FALSE
843 MAINTAINER_MODE_TRUE
844 am__untar
845 am__tar
846 AMTAR
847 am__leading_dot
848 SET_MAKE
849 AWK
850 mkdir_p
851 MKDIR_P
852 INSTALL_STRIP_PROGRAM
853 STRIP
854 install_sh
855 MAKEINFO
856 AUTOHEADER
857 AUTOMAKE
858 AUTOCONF
859 ACLOCAL
860 VERSION
861 PACKAGE
862 CYGPATH_W
863 am__isrc
864 INSTALL_DATA
865 INSTALL_SCRIPT
866 INSTALL_PROGRAM
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_URL
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files=''
906 ac_user_opts='
907 enable_option_checking
908 enable_maintainer_mode
909 enable_silent_rules
910 enable_dependency_tracking
911 enable_strict_compilation
912 enable_static
913 enable_shared
914 with_pic
915 enable_fast_install
916 with_gnu_ld
917 enable_libtool_lock
918 with_xorg_module_dir
919 enable_dri
920 enable_xvmc
921 enable_kms_only
922 enable_debug
923 '
924       ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CPP
933 PKG_CONFIG
934 PKG_CONFIG_PATH
935 PKG_CONFIG_LIBDIR
936 GEN4ASM_CFLAGS
937 GEN4ASM_LIBS
938 UDEV_CFLAGS
939 UDEV_LIBS
940 XORG_CFLAGS
941 XORG_LIBS
942 DRM_CFLAGS
943 DRM_LIBS
944 PCIACCESS_CFLAGS
945 PCIACCESS_LIBS
946 DRI_CFLAGS
947 DRI_LIBS
948 XVMCLIB_CFLAGS
949 XVMCLIB_LIBS'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
973
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
999
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1003 do
1004   # If the previous option needs an argument, assign it.
1005   if test -n "$ac_prev"; then
1006     eval $ac_prev=\$ac_option
1007     ac_prev=
1008     continue
1009   fi
1010
1011   case $ac_option in
1012   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013   *=)   ac_optarg= ;;
1014   *)    ac_optarg=yes ;;
1015   esac
1016
1017   # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019   case $ac_dashdash$ac_option in
1020   --)
1021     ac_dashdash=yes ;;
1022
1023   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024     ac_prev=bindir ;;
1025   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026     bindir=$ac_optarg ;;
1027
1028   -build | --build | --buil | --bui | --bu)
1029     ac_prev=build_alias ;;
1030   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031     build_alias=$ac_optarg ;;
1032
1033   -cache-file | --cache-file | --cache-fil | --cache-fi \
1034   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035     ac_prev=cache_file ;;
1036   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038     cache_file=$ac_optarg ;;
1039
1040   --config-cache | -C)
1041     cache_file=config.cache ;;
1042
1043   -datadir | --datadir | --datadi | --datad)
1044     ac_prev=datadir ;;
1045   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046     datadir=$ac_optarg ;;
1047
1048   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049   | --dataroo | --dataro | --datar)
1050     ac_prev=datarootdir ;;
1051   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053     datarootdir=$ac_optarg ;;
1054
1055   -disable-* | --disable-*)
1056     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059       as_fn_error $? "invalid feature name: $ac_useropt"
1060     ac_useropt_orig=$ac_useropt
1061     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063       *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067          ac_unrecognized_sep=', ';;
1068     esac
1069     eval enable_$ac_useropt=no ;;
1070
1071   -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075
1076   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080
1081   -enable-* | --enable-*)
1082     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085       as_fn_error $? "invalid feature name: $ac_useropt"
1086     ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089       *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093          ac_unrecognized_sep=', ';;
1094     esac
1095     eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099   | --exec | --exe | --ex)
1100     ac_prev=exec_prefix ;;
1101   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103   | --exec=* | --exe=* | --ex=*)
1104     exec_prefix=$ac_optarg ;;
1105
1106   -gas | --gas | --ga | --g)
1107     # Obsolete; use --with-gas.
1108     with_gas=yes ;;
1109
1110   -help | --help | --hel | --he | -h)
1111     ac_init_help=long ;;
1112   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113     ac_init_help=recursive ;;
1114   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115     ac_init_help=short ;;
1116
1117   -host | --host | --hos | --ho)
1118     ac_prev=host_alias ;;
1119   -host=* | --host=* | --hos=* | --ho=*)
1120     host_alias=$ac_optarg ;;
1121
1122   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123     ac_prev=htmldir ;;
1124   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125   | --ht=*)
1126     htmldir=$ac_optarg ;;
1127
1128   -includedir | --includedir | --includedi | --included | --include \
1129   | --includ | --inclu | --incl | --inc)
1130     ac_prev=includedir ;;
1131   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132   | --includ=* | --inclu=* | --incl=* | --inc=*)
1133     includedir=$ac_optarg ;;
1134
1135   -infodir | --infodir | --infodi | --infod | --info | --inf)
1136     ac_prev=infodir ;;
1137   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138     infodir=$ac_optarg ;;
1139
1140   -libdir | --libdir | --libdi | --libd)
1141     ac_prev=libdir ;;
1142   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143     libdir=$ac_optarg ;;
1144
1145   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146   | --libexe | --libex | --libe)
1147     ac_prev=libexecdir ;;
1148   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149   | --libexe=* | --libex=* | --libe=*)
1150     libexecdir=$ac_optarg ;;
1151
1152   -localedir | --localedir | --localedi | --localed | --locale)
1153     ac_prev=localedir ;;
1154   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155     localedir=$ac_optarg ;;
1156
1157   -localstatedir | --localstatedir | --localstatedi | --localstated \
1158   | --localstate | --localstat | --localsta | --localst | --locals)
1159     ac_prev=localstatedir ;;
1160   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162     localstatedir=$ac_optarg ;;
1163
1164   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165     ac_prev=mandir ;;
1166   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167     mandir=$ac_optarg ;;
1168
1169   -nfp | --nfp | --nf)
1170     # Obsolete; use --without-fp.
1171     with_fp=no ;;
1172
1173   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174   | --no-cr | --no-c | -n)
1175     no_create=yes ;;
1176
1177   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179     no_recursion=yes ;;
1180
1181   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183   | --oldin | --oldi | --old | --ol | --o)
1184     ac_prev=oldincludedir ;;
1185   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188     oldincludedir=$ac_optarg ;;
1189
1190   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191     ac_prev=prefix ;;
1192   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193     prefix=$ac_optarg ;;
1194
1195   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196   | --program-pre | --program-pr | --program-p)
1197     ac_prev=program_prefix ;;
1198   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200     program_prefix=$ac_optarg ;;
1201
1202   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203   | --program-suf | --program-su | --program-s)
1204     ac_prev=program_suffix ;;
1205   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207     program_suffix=$ac_optarg ;;
1208
1209   -program-transform-name | --program-transform-name \
1210   | --program-transform-nam | --program-transform-na \
1211   | --program-transform-n | --program-transform- \
1212   | --program-transform | --program-transfor \
1213   | --program-transfo | --program-transf \
1214   | --program-trans | --program-tran \
1215   | --progr-tra | --program-tr | --program-t)
1216     ac_prev=program_transform_name ;;
1217   -program-transform-name=* | --program-transform-name=* \
1218   | --program-transform-nam=* | --program-transform-na=* \
1219   | --program-transform-n=* | --program-transform-=* \
1220   | --program-transform=* | --program-transfor=* \
1221   | --program-transfo=* | --program-transf=* \
1222   | --program-trans=* | --program-tran=* \
1223   | --progr-tra=* | --program-tr=* | --program-t=*)
1224     program_transform_name=$ac_optarg ;;
1225
1226   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227     ac_prev=pdfdir ;;
1228   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229     pdfdir=$ac_optarg ;;
1230
1231   -psdir | --psdir | --psdi | --psd | --ps)
1232     ac_prev=psdir ;;
1233   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234     psdir=$ac_optarg ;;
1235
1236   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237   | -silent | --silent | --silen | --sile | --sil)
1238     silent=yes ;;
1239
1240   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241     ac_prev=sbindir ;;
1242   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243   | --sbi=* | --sb=*)
1244     sbindir=$ac_optarg ;;
1245
1246   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248   | --sharedst | --shareds | --shared | --share | --shar \
1249   | --sha | --sh)
1250     ac_prev=sharedstatedir ;;
1251   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254   | --sha=* | --sh=*)
1255     sharedstatedir=$ac_optarg ;;
1256
1257   -site | --site | --sit)
1258     ac_prev=site ;;
1259   -site=* | --site=* | --sit=*)
1260     site=$ac_optarg ;;
1261
1262   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263     ac_prev=srcdir ;;
1264   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265     srcdir=$ac_optarg ;;
1266
1267   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268   | --syscon | --sysco | --sysc | --sys | --sy)
1269     ac_prev=sysconfdir ;;
1270   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272     sysconfdir=$ac_optarg ;;
1273
1274   -target | --target | --targe | --targ | --tar | --ta | --t)
1275     ac_prev=target_alias ;;
1276   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277     target_alias=$ac_optarg ;;
1278
1279   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280     verbose=yes ;;
1281
1282   -version | --version | --versio | --versi | --vers | -V)
1283     ac_init_version=: ;;
1284
1285   -with-* | --with-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error $? "invalid package name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=\$ac_optarg ;;
1300
1301   -without-* | --without-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid package name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval with_$ac_useropt=no ;;
1316
1317   --x)
1318     # Obsolete; use --with-x.
1319     with_x=yes ;;
1320
1321   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322   | --x-incl | --x-inc | --x-in | --x-i)
1323     ac_prev=x_includes ;;
1324   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326     x_includes=$ac_optarg ;;
1327
1328   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330     ac_prev=x_libraries ;;
1331   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333     x_libraries=$ac_optarg ;;
1334
1335   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1337     ;;
1338
1339   *=*)
1340     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341     # Reject names that are not valid shell variable names.
1342     case $ac_envvar in #(
1343       '' | [0-9]* | *[!_$as_cr_alnum]* )
1344       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345     esac
1346     eval $ac_envvar=\$ac_optarg
1347     export $ac_envvar ;;
1348
1349   *)
1350     # FIXME: should be removed in autoconf 3.0.
1351     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355     ;;
1356
1357   esac
1358 done
1359
1360 if test -n "$ac_prev"; then
1361   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362   as_fn_error $? "missing argument to $ac_option"
1363 fi
1364
1365 if test -n "$ac_unrecognized_opts"; then
1366   case $enable_option_checking in
1367     no) ;;
1368     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370   esac
1371 fi
1372
1373 # Check all directory arguments for consistency.
1374 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375                 datadir sysconfdir sharedstatedir localstatedir includedir \
1376                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377                 libdir localedir mandir
1378 do
1379   eval ac_val=\$$ac_var
1380   # Remove trailing slashes.
1381   case $ac_val in
1382     */ )
1383       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384       eval $ac_var=\$ac_val;;
1385   esac
1386   # Be sure to have absolute directory names.
1387   case $ac_val in
1388     [\\/$]* | ?:[\\/]* )  continue;;
1389     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390   esac
1391   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1393
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1400
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403   if test "x$build_alias" = x; then
1404     cross_compiling=maybe
1405     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1406     If a cross compiler is detected then cross compile mode will be used" >&2
1407   elif test "x$build_alias" != "x$host_alias"; then
1408     cross_compiling=yes
1409   fi
1410 fi
1411
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415 test "$silent" = yes && exec 6>/dev/null
1416
1417
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421   as_fn_error $? "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423   as_fn_error $? "pwd does not report name of working directory"
1424
1425
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428   ac_srcdir_defaulted=yes
1429   # Try the directory containing this script, then the parent directory.
1430   ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432          X"$as_myself" : 'X\(//\)[^/]' \| \
1433          X"$as_myself" : 'X\(//\)$' \| \
1434          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\/\)[^/].*/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\/\)$/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\).*/{
1449             s//\1/
1450             q
1451           }
1452           s/.*/./; q'`
1453   srcdir=$ac_confdir
1454   if test ! -r "$srcdir/$ac_unique_file"; then
1455     srcdir=..
1456   fi
1457 else
1458   ac_srcdir_defaulted=no
1459 fi
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1463 fi
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1467         pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470   srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480   eval ac_env_${ac_var}_value=\$${ac_var}
1481   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489   # Omit some internal or obsolete options to make the list less imposing.
1490   # This message is too long to be a string in the A/UX 3.1 sh.
1491   cat <<_ACEOF
1492 \`configure' configures xf86-video-intel 2.15.0 to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE.  See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502   -h, --help              display this help and exit
1503       --help=short        display options specific to this package
1504       --help=recursive    display the short help of all the included packages
1505   -V, --version           display version information and exit
1506   -q, --quiet, --silent   do not print \`checking ...' messages
1507       --cache-file=FILE   cache test results in FILE [disabled]
1508   -C, --config-cache      alias for \`--cache-file=config.cache'
1509   -n, --no-create         do not create output files
1510       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513   --prefix=PREFIX         install architecture-independent files in PREFIX
1514                           [$ac_default_prefix]
1515   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1516                           [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526   --bindir=DIR            user executables [EPREFIX/bin]
1527   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1528   --libexecdir=DIR        program executables [EPREFIX/libexec]
1529   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1530   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1531   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1532   --libdir=DIR            object code libraries [EPREFIX/lib]
1533   --includedir=DIR        C header files [PREFIX/include]
1534   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1535   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1536   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1537   --infodir=DIR           info documentation [DATAROOTDIR/info]
1538   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1539   --mandir=DIR            man documentation [DATAROOTDIR/man]
1540   --docdir=DIR            documentation root
1541                           [DATAROOTDIR/doc/xf86-video-intel]
1542   --htmldir=DIR           html documentation [DOCDIR]
1543   --dvidir=DIR            dvi documentation [DOCDIR]
1544   --pdfdir=DIR            pdf documentation [DOCDIR]
1545   --psdir=DIR             ps documentation [DOCDIR]
1546 _ACEOF
1547
1548   cat <<\_ACEOF
1549
1550 Program names:
1551   --program-prefix=PREFIX            prepend PREFIX to installed program names
1552   --program-suffix=SUFFIX            append SUFFIX to installed program names
1553   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1554
1555 System types:
1556   --build=BUILD     configure for building on BUILD [guessed]
1557   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1558 _ACEOF
1559 fi
1560
1561 if test -n "$ac_init_help"; then
1562   case $ac_init_help in
1563      short | recursive ) echo "Configuration of xf86-video-intel 2.15.0:";;
1564    esac
1565   cat <<\_ACEOF
1566
1567 Optional Features:
1568   --disable-option-checking  ignore unrecognized --enable/--with options
1569   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1570   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1571   --disable-maintainer-mode  disable make rules and dependencies not useful
1572                           (and sometimes confusing) to the casual installer
1573   --enable-silent-rules          less verbose build output (undo: `make V=1')
1574   --disable-silent-rules         verbose build output (undo: `make V=0')
1575   --disable-dependency-tracking  speeds up one-time build
1576   --enable-dependency-tracking   do not reject slow dependency extractors
1577   --enable-strict-compilation
1578                           Enable all warnings from compiler and make them
1579                           errors (default: disabled)
1580   --enable-static[=PKGS]  build static libraries [default=no]
1581   --enable-shared[=PKGS]  build shared libraries [default=yes]
1582   --enable-fast-install[=PKGS]
1583                           optimize for fast installation [default=yes]
1584   --disable-libtool-lock  avoid locking (might break parallel builds)
1585   --disable-dri           Disable DRI support [[default=auto]]
1586   --disable-xvmc          Disable XvMC support [[default=yes]]
1587   --enable-kms-only       Assume KMS support [[default=no]]
1588   --enable-debug          Enables internal debugging [[default=yes]]
1589
1590 Optional Packages:
1591   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1592   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1593   --with-pic              try to use only PIC/non-PIC objects [default=use
1594                           both]
1595   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1596   --with-xorg-module-dir=DIR
1597                           Default xorg module directory
1598                           [[default=$libdir/xorg/modules]]
1599
1600 Some influential environment variables:
1601   CC          C compiler command
1602   CFLAGS      C compiler flags
1603   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1604               nonstandard directory <lib dir>
1605   LIBS        libraries to pass to the linker, e.g. -l<library>
1606   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1607               you have headers in a nonstandard directory <include dir>
1608   CPP         C preprocessor
1609   PKG_CONFIG  path to pkg-config utility
1610   PKG_CONFIG_PATH
1611               directories to add to pkg-config's search path
1612   PKG_CONFIG_LIBDIR
1613               path overriding pkg-config's built-in search path
1614   GEN4ASM_CFLAGS
1615               C compiler flags for GEN4ASM, overriding pkg-config
1616   GEN4ASM_LIBS
1617               linker flags for GEN4ASM, overriding pkg-config
1618   UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1619   UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1620   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1621   XORG_LIBS   linker flags for XORG, overriding pkg-config
1622   DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
1623   DRM_LIBS    linker flags for DRM, overriding pkg-config
1624   PCIACCESS_CFLAGS
1625               C compiler flags for PCIACCESS, overriding pkg-config
1626   PCIACCESS_LIBS
1627               linker flags for PCIACCESS, overriding pkg-config
1628   DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1629   DRI_LIBS    linker flags for DRI, overriding pkg-config
1630   XVMCLIB_CFLAGS
1631               C compiler flags for XVMCLIB, overriding pkg-config
1632   XVMCLIB_LIBS
1633               linker flags for XVMCLIB, overriding pkg-config
1634
1635 Use these variables to override the choices made by `configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1637
1638 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1639 _ACEOF
1640 ac_status=$?
1641 fi
1642
1643 if test "$ac_init_help" = "recursive"; then
1644   # If there are subdirs, report their specific --help.
1645   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646     test -d "$ac_dir" ||
1647       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648       continue
1649     ac_builddir=.
1650
1651 case "$ac_dir" in
1652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *)
1654   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1655   # A ".." for each directory in $ac_dir_suffix.
1656   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657   case $ac_top_builddir_sub in
1658   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660   esac ;;
1661 esac
1662 ac_abs_top_builddir=$ac_pwd
1663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664 # for backward compatibility:
1665 ac_top_builddir=$ac_top_build_prefix
1666
1667 case $srcdir in
1668   .)  # We are building in place.
1669     ac_srcdir=.
1670     ac_top_srcdir=$ac_top_builddir_sub
1671     ac_abs_top_srcdir=$ac_pwd ;;
1672   [\\/]* | ?:[\\/]* )  # Absolute name.
1673     ac_srcdir=$srcdir$ac_dir_suffix;
1674     ac_top_srcdir=$srcdir
1675     ac_abs_top_srcdir=$srcdir ;;
1676   *) # Relative name.
1677     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678     ac_top_srcdir=$ac_top_build_prefix$srcdir
1679     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 esac
1681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1682
1683     cd "$ac_dir" || { ac_status=$?; continue; }
1684     # Check for guested configure.
1685     if test -f "$ac_srcdir/configure.gnu"; then
1686       echo &&
1687       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1688     elif test -f "$ac_srcdir/configure"; then
1689       echo &&
1690       $SHELL "$ac_srcdir/configure" --help=recursive
1691     else
1692       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693     fi || ac_status=$?
1694     cd "$ac_pwd" || { ac_status=$?; break; }
1695   done
1696 fi
1697
1698 test -n "$ac_init_help" && exit $ac_status
1699 if $ac_init_version; then
1700   cat <<\_ACEOF
1701 xf86-video-intel configure 2.15.0
1702 generated by GNU Autoconf 2.67
1703
1704 Copyright (C) 2010 Free Software Foundation, Inc.
1705 This configure script is free software; the Free Software Foundation
1706 gives unlimited permission to copy, distribute and modify it.
1707 _ACEOF
1708   exit
1709 fi
1710
1711 ## ------------------------ ##
1712 ## Autoconf initialization. ##
1713 ## ------------------------ ##
1714
1715 # ac_fn_c_try_compile LINENO
1716 # --------------------------
1717 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_compile ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   rm -f conftest.$ac_objext
1722   if { { ac_try="$ac_compile"
1723 case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_compile") 2>conftest.err
1730   ac_status=$?
1731   if test -s conftest.err; then
1732     grep -v '^ *+' conftest.err >conftest.er1
1733     cat conftest.er1 >&5
1734     mv -f conftest.er1 conftest.err
1735   fi
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; } && {
1738          test -z "$ac_c_werror_flag" ||
1739          test ! -s conftest.err
1740        } && test -s conftest.$ac_objext; then :
1741   ac_retval=0
1742 else
1743   $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746         ac_retval=1
1747 fi
1748   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749   as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_compile
1752
1753 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1754 # ---------------------------------------------
1755 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1756 # accordingly.
1757 ac_fn_c_check_decl ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   as_decl_name=`echo $2|sed 's/ *(.*//'`
1761   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1763 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1764 if eval "test \"\${$3+set}\"" = set; then :
1765   $as_echo_n "(cached) " >&6
1766 else
1767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 $4
1770 int
1771 main ()
1772 {
1773 #ifndef $as_decl_name
1774 #ifdef __cplusplus
1775   (void) $as_decl_use;
1776 #else
1777   (void) $as_decl_name;
1778 #endif
1779 #endif
1780
1781   ;
1782   return 0;
1783 }
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786   eval "$3=yes"
1787 else
1788   eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796
1797 } # ac_fn_c_check_decl
1798
1799 # ac_fn_c_try_cpp LINENO
1800 # ----------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_cpp ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } > conftest.i && {
1821          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822          test ! -s conftest.err
1823        }; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829     ac_retval=1
1830 fi
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832   as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_cpp
1835
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1839 # that executables *can* be run.
1840 ac_fn_c_try_run ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846   *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850   (eval "$ac_link") 2>&5
1851   ac_status=$?
1852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854   { { case "(($ac_try" in
1855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856   *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860   (eval "$ac_try") 2>&5
1861   ac_status=$?
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; }; }; then :
1864   ac_retval=0
1865 else
1866   $as_echo "$as_me: program exited with status $ac_status" >&5
1867        $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870        ac_retval=$ac_status
1871 fi
1872   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874   as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_run
1877
1878 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1879 # -------------------------------------------------------
1880 # Tests whether HEADER exists and can be compiled using the include files in
1881 # INCLUDES, setting the cache variable VAR accordingly.
1882 ac_fn_c_check_header_compile ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval "test \"\${$3+set}\"" = set; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 $4
1893 #include <$2>
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896   eval "$3=yes"
1897 else
1898   eval "$3=no"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 fi
1902 eval ac_res=\$$3
1903                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906
1907 } # ac_fn_c_check_header_compile
1908
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   rm -f conftest.$ac_objext conftest$ac_exeext
1916   if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923   (eval "$ac_link") 2>conftest.err
1924   ac_status=$?
1925   if test -s conftest.err; then
1926     grep -v '^ *+' conftest.err >conftest.er1
1927     cat conftest.er1 >&5
1928     mv -f conftest.er1 conftest.err
1929   fi
1930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; } && {
1932          test -z "$ac_c_werror_flag" ||
1933          test ! -s conftest.err
1934        } && test -s conftest$ac_exeext && {
1935          test "$cross_compiling" = yes ||
1936          $as_test_x conftest$ac_exeext
1937        }; then :
1938   ac_retval=0
1939 else
1940   $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943         ac_retval=1
1944 fi
1945   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947   # interfere with the next link command; also delete a directory that is
1948   # left behind by Apple's compiler.  We do this before executing the actions.
1949   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_c_try_link
1954
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if eval "test \"\${$3+set}\"" = set; then :
1964   $as_echo_n "(cached) " >&6
1965 else
1966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h.  */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1970 #define $2 innocuous_$2
1971
1972 /* System header to define __stub macros and hopefully few prototypes,
1973     which can conflict with char $2 (); below.
1974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975     <limits.h> exists even on freestanding compilers.  */
1976
1977 #ifdef __STDC__
1978 # include <limits.h>
1979 #else
1980 # include <assert.h>
1981 #endif
1982
1983 #undef $2
1984
1985 /* Override any GCC internal prototype to avoid an error.
1986    Use char because int might match the return type of a GCC
1987    builtin and then its argument prototype would still apply.  */
1988 #ifdef __cplusplus
1989 extern "C"
1990 #endif
1991 char $2 ();
1992 /* The GNU C library defines this for functions which it implements
1993     to always fail with ENOSYS.  Some functions are actually named
1994     something starting with __ and the normal name is an alias.  */
1995 #if defined __stub_$2 || defined __stub___$2
1996 choke me
1997 #endif
1998
1999 int
2000 main ()
2001 {
2002 return $2 ();
2003   ;
2004   return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_link "$LINENO"; then :
2008   eval "$3=yes"
2009 else
2010   eval "$3=no"
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext \
2013     conftest$ac_exeext conftest.$ac_ext
2014 fi
2015 eval ac_res=\$$3
2016                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019
2020 } # ac_fn_c_check_func
2021 cat >config.log <<_ACEOF
2022 This file contains any messages produced by compilers while
2023 running configure, to aid debugging if configure makes a mistake.
2024
2025 It was created by xf86-video-intel $as_me 2.15.0, which was
2026 generated by GNU Autoconf 2.67.  Invocation command line was
2027
2028   $ $0 $@
2029
2030 _ACEOF
2031 exec 5>>config.log
2032 {
2033 cat <<_ASUNAME
2034 ## --------- ##
2035 ## Platform. ##
2036 ## --------- ##
2037
2038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2043
2044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2045 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2046
2047 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2048 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2050 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2051 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2052 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2053 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2054
2055 _ASUNAME
2056
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062     $as_echo "PATH: $as_dir"
2063   done
2064 IFS=$as_save_IFS
2065
2066 } >&5
2067
2068 cat >&5 <<_ACEOF
2069
2070
2071 ## ----------- ##
2072 ## Core tests. ##
2073 ## ----------- ##
2074
2075 _ACEOF
2076
2077
2078 # Keep a trace of the command line.
2079 # Strip out --no-create and --no-recursion so they do not pile up.
2080 # Strip out --silent because we don't want to record it for future runs.
2081 # Also quote any args containing shell meta-characters.
2082 # Make two passes to allow for proper duplicate-argument suppression.
2083 ac_configure_args=
2084 ac_configure_args0=
2085 ac_configure_args1=
2086 ac_must_keep_next=false
2087 for ac_pass in 1 2
2088 do
2089   for ac_arg
2090   do
2091     case $ac_arg in
2092     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2093     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2094     | -silent | --silent | --silen | --sile | --sil)
2095       continue ;;
2096     *\'*)
2097       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2098     esac
2099     case $ac_pass in
2100     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2101     2)
2102       as_fn_append ac_configure_args1 " '$ac_arg'"
2103       if test $ac_must_keep_next = true; then
2104         ac_must_keep_next=false # Got value, back to normal.
2105       else
2106         case $ac_arg in
2107           *=* | --config-cache | -C | -disable-* | --disable-* \
2108           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2109           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2110           | -with-* | --with-* | -without-* | --without-* | --x)
2111             case "$ac_configure_args0 " in
2112               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2113             esac
2114             ;;
2115           -* ) ac_must_keep_next=true ;;
2116         esac
2117       fi
2118       as_fn_append ac_configure_args " '$ac_arg'"
2119       ;;
2120     esac
2121   done
2122 done
2123 { ac_configure_args0=; unset ac_configure_args0;}
2124 { ac_configure_args1=; unset ac_configure_args1;}
2125
2126 # When interrupted or exit'd, cleanup temporary files, and complete
2127 # config.log.  We remove comments because anyway the quotes in there
2128 # would cause problems or look ugly.
2129 # WARNING: Use '\'' to represent an apostrophe within the trap.
2130 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2131 trap 'exit_status=$?
2132   # Save into config.log some information that might help in debugging.
2133   {
2134     echo
2135
2136     $as_echo "## ---------------- ##
2137 ## Cache variables. ##
2138 ## ---------------- ##"
2139     echo
2140     # The following way of writing the cache mishandles newlines in values,
2141 (
2142   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2143     eval ac_val=\$$ac_var
2144     case $ac_val in #(
2145     *${as_nl}*)
2146       case $ac_var in #(
2147       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2148 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2149       esac
2150       case $ac_var in #(
2151       _ | IFS | as_nl) ;; #(
2152       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2153       *) { eval $ac_var=; unset $ac_var;} ;;
2154       esac ;;
2155     esac
2156   done
2157   (set) 2>&1 |
2158     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2159     *${as_nl}ac_space=\ *)
2160       sed -n \
2161         "s/'\''/'\''\\\\'\'''\''/g;
2162           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2163       ;; #(
2164     *)
2165       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2166       ;;
2167     esac |
2168     sort
2169 )
2170     echo
2171
2172     $as_echo "## ----------------- ##
2173 ## Output variables. ##
2174 ## ----------------- ##"
2175     echo
2176     for ac_var in $ac_subst_vars
2177     do
2178       eval ac_val=\$$ac_var
2179       case $ac_val in
2180       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181       esac
2182       $as_echo "$ac_var='\''$ac_val'\''"
2183     done | sort
2184     echo
2185
2186     if test -n "$ac_subst_files"; then
2187       $as_echo "## ------------------- ##
2188 ## File substitutions. ##
2189 ## ------------------- ##"
2190       echo
2191       for ac_var in $ac_subst_files
2192       do
2193         eval ac_val=\$$ac_var
2194         case $ac_val in
2195         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196         esac
2197         $as_echo "$ac_var='\''$ac_val'\''"
2198       done | sort
2199       echo
2200     fi
2201
2202     if test -s confdefs.h; then
2203       $as_echo "## ----------- ##
2204 ## confdefs.h. ##
2205 ## ----------- ##"
2206       echo
2207       cat confdefs.h
2208       echo
2209     fi
2210     test "$ac_signal" != 0 &&
2211       $as_echo "$as_me: caught signal $ac_signal"
2212     $as_echo "$as_me: exit $exit_status"
2213   } >&5
2214   rm -f core *.core core.conftest.* &&
2215     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2216     exit $exit_status
2217 ' 0
2218 for ac_signal in 1 2 13 15; do
2219   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2220 done
2221 ac_signal=0
2222
2223 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2224 rm -f -r conftest* confdefs.h
2225
2226 $as_echo "/* confdefs.h */" > confdefs.h
2227
2228 # Predefined preprocessor variables.
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_NAME "$PACKAGE_NAME"
2232 _ACEOF
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2236 _ACEOF
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2240 _ACEOF
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_STRING "$PACKAGE_STRING"
2244 _ACEOF
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_URL "$PACKAGE_URL"
2252 _ACEOF
2253
2254
2255 # Let the site file select an alternate cache file if it wants to.
2256 # Prefer an explicitly selected file to automatically selected ones.
2257 ac_site_file1=NONE
2258 ac_site_file2=NONE
2259 if test -n "$CONFIG_SITE"; then
2260   # We do not want a PATH search for config.site.
2261   case $CONFIG_SITE in #((
2262     -*)  ac_site_file1=./$CONFIG_SITE;;
2263     */*) ac_site_file1=$CONFIG_SITE;;
2264     *)   ac_site_file1=./$CONFIG_SITE;;
2265   esac
2266 elif test "x$prefix" != xNONE; then
2267   ac_site_file1=$prefix/share/config.site
2268   ac_site_file2=$prefix/etc/config.site
2269 else
2270   ac_site_file1=$ac_default_prefix/share/config.site
2271   ac_site_file2=$ac_default_prefix/etc/config.site
2272 fi
2273 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2274 do
2275   test "x$ac_site_file" = xNONE && continue
2276   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2277     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2278 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2279     sed 's/^/| /' "$ac_site_file" >&5
2280     . "$ac_site_file" \
2281       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 as_fn_error $? "failed to load site script $ac_site_file
2284 See \`config.log' for more details" "$LINENO" 5 ; }
2285   fi
2286 done
2287
2288 if test -r "$cache_file"; then
2289   # Some versions of bash will fail to source /dev/null (special files
2290   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2291   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2292     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2293 $as_echo "$as_me: loading cache $cache_file" >&6;}
2294     case $cache_file in
2295       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2296       *)                      . "./$cache_file";;
2297     esac
2298   fi
2299 else
2300   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2301 $as_echo "$as_me: creating cache $cache_file" >&6;}
2302   >$cache_file
2303 fi
2304
2305 # Check that the precious variables saved in the cache have kept the same
2306 # value.
2307 ac_cache_corrupted=false
2308 for ac_var in $ac_precious_vars; do
2309   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2310   eval ac_new_set=\$ac_env_${ac_var}_set
2311   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2312   eval ac_new_val=\$ac_env_${ac_var}_value
2313   case $ac_old_set,$ac_new_set in
2314     set,)
2315       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2316 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2317       ac_cache_corrupted=: ;;
2318     ,set)
2319       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2320 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2321       ac_cache_corrupted=: ;;
2322     ,);;
2323     *)
2324       if test "x$ac_old_val" != "x$ac_new_val"; then
2325         # differences in whitespace do not lead to failure.
2326         ac_old_val_w=`echo x $ac_old_val`
2327         ac_new_val_w=`echo x $ac_new_val`
2328         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2329           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2330 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2331           ac_cache_corrupted=:
2332         else
2333           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2334 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2335           eval $ac_var=\$ac_old_val
2336         fi
2337         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2338 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2339         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2340 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2341       fi;;
2342   esac
2343   # Pass precious variables to config.status.
2344   if test "$ac_new_set" = set; then
2345     case $ac_new_val in
2346     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2347     *) ac_arg=$ac_var=$ac_new_val ;;
2348     esac
2349     case " $ac_configure_args " in
2350       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2351       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2352     esac
2353   fi
2354 done
2355 if $ac_cache_corrupted; then
2356   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2358   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2359 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2360   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2361 fi
2362 ## -------------------- ##
2363 ## Main body of script. ##
2364 ## -------------------- ##
2365
2366 ac_ext=c
2367 ac_cpp='$CPP $CPPFLAGS'
2368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2371
2372
2373
2374 ac_config_headers="$ac_config_headers config.h"
2375
2376 ac_aux_dir=
2377 for ac_dir in build-aux "$srcdir"/build-aux; do
2378   if test -f "$ac_dir/install-sh"; then
2379     ac_aux_dir=$ac_dir
2380     ac_install_sh="$ac_aux_dir/install-sh -c"
2381     break
2382   elif test -f "$ac_dir/install.sh"; then
2383     ac_aux_dir=$ac_dir
2384     ac_install_sh="$ac_aux_dir/install.sh -c"
2385     break
2386   elif test -f "$ac_dir/shtool"; then
2387     ac_aux_dir=$ac_dir
2388     ac_install_sh="$ac_aux_dir/shtool install -c"
2389     break
2390   fi
2391 done
2392 if test -z "$ac_aux_dir"; then
2393   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2394 fi
2395
2396 # These three variables are undocumented and unsupported,
2397 # and are intended to be withdrawn in a future Autoconf release.
2398 # They can cause serious problems if a builder's source tree is in a directory
2399 # whose full name contains unusual characters.
2400 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2401 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2402 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2403
2404
2405
2406
2407 # Initialize Automake
2408 am__api_version='1.11'
2409
2410 # Find a good install program.  We prefer a C program (faster),
2411 # so one script is as good as another.  But avoid the broken or
2412 # incompatible versions:
2413 # SysV /etc/install, /usr/sbin/install
2414 # SunOS /usr/etc/install
2415 # IRIX /sbin/install
2416 # AIX /bin/install
2417 # AmigaOS /C/install, which installs bootblocks on floppy discs
2418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2421 # OS/2's system install, which has a completely different semantic
2422 # ./install, which can be erroneously created by make from ./install.sh.
2423 # Reject install programs that cannot install multiple files.
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2425 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2426 if test -z "$INSTALL"; then
2427 if test "${ac_cv_path_install+set}" = set; then :
2428   $as_echo_n "(cached) " >&6
2429 else
2430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435     # Account for people who put trailing slashes in PATH elements.
2436 case $as_dir/ in #((
2437   ./ | .// | /[cC]/* | \
2438   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2439   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2440   /usr/ucb/* ) ;;
2441   *)
2442     # OSF1 and SCO ODT 3.0 have their own names for install.
2443     # Don't use installbsd from OSF since it installs stuff as root
2444     # by default.
2445     for ac_prog in ginstall scoinst install; do
2446       for ac_exec_ext in '' $ac_executable_extensions; do
2447         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2448           if test $ac_prog = install &&
2449             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450             # AIX install.  It has an incompatible calling convention.
2451             :
2452           elif test $ac_prog = install &&
2453             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2454             # program-specific install script used by HP pwplus--don't use.
2455             :
2456           else
2457             rm -rf conftest.one conftest.two conftest.dir
2458             echo one > conftest.one
2459             echo two > conftest.two
2460             mkdir conftest.dir
2461             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2462               test -s conftest.one && test -s conftest.two &&
2463               test -s conftest.dir/conftest.one &&
2464               test -s conftest.dir/conftest.two
2465             then
2466               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2467               break 3
2468             fi
2469           fi
2470         fi
2471       done
2472     done
2473     ;;
2474 esac
2475
2476   done
2477 IFS=$as_save_IFS
2478
2479 rm -rf conftest.one conftest.two conftest.dir
2480
2481 fi
2482   if test "${ac_cv_path_install+set}" = set; then
2483     INSTALL=$ac_cv_path_install
2484   else
2485     # As a last resort, use the slow shell script.  Don't cache a
2486     # value for INSTALL within a source directory, because that will
2487     # break other packages using the cache if that directory is
2488     # removed, or if the value is a relative name.
2489     INSTALL=$ac_install_sh
2490   fi
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2493 $as_echo "$INSTALL" >&6; }
2494
2495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2496 # It thinks the first close brace ends the variable substitution.
2497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2498
2499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2500
2501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2504 $as_echo_n "checking whether build environment is sane... " >&6; }
2505 # Just in case
2506 sleep 1
2507 echo timestamp > conftest.file
2508 # Reject unsafe characters in $srcdir or the absolute working directory
2509 # name.  Accept space and tab only in the latter.
2510 am_lf='
2511 '
2512 case `pwd` in
2513   *[\\\"\#\$\&\'\`$am_lf]*)
2514     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2515 esac
2516 case $srcdir in
2517   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2518     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2519 esac
2520
2521 # Do `set' in a subshell so we don't clobber the current shell's
2522 # arguments.  Must try -L first in case configure is actually a
2523 # symlink; some systems play weird games with the mod time of symlinks
2524 # (eg FreeBSD returns the mod time of the symlink's containing
2525 # directory).
2526 if (
2527    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2528    if test "$*" = "X"; then
2529       # -L didn't work.
2530       set X `ls -t "$srcdir/configure" conftest.file`
2531    fi
2532    rm -f conftest.file
2533    if test "$*" != "X $srcdir/configure conftest.file" \
2534       && test "$*" != "X conftest.file $srcdir/configure"; then
2535
2536       # If neither matched, then we have a broken ls.  This can happen
2537       # if, for instance, CONFIG_SHELL is bash and it inherits a
2538       # broken ls alias from the environment.  This has actually
2539       # happened.  Such a system could not be considered "sane".
2540       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2541 alias in your environment" "$LINENO" 5
2542    fi
2543
2544    test "$2" = conftest.file
2545    )
2546 then
2547    # Ok.
2548    :
2549 else
2550    as_fn_error $? "newly created file is older than distributed files!
2551 Check your system clock" "$LINENO" 5
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554 $as_echo "yes" >&6; }
2555 test "$program_prefix" != NONE &&
2556   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2557 # Use a double $ so make ignores it.
2558 test "$program_suffix" != NONE &&
2559   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2560 # Double any \ or $.
2561 # By default was `s,x,x', remove it if useless.
2562 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2563 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2564
2565 # expand $ac_aux_dir to an absolute path
2566 am_aux_dir=`cd $ac_aux_dir && pwd`
2567
2568 if test x"${MISSING+set}" != xset; then
2569   case $am_aux_dir in
2570   *\ * | *\     *)
2571     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2572   *)
2573     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2574   esac
2575 fi
2576 # Use eval to expand $SHELL
2577 if eval "$MISSING --run true"; then
2578   am_missing_run="$MISSING --run "
2579 else
2580   am_missing_run=
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2582 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2583 fi
2584
2585 if test x"${install_sh}" != xset; then
2586   case $am_aux_dir in
2587   *\ * | *\     *)
2588     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2589   *)
2590     install_sh="\${SHELL} $am_aux_dir/install-sh"
2591   esac
2592 fi
2593
2594 # Installed binaries are usually stripped using `strip' when the user
2595 # run `make install-strip'.  However `strip' might not be the right
2596 # tool to use in cross-compilation environments, therefore Automake
2597 # will honor the `STRIP' environment variable to overrule this program.
2598 if test "$cross_compiling" != no; then
2599   if test -n "$ac_tool_prefix"; then
2600   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2601 set dummy ${ac_tool_prefix}strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if test "${ac_cv_prog_STRIP+set}" = set; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   if test -n "$STRIP"; then
2608   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622   done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 STRIP=$ac_cv_prog_STRIP
2628 if test -n "$STRIP"; then
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2630 $as_echo "$STRIP" >&6; }
2631 else
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 fi
2638 if test -z "$ac_cv_prog_STRIP"; then
2639   ac_ct_STRIP=$STRIP
2640   # Extract the first word of "strip", so it can be a program name with args.
2641 set dummy strip; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2645   $as_echo_n "(cached) " >&6
2646 else
2647   if test -n "$ac_ct_STRIP"; then
2648   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_ac_ct_STRIP="strip"
2658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662   done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2668 if test -n "$ac_ct_STRIP"; then
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2670 $as_echo "$ac_ct_STRIP" >&6; }
2671 else
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676   if test "x$ac_ct_STRIP" = x; then
2677     STRIP=":"
2678   else
2679     case $cross_compiling:$ac_tool_warned in
2680 yes:)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685     STRIP=$ac_ct_STRIP
2686   fi
2687 else
2688   STRIP="$ac_cv_prog_STRIP"
2689 fi
2690
2691 fi
2692 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2693
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2695 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2696 if test -z "$MKDIR_P"; then
2697   if test "${ac_cv_path_mkdir+set}" = set; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705     for ac_prog in mkdir gmkdir; do
2706          for ac_exec_ext in '' $ac_executable_extensions; do
2707            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2708            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2709              'mkdir (GNU coreutils) '* | \
2710              'mkdir (coreutils) '* | \
2711              'mkdir (fileutils) '4.1*)
2712                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2713                break 3;;
2714            esac
2715          done
2716        done
2717   done
2718 IFS=$as_save_IFS
2719
2720 fi
2721
2722   test -d ./--version && rmdir ./--version
2723   if test "${ac_cv_path_mkdir+set}" = set; then
2724     MKDIR_P="$ac_cv_path_mkdir -p"
2725   else
2726     # As a last resort, use the slow shell script.  Don't cache a
2727     # value for MKDIR_P within a source directory, because that will
2728     # break other packages using the cache if that directory is
2729     # removed, or if the value is a relative name.
2730     MKDIR_P="$ac_install_sh -d"
2731   fi
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2734 $as_echo "$MKDIR_P" >&6; }
2735
2736 mkdir_p="$MKDIR_P"
2737 case $mkdir_p in
2738   [\\/$]* | ?:[\\/]*) ;;
2739   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2740 esac
2741
2742 for ac_prog in gawk mawk nawk awk
2743 do
2744   # Extract the first word of "$ac_prog", so it can be a program name with args.
2745 set dummy $ac_prog; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if test "${ac_cv_prog_AWK+set}" = set; then :
2749   $as_echo_n "(cached) " >&6
2750 else
2751   if test -n "$AWK"; then
2752   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757   IFS=$as_save_IFS
2758   test -z "$as_dir" && as_dir=.
2759     for ac_exec_ext in '' $ac_executable_extensions; do
2760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761     ac_cv_prog_AWK="$ac_prog"
2762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763     break 2
2764   fi
2765 done
2766   done
2767 IFS=$as_save_IFS
2768
2769 fi
2770 fi
2771 AWK=$ac_cv_prog_AWK
2772 if test -n "$AWK"; then
2773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2774 $as_echo "$AWK" >&6; }
2775 else
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 fi
2779
2780
2781   test -n "$AWK" && break
2782 done
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2786 set x ${MAKE-make}
2787 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2788 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   cat >conftest.make <<\_ACEOF
2792 SHELL = /bin/sh
2793 all:
2794         @echo '@@@%%%=$(MAKE)=@@@%%%'
2795 _ACEOF
2796 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2798   *@@@%%%=?*=@@@%%%*)
2799     eval ac_cv_prog_make_${ac_make}_set=yes;;
2800   *)
2801     eval ac_cv_prog_make_${ac_make}_set=no;;
2802 esac
2803 rm -f conftest.make
2804 fi
2805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2807 $as_echo "yes" >&6; }
2808   SET_MAKE=
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812   SET_MAKE="MAKE=${MAKE-make}"
2813 fi
2814
2815 rm -rf .tst 2>/dev/null
2816 mkdir .tst 2>/dev/null
2817 if test -d .tst; then
2818   am__leading_dot=.
2819 else
2820   am__leading_dot=_
2821 fi
2822 rmdir .tst 2>/dev/null
2823
2824 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2825   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2826   # is not polluted with repeated "-I."
2827   am__isrc=' -I$(srcdir)'
2828   # test to see if srcdir already configured
2829   if test -f $srcdir/config.status; then
2830     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2831   fi
2832 fi
2833
2834 # test whether we have cygpath
2835 if test -z "$CYGPATH_W"; then
2836   if (cygpath --version) >/dev/null 2>/dev/null; then
2837     CYGPATH_W='cygpath -w'
2838   else
2839     CYGPATH_W=echo
2840   fi
2841 fi
2842
2843
2844 # Define the identity of the package.
2845  PACKAGE='xf86-video-intel'
2846  VERSION='2.15.0'
2847
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE "$PACKAGE"
2851 _ACEOF
2852
2853
2854 cat >>confdefs.h <<_ACEOF
2855 #define VERSION "$VERSION"
2856 _ACEOF
2857
2858 # Some tools Automake needs.
2859
2860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2861
2862
2863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2864
2865
2866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2867
2868
2869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2870
2871
2872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2873
2874 # We need awk for the "check" target.  The system "awk" is bad on
2875 # some platforms.
2876 # Always define AMTAR for backward compatibility.
2877
2878 AMTAR=${AMTAR-"${am_missing_run}tar"}
2879
2880 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2881
2882
2883
2884
2885
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
2888 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
2889     # Check whether --enable-maintainer-mode was given.
2890 if test "${enable_maintainer_mode+set}" = set; then :
2891   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2892 else
2893   USE_MAINTAINER_MODE=yes
2894 fi
2895
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2897 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2898    if test $USE_MAINTAINER_MODE = yes; then
2899   MAINTAINER_MODE_TRUE=
2900   MAINTAINER_MODE_FALSE='#'
2901 else
2902   MAINTAINER_MODE_TRUE='#'
2903   MAINTAINER_MODE_FALSE=
2904 fi
2905
2906   MAINT=$MAINTAINER_MODE_TRUE
2907
2908
2909
2910 # Support silent build rules, requires at least automake-1.11. Disable
2911 # by either passing --disable-silent-rules to configure or passing V=1
2912 # to make
2913 # Check whether --enable-silent-rules was given.
2914 if test "${enable_silent_rules+set}" = set; then :
2915   enableval=$enable_silent_rules;
2916 fi
2917
2918 case $enable_silent_rules in
2919 yes) AM_DEFAULT_VERBOSITY=0;;
2920 no)  AM_DEFAULT_VERBOSITY=1;;
2921 *)   AM_DEFAULT_VERBOSITY=0;;
2922 esac
2923 AM_BACKSLASH='\'
2924
2925
2926 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939 DEPDIR="${am__leading_dot}deps"
2940
2941 ac_config_commands="$ac_config_commands depfiles"
2942
2943
2944 am_make=${MAKE-make}
2945 cat > confinc << 'END'
2946 am__doit:
2947         @echo this is the am__doit target
2948 .PHONY: am__doit
2949 END
2950 # If we don't find an include directive, just comment out the code.
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2952 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2953 am__include="#"
2954 am__quote=
2955 _am_result=none
2956 # First try GNU make style include.
2957 echo "include confinc" > confmf
2958 # Ignore all kinds of additional output from `make'.
2959 case `$am_make -s -f confmf 2> /dev/null` in #(
2960 *the\ am__doit\ target*)
2961   am__include=include
2962   am__quote=
2963   _am_result=GNU
2964   ;;
2965 esac
2966 # Now try BSD make style include.
2967 if test "$am__include" = "#"; then
2968    echo '.include "confinc"' > confmf
2969    case `$am_make -s -f confmf 2> /dev/null` in #(
2970    *the\ am__doit\ target*)
2971      am__include=.include
2972      am__quote="\""
2973      _am_result=BSD
2974      ;;
2975    esac
2976 fi
2977
2978
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2980 $as_echo "$_am_result" >&6; }
2981 rm -f confinc confmf
2982
2983 # Check whether --enable-dependency-tracking was given.
2984 if test "${enable_dependency_tracking+set}" = set; then :
2985   enableval=$enable_dependency_tracking;
2986 fi
2987
2988 if test "x$enable_dependency_tracking" != xno; then
2989   am_depcomp="$ac_aux_dir/depcomp"
2990   AMDEPBACKSLASH='\'
2991 fi
2992  if test "x$enable_dependency_tracking" != xno; then
2993   AMDEP_TRUE=
2994   AMDEP_FALSE='#'
2995 else
2996   AMDEP_TRUE='#'
2997   AMDEP_FALSE=
2998 fi
2999
3000
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006 if test -n "$ac_tool_prefix"; then
3007   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_CC+set}" = set; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$CC"; then
3015   ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020   IFS=$as_save_IFS
3021   test -z "$as_dir" && as_dir=.
3022     for ac_exec_ext in '' $ac_executable_extensions; do
3023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026     break 2
3027   fi
3028 done
3029   done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 CC=$ac_cv_prog_CC
3035 if test -n "$CC"; then
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044 fi
3045 if test -z "$ac_cv_prog_CC"; then
3046   ac_ct_CC=$CC
3047   # Extract the first word of "gcc", so it can be a program name with args.
3048 set dummy gcc; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$ac_ct_CC"; then
3055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     for ac_exec_ext in '' $ac_executable_extensions; do
3063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064     ac_cv_prog_ac_ct_CC="gcc"
3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069   done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3075 if test -n "$ac_ct_CC"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3077 $as_echo "$ac_ct_CC" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083   if test "x$ac_ct_CC" = x; then
3084     CC=""
3085   else
3086     case $cross_compiling:$ac_tool_warned in
3087 yes:)
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090 ac_tool_warned=yes ;;
3091 esac
3092     CC=$ac_ct_CC
3093   fi
3094 else
3095   CC="$ac_cv_prog_CC"
3096 fi
3097
3098 if test -z "$CC"; then
3099           if test -n "$ac_tool_prefix"; then
3100     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}cc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_CC+set}" = set; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test -n "$CC"; then
3108   ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113   IFS=$as_save_IFS
3114   test -z "$as_dir" && as_dir=.
3115     for ac_exec_ext in '' $ac_executable_extensions; do
3116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117     ac_cv_prog_CC="${ac_tool_prefix}cc"
3118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120   fi
3121 done
3122   done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 CC=$ac_cv_prog_CC
3128 if test -n "$CC"; then
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3131 else
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137   fi
3138 fi
3139 if test -z "$CC"; then
3140   # Extract the first word of "cc", so it can be a program name with args.
3141 set dummy cc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_CC+set}" = set; then :
3145   $as_echo_n "(cached) " >&6
3146 else
3147   if test -n "$CC"; then
3148   ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150   ac_prog_rejected=no
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156     for ac_exec_ext in '' $ac_executable_extensions; do
3157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3159        ac_prog_rejected=yes
3160        continue
3161      fi
3162     ac_cv_prog_CC="cc"
3163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164     break 2
3165   fi
3166 done
3167   done
3168 IFS=$as_save_IFS
3169
3170 if test $ac_prog_rejected = yes; then
3171   # We found a bogon in the path, so make sure we never use it.
3172   set dummy $ac_cv_prog_CC
3173   shift
3174   if test $# != 0; then
3175     # We chose a different compiler from the bogus one.
3176     # However, it has the same basename, so the bogon will be chosen
3177     # first if we set CC to just the basename; use the full file name.
3178     shift
3179     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180   fi
3181 fi
3182 fi
3183 fi
3184 CC=$ac_cv_prog_CC
3185 if test -n "$CC"; then
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3188 else
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194 fi
3195 if test -z "$CC"; then
3196   if test -n "$ac_tool_prefix"; then
3197   for ac_prog in cl.exe
3198   do
3199     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_CC+set}" = set; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$CC"; then
3207   ac_cv_prog_CC="$CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 $as_echo "$CC" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236     test -n "$CC" && break
3237   done
3238 fi
3239 if test -z "$CC"; then
3240   ac_ct_CC=$CC
3241   for ac_prog in cl.exe
3242 do
3243   # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$ac_ct_CC"; then
3251   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258     for ac_exec_ext in '' $ac_executable_extensions; do
3259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260     ac_cv_prog_ac_ct_CC="$ac_prog"
3261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265   done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271 if test -n "$ac_ct_CC"; then
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3273 $as_echo "$ac_ct_CC" >&6; }
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280   test -n "$ac_ct_CC" && break
3281 done
3282
3283   if test "x$ac_ct_CC" = x; then
3284     CC=""
3285   else
3286     case $cross_compiling:$ac_tool_warned in
3287 yes:)
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290 ac_tool_warned=yes ;;
3291 esac
3292     CC=$ac_ct_CC
3293   fi
3294 fi
3295
3296 fi
3297
3298
3299 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "no acceptable C compiler found in \$PATH
3302 See \`config.log' for more details" "$LINENO" 5 ; }
3303
3304 # Provide some information about the compiler.
3305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3306 set X $ac_compile
3307 ac_compiler=$2
3308 for ac_option in --version -v -V -qversion; do
3309   { { ac_try="$ac_compiler $ac_option >&5"
3310 case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 $as_echo "$ac_try_echo"; } >&5
3316   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3317   ac_status=$?
3318   if test -s conftest.err; then
3319     sed '10a\
3320 ... rest of stderr output deleted ...
3321          10q' conftest.err >conftest.er1
3322     cat conftest.er1 >&5
3323   fi
3324   rm -f conftest.er1 conftest.err
3325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326   test $ac_status = 0; }
3327 done
3328
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h.  */
3331
3332 int
3333 main ()
3334 {
3335
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 ac_clean_files_save=$ac_clean_files
3341 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3342 # Try to create an executable without -o first, disregard a.out.
3343 # It will help us diagnose broken compilers, and finding out an intuition
3344 # of exeext.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3346 $as_echo_n "checking whether the C compiler works... " >&6; }
3347 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3348
3349 # The possible output files:
3350 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3351
3352 ac_rmfiles=
3353 for ac_file in $ac_files
3354 do
3355   case $ac_file in
3356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3357     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3358   esac
3359 done
3360 rm -f $ac_rmfiles
3361
3362 if { { ac_try="$ac_link_default"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369   (eval "$ac_link_default") 2>&5
3370   ac_status=$?
3371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372   test $ac_status = 0; }; then :
3373   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3374 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3375 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3376 # so that the user can short-circuit this test for compilers unknown to
3377 # Autoconf.
3378 for ac_file in $ac_files ''
3379 do
3380   test -f "$ac_file" || continue
3381   case $ac_file in
3382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3383         ;;
3384     [ab].out )
3385         # We found the default executable, but exeext='' is most
3386         # certainly right.
3387         break;;
3388     *.* )
3389         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3390         then :; else
3391            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392         fi
3393         # We set ac_cv_exeext here because the later test for it is not
3394         # safe: cross compilers may not add the suffix if given an `-o'
3395         # argument, so we may need to know it at that point already.
3396         # Even if this section looks crufty: it has the advantage of
3397         # actually working.
3398         break;;
3399     * )
3400         break;;
3401   esac
3402 done
3403 test "$ac_cv_exeext" = no && ac_cv_exeext=
3404
3405 else
3406   ac_file=''
3407 fi
3408 if test -z "$ac_file"; then :
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 $as_echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error 77 "C compiler cannot create executables
3417 See \`config.log' for more details" "$LINENO" 5 ; }
3418 else
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3420 $as_echo "yes" >&6; }
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3423 $as_echo_n "checking for C compiler default output file name... " >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3425 $as_echo "$ac_file" >&6; }
3426 ac_exeext=$ac_cv_exeext
3427
3428 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3429 ac_clean_files=$ac_clean_files_save
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3431 $as_echo_n "checking for suffix of executables... " >&6; }
3432 if { { ac_try="$ac_link"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439   (eval "$ac_link") 2>&5
3440   ac_status=$?
3441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442   test $ac_status = 0; }; then :
3443   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3445 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 # `rm'.
3447 for ac_file in conftest.exe conftest conftest.*; do
3448   test -f "$ac_file" || continue
3449   case $ac_file in
3450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452           break;;
3453     * ) break;;
3454   esac
3455 done
3456 else
3457   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details" "$LINENO" 5 ; }
3461 fi
3462 rm -f conftest conftest$ac_cv_exeext
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3464 $as_echo "$ac_cv_exeext" >&6; }
3465
3466 rm -f conftest.$ac_ext
3467 EXEEXT=$ac_cv_exeext
3468 ac_exeext=$EXEEXT
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h.  */
3471 #include <stdio.h>
3472 int
3473 main ()
3474 {
3475 FILE *f = fopen ("conftest.out", "w");
3476  return ferror (f) || fclose (f) != 0;
3477
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 ac_clean_files="$ac_clean_files conftest.out"
3483 # Check that the compiler produces executables we can run.  If not, either
3484 # the compiler is broken, or we cross compile.
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3486 $as_echo_n "checking whether we are cross compiling... " >&6; }
3487 if test "$cross_compiling" != yes; then
3488   { { ac_try="$ac_link"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495   (eval "$ac_link") 2>&5
3496   ac_status=$?
3497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498   test $ac_status = 0; }
3499   if { ac_try='./conftest$ac_cv_exeext'
3500   { { case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_try") 2>&5
3507   ac_status=$?
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }; }; then
3510     cross_compiling=no
3511   else
3512     if test "$cross_compiling" = maybe; then
3513         cross_compiling=yes
3514     else
3515         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error $? "cannot run C compiled programs.
3518 If you meant to cross compile, use \`--host'.
3519 See \`config.log' for more details" "$LINENO" 5 ; }
3520     fi
3521   fi
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3524 $as_echo "$cross_compiling" >&6; }
3525
3526 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3527 ac_clean_files=$ac_clean_files_save
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3529 $as_echo_n "checking for suffix of object files... " >&6; }
3530 if test "${ac_cv_objext+set}" = set; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539
3540   ;
3541   return 0;
3542 }
3543 _ACEOF
3544 rm -f conftest.o conftest.obj
3545 if { { ac_try="$ac_compile"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552   (eval "$ac_compile") 2>&5
3553   ac_status=$?
3554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555   test $ac_status = 0; }; then :
3556   for ac_file in conftest.o conftest.obj conftest.*; do
3557   test -f "$ac_file" || continue;
3558   case $ac_file in
3559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3560     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3561        break;;
3562   esac
3563 done
3564 else
3565   $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error $? "cannot compute suffix of object files: cannot compile
3571 See \`config.log' for more details" "$LINENO" 5 ; }
3572 fi
3573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3576 $as_echo "$ac_cv_objext" >&6; }
3577 OBJEXT=$ac_cv_objext
3578 ac_objext=$OBJEXT
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3580 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3581 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3582   $as_echo_n "(cached) " >&6
3583 else
3584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590 #ifndef __GNUC__
3591        choke me
3592 #endif
3593
3594   ;
3595   return 0;
3596 }
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599   ac_compiler_gnu=yes
3600 else
3601   ac_compiler_gnu=no
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3608 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3609 if test $ac_compiler_gnu = yes; then
3610   GCC=yes
3611 else
3612   GCC=
3613 fi
3614 ac_test_CFLAGS=${CFLAGS+set}
3615 ac_save_CFLAGS=$CFLAGS
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3617 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3618 if test "${ac_cv_prog_cc_g+set}" = set; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   ac_save_c_werror_flag=$ac_c_werror_flag
3622    ac_c_werror_flag=yes
3623    ac_cv_prog_cc_g=no
3624    CFLAGS="-g"
3625    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627
3628 int
3629 main ()
3630 {
3631
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 if ac_fn_c_try_compile "$LINENO"; then :
3637   ac_cv_prog_cc_g=yes
3638 else
3639   CFLAGS=""
3640       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h.  */
3642
3643 int
3644 main ()
3645 {
3646
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652
3653 else
3654   ac_c_werror_flag=$ac_save_c_werror_flag
3655          CFLAGS="-g"
3656          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h.  */
3658
3659 int
3660 main ()
3661 {
3662
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668   ac_cv_prog_cc_g=yes
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 fi
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675    ac_c_werror_flag=$ac_save_c_werror_flag
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3678 $as_echo "$ac_cv_prog_cc_g" >&6; }
3679 if test "$ac_test_CFLAGS" = set; then
3680   CFLAGS=$ac_save_CFLAGS
3681 elif test $ac_cv_prog_cc_g = yes; then
3682   if test "$GCC" = yes; then
3683     CFLAGS="-g -O2"
3684   else
3685     CFLAGS="-g"
3686   fi
3687 else
3688   if test "$GCC" = yes; then
3689     CFLAGS="-O2"
3690   else
3691     CFLAGS=
3692   fi
3693 fi
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3695 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3696 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3697   $as_echo_n "(cached) " >&6
3698 else
3699   ac_cv_prog_cc_c89=no
3700 ac_save_CC=$CC
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h.  */
3703 #include <stdarg.h>
3704 #include <stdio.h>
3705 #include <sys/types.h>
3706 #include <sys/stat.h>
3707 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3708 struct buf { int x; };
3709 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3710 static char *e (p, i)
3711      char **p;
3712      int i;
3713 {
3714   return p[i];
3715 }
3716 static char *f (char * (*g) (char **, int), char **p, ...)
3717 {
3718   char *s;
3719   va_list v;
3720   va_start (v,p);
3721   s = g (p, va_arg (v,int));
3722   va_end (v);
3723   return s;
3724 }
3725
3726 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3727    function prototypes and stuff, but not '\xHH' hex character constants.
3728    These don't provoke an error unfortunately, instead are silently treated
3729    as 'x'.  The following induces an error, until -std is added to get
3730    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3731    array size at least.  It's necessary to write '\x00'==0 to get something
3732    that's true only with -std.  */
3733 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3734
3735 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3736    inside strings and character constants.  */
3737 #define FOO(x) 'x'
3738 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3739
3740 int test (int i, double x);
3741 struct s1 {int (*f) (int a);};
3742 struct s2 {int (*f) (double a);};
3743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3744 int argc;
3745 char **argv;
3746 int
3747 main ()
3748 {
3749 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3755         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3756 do
3757   CC="$ac_save_CC $ac_arg"
3758   if ac_fn_c_try_compile "$LINENO"; then :
3759   ac_cv_prog_cc_c89=$ac_arg
3760 fi
3761 rm -f core conftest.err conftest.$ac_objext
3762   test "x$ac_cv_prog_cc_c89" != "xno" && break
3763 done
3764 rm -f conftest.$ac_ext
3765 CC=$ac_save_CC
3766
3767 fi
3768 # AC_CACHE_VAL
3769 case "x$ac_cv_prog_cc_c89" in
3770   x)
3771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3772 $as_echo "none needed" >&6; } ;;
3773   xno)
3774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3775 $as_echo "unsupported" >&6; } ;;
3776   *)
3777     CC="$CC $ac_cv_prog_cc_c89"
3778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3779 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3780 esac
3781 if test "x$ac_cv_prog_cc_c89" != xno; then :
3782
3783 fi
3784
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790
3791 depcc="$CC"   am_compiler_list=
3792
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3794 $as_echo_n "checking dependency style of $depcc... " >&6; }
3795 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3796   $as_echo_n "(cached) " >&6
3797 else
3798   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3799   # We make a subdir and do the tests there.  Otherwise we can end up
3800   # making bogus files that we don't know about and never remove.  For
3801   # instance it was reported that on HP-UX the gcc test will end up
3802   # making a dummy file named `D' -- because `-MD' means `put the output
3803   # in D'.
3804   mkdir conftest.dir
3805   # Copy depcomp to subdir because otherwise we won't find it if we're
3806   # using a relative directory.
3807   cp "$am_depcomp" conftest.dir
3808   cd conftest.dir
3809   # We will build objects and dependencies in a subdirectory because
3810   # it helps to detect inapplicable dependency modes.  For instance
3811   # both Tru64's cc and ICC support -MD to output dependencies as a
3812   # side effect of compilation, but ICC will put the dependencies in
3813   # the current directory while Tru64 will put them in the object
3814   # directory.
3815   mkdir sub
3816
3817   am_cv_CC_dependencies_compiler_type=none
3818   if test "$am_compiler_list" = ""; then
3819      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3820   fi
3821   am__universal=false
3822   case " $depcc " in #(
3823      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3824      esac
3825
3826   for depmode in $am_compiler_list; do
3827     # Setup a source with many dependencies, because some compilers
3828     # like to wrap large dependency lists on column 80 (with \), and
3829     # we should not choose a depcomp mode which is confused by this.
3830     #
3831     # We need to recreate these files for each test, as the compiler may
3832     # overwrite some of them when testing with obscure command lines.
3833     # This happens at least with the AIX C compiler.
3834     : > sub/conftest.c
3835     for i in 1 2 3 4 5 6; do
3836       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3837       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3838       # Solaris 8's {/usr,}/bin/sh.
3839       touch sub/conftst$i.h
3840     done
3841     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3842
3843     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3844     # mode.  It turns out that the SunPro C++ compiler does not properly
3845     # handle `-M -o', and we need to detect this.  Also, some Intel
3846     # versions had trouble with output in subdirs
3847     am__obj=sub/conftest.${OBJEXT-o}
3848     am__minus_obj="-o $am__obj"
3849     case $depmode in
3850     gcc)
3851       # This depmode causes a compiler race in universal mode.
3852       test "$am__universal" = false || continue
3853       ;;
3854     nosideeffect)
3855       # after this tag, mechanisms are not by side-effect, so they'll
3856       # only be used when explicitly requested
3857       if test "x$enable_dependency_tracking" = xyes; then
3858         continue
3859       else
3860         break
3861       fi
3862       ;;
3863     msvisualcpp | msvcmsys)
3864       # This compiler won't grok `-c -o', but also, the minuso test has
3865       # not run yet.  These depmodes are late enough in the game, and
3866       # so weak that their functioning should not be impacted.
3867       am__obj=conftest.${OBJEXT-o}
3868       am__minus_obj=
3869       ;;
3870     none) break ;;
3871     esac
3872     if depmode=$depmode \
3873        source=sub/conftest.c object=$am__obj \
3874        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3875        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3876          >/dev/null 2>conftest.err &&
3877        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3878        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3879        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3880        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3881       # icc doesn't choke on unknown options, it will just issue warnings
3882       # or remarks (even with -Werror).  So we grep stderr for any message
3883       # that says an option was ignored or not supported.
3884       # When given -MP, icc 7.0 and 7.1 complain thusly:
3885       #   icc: Command line warning: ignoring option '-M'; no argument required
3886       # The diagnosis changed in icc 8.0:
3887       #   icc: Command line remark: option '-MP' not supported
3888       if (grep 'ignoring option' conftest.err ||
3889           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3890         am_cv_CC_dependencies_compiler_type=$depmode
3891         break
3892       fi
3893     fi
3894   done
3895
3896   cd ..
3897   rm -rf conftest.dir
3898 else
3899   am_cv_CC_dependencies_compiler_type=none
3900 fi
3901
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3904 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3905 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3906
3907  if
3908   test "x$enable_dependency_tracking" != xno \
3909   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3910   am__fastdepCC_TRUE=
3911   am__fastdepCC_FALSE='#'
3912 else
3913   am__fastdepCC_TRUE='#'
3914   am__fastdepCC_FALSE=
3915 fi
3916
3917
3918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3919 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3920 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   ac_cv_prog_cc_c99=no
3924 ac_save_CC=$CC
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h.  */
3927 #include <stdarg.h>
3928 #include <stdbool.h>
3929 #include <stdlib.h>
3930 #include <wchar.h>
3931 #include <stdio.h>
3932
3933 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3934 #define debug(...) fprintf (stderr, __VA_ARGS__)
3935 #define showlist(...) puts (#__VA_ARGS__)
3936 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3937 static void
3938 test_varargs_macros (void)
3939 {
3940   int x = 1234;
3941   int y = 5678;
3942   debug ("Flag");
3943   debug ("X = %d\n", x);
3944   showlist (The first, second, and third items.);
3945   report (x>y, "x is %d but y is %d", x, y);
3946 }
3947
3948 // Check long long types.
3949 #define BIG64 18446744073709551615ull
3950 #define BIG32 4294967295ul
3951 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3952 #if !BIG_OK
3953   your preprocessor is broken;
3954 #endif
3955 #if BIG_OK
3956 #else
3957   your preprocessor is broken;
3958 #endif
3959 static long long int bignum = -9223372036854775807LL;
3960 static unsigned long long int ubignum = BIG64;
3961
3962 struct incomplete_array
3963 {
3964   int datasize;
3965   double data[];
3966 };
3967
3968 struct named_init {
3969   int number;
3970   const wchar_t *name;
3971   double average;
3972 };
3973
3974 typedef const char *ccp;
3975
3976 static inline int
3977 test_restrict (ccp restrict text)
3978 {
3979   // See if C++-style comments work.
3980   // Iterate through items via the restricted pointer.
3981   // Also check for declarations in for loops.
3982   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3983     continue;
3984   return 0;
3985 }
3986
3987 // Check varargs and va_copy.
3988 static void
3989 test_varargs (const char *format, ...)
3990 {
3991   va_list args;
3992   va_start (args, format);
3993   va_list args_copy;
3994   va_copy (args_copy, args);
3995
3996   const char *str;
3997   int number;
3998   float fnumber;
3999
4000   while (*format)
4001     {
4002       switch (*format++)
4003         {
4004         case 's': // string
4005           str = va_arg (args_copy, const char *);
4006           break;
4007         case 'd': // int
4008           number = va_arg (args_copy, int);
4009           break;
4010         case 'f': // float
4011           fnumber = va_arg (args_copy, double);
4012           break;
4013         default:
4014           break;
4015         }
4016     }
4017   va_end (args_copy);
4018   va_end (args);
4019 }
4020
4021 int
4022 main ()
4023 {
4024
4025   // Check bool.
4026   _Bool success = false;
4027
4028   // Check restrict.
4029   if (test_restrict ("String literal") == 0)
4030     success = true;
4031   char *restrict newvar = "Another string";
4032
4033   // Check varargs.
4034   test_varargs ("s, d' f .", "string", 65, 34.234);
4035   test_varargs_macros ();
4036
4037   // Check flexible array members.
4038   struct incomplete_array *ia =
4039     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4040   ia->datasize = 10;
4041   for (int i = 0; i < ia->datasize; ++i)
4042     ia->data[i] = i * 1.234;
4043
4044   // Check named initializers.
4045   struct named_init ni = {
4046     .number = 34,
4047     .name = L"Test wide string",
4048     .average = 543.34343,
4049   };
4050
4051   ni.number = 58;
4052
4053   int dynamic_array[ni.number];
4054   dynamic_array[ni.number - 1] = 543;
4055
4056   // work around unused variable warnings
4057   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4058           || dynamic_array[ni.number - 1] != 543);
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4065 do
4066   CC="$ac_save_CC $ac_arg"
4067   if ac_fn_c_try_compile "$LINENO"; then :
4068   ac_cv_prog_cc_c99=$ac_arg
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext
4071   test "x$ac_cv_prog_cc_c99" != "xno" && break
4072 done
4073 rm -f conftest.$ac_ext
4074 CC=$ac_save_CC
4075
4076 fi
4077 # AC_CACHE_VAL
4078 case "x$ac_cv_prog_cc_c99" in
4079   x)
4080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4081 $as_echo "none needed" >&6; } ;;
4082   xno)
4083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4084 $as_echo "unsupported" >&6; } ;;
4085   *)
4086     CC="$CC $ac_cv_prog_cc_c99"
4087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4088 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4089 esac
4090 if test "x$ac_cv_prog_cc_c99" != xno; then :
4091
4092 fi
4093
4094
4095
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4102 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4103 # On Suns, sometimes $CPP names a directory.
4104 if test -n "$CPP" && test -d "$CPP"; then
4105   CPP=
4106 fi
4107 if test -z "$CPP"; then
4108   if test "${ac_cv_prog_CPP+set}" = set; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111       # Double quotes because CPP needs to be expanded
4112     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4113     do
4114       ac_preproc_ok=false
4115 for ac_c_preproc_warn_flag in '' yes
4116 do
4117   # Use a header file that comes with gcc, so configuring glibc
4118   # with a fresh cross-compiler works.
4119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120   # <limits.h> exists even on freestanding compilers.
4121   # On the NeXT, cc -E runs the code through the compiler's parser,
4122   # not just through cpp. "Syntax error" is here to catch this case.
4123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125 #ifdef __STDC__
4126 # include <limits.h>
4127 #else
4128 # include <assert.h>
4129 #endif
4130                      Syntax error
4131 _ACEOF
4132 if ac_fn_c_try_cpp "$LINENO"; then :
4133
4134 else
4135   # Broken: fails on valid input.
4136 continue
4137 fi
4138 rm -f conftest.err conftest.i conftest.$ac_ext
4139
4140   # OK, works on sane cases.  Now check whether nonexistent headers
4141   # can be detected and how.
4142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h.  */
4144 #include <ac_nonexistent.h>
4145 _ACEOF
4146 if ac_fn_c_try_cpp "$LINENO"; then :
4147   # Broken: success on invalid input.
4148 continue
4149 else
4150   # Passes both tests.
4151 ac_preproc_ok=:
4152 break
4153 fi
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4155
4156 done
4157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4158 rm -f conftest.i conftest.err conftest.$ac_ext
4159 if $ac_preproc_ok; then :
4160   break
4161 fi
4162
4163     done
4164     ac_cv_prog_CPP=$CPP
4165
4166 fi
4167   CPP=$ac_cv_prog_CPP
4168 else
4169   ac_cv_prog_CPP=$CPP
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4172 $as_echo "$CPP" >&6; }
4173 ac_preproc_ok=false
4174 for ac_c_preproc_warn_flag in '' yes
4175 do
4176   # Use a header file that comes with gcc, so configuring glibc
4177   # with a fresh cross-compiler works.
4178   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179   # <limits.h> exists even on freestanding compilers.
4180   # On the NeXT, cc -E runs the code through the compiler's parser,
4181   # not just through cpp. "Syntax error" is here to catch this case.
4182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184 #ifdef __STDC__
4185 # include <limits.h>
4186 #else
4187 # include <assert.h>
4188 #endif
4189                      Syntax error
4190 _ACEOF
4191 if ac_fn_c_try_cpp "$LINENO"; then :
4192
4193 else
4194   # Broken: fails on valid input.
4195 continue
4196 fi
4197 rm -f conftest.err conftest.i conftest.$ac_ext
4198
4199   # OK, works on sane cases.  Now check whether nonexistent headers
4200   # can be detected and how.
4201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h.  */
4203 #include <ac_nonexistent.h>
4204 _ACEOF
4205 if ac_fn_c_try_cpp "$LINENO"; then :
4206   # Broken: success on invalid input.
4207 continue
4208 else
4209   # Passes both tests.
4210 ac_preproc_ok=:
4211 break
4212 fi
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4214
4215 done
4216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4217 rm -f conftest.i conftest.err conftest.$ac_ext
4218 if $ac_preproc_ok; then :
4219
4220 else
4221   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4223 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4224 See \`config.log' for more details" "$LINENO" 5 ; }
4225 fi
4226
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4236 if test "${ac_cv_path_GREP+set}" = set; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239   if test -z "$GREP"; then
4240   ac_path_GREP_found=false
4241   # Loop through the user's path and test for each of PROGNAME-LIST
4242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247     for ac_prog in grep ggrep; do
4248     for ac_exec_ext in '' $ac_executable_extensions; do
4249       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4250       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4251 # Check for GNU ac_path_GREP and select it if it is found.
4252   # Check for GNU $ac_path_GREP
4253 case `"$ac_path_GREP" --version 2>&1` in
4254 *GNU*)
4255   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4256 *)
4257   ac_count=0
4258   $as_echo_n 0123456789 >"conftest.in"
4259   while :
4260   do
4261     cat "conftest.in" "conftest.in" >"conftest.tmp"
4262     mv "conftest.tmp" "conftest.in"
4263     cp "conftest.in" "conftest.nl"
4264     $as_echo 'GREP' >> "conftest.nl"
4265     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267     as_fn_arith $ac_count + 1 && ac_count=$as_val
4268     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4269       # Best one so far, save it but keep looking for a better one
4270       ac_cv_path_GREP="$ac_path_GREP"
4271       ac_path_GREP_max=$ac_count
4272     fi
4273     # 10*(2^10) chars as input seems more than enough
4274     test $ac_count -gt 10 && break
4275   done
4276   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277 esac
4278
4279       $ac_path_GREP_found && break 3
4280     done
4281   done
4282   done
4283 IFS=$as_save_IFS
4284   if test -z "$ac_cv_path_GREP"; then
4285     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4286   fi
4287 else
4288   ac_cv_path_GREP=$GREP
4289 fi
4290
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4293 $as_echo "$ac_cv_path_GREP" >&6; }
4294  GREP="$ac_cv_path_GREP"
4295
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4298 $as_echo_n "checking for egrep... " >&6; }
4299 if test "${ac_cv_path_EGREP+set}" = set; then :
4300   $as_echo_n "(cached) " >&6
4301 else
4302   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303    then ac_cv_path_EGREP="$GREP -E"
4304    else
4305      if test -z "$EGREP"; then
4306   ac_path_EGREP_found=false
4307   # Loop through the user's path and test for each of PROGNAME-LIST
4308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313     for ac_prog in egrep; do
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317 # Check for GNU ac_path_EGREP and select it if it is found.
4318   # Check for GNU $ac_path_EGREP
4319 case `"$ac_path_EGREP" --version 2>&1` in
4320 *GNU*)
4321   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4322 *)
4323   ac_count=0
4324   $as_echo_n 0123456789 >"conftest.in"
4325   while :
4326   do
4327     cat "conftest.in" "conftest.in" >"conftest.tmp"
4328     mv "conftest.tmp" "conftest.in"
4329     cp "conftest.in" "conftest.nl"
4330     $as_echo 'EGREP' >> "conftest.nl"
4331     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333     as_fn_arith $ac_count + 1 && ac_count=$as_val
4334     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335       # Best one so far, save it but keep looking for a better one
4336       ac_cv_path_EGREP="$ac_path_EGREP"
4337       ac_path_EGREP_max=$ac_count
4338     fi
4339     # 10*(2^10) chars as input seems more than enough
4340     test $ac_count -gt 10 && break
4341   done
4342   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345       $ac_path_EGREP_found && break 3
4346     done
4347   done
4348   done
4349 IFS=$as_save_IFS
4350   if test -z "$ac_cv_path_EGREP"; then
4351     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352   fi
4353 else
4354   ac_cv_path_EGREP=$EGREP
4355 fi
4356
4357    fi
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4360 $as_echo "$ac_cv_path_EGREP" >&6; }
4361  EGREP="$ac_cv_path_EGREP"
4362
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4365 $as_echo_n "checking for ANSI C header files... " >&6; }
4366 if test "${ac_cv_header_stdc+set}" = set; then :
4367   $as_echo_n "(cached) " >&6
4368 else
4369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h.  */
4371 #include <stdlib.h>
4372 #include <stdarg.h>
4373 #include <string.h>
4374 #include <float.h>
4375
4376 int
4377 main ()
4378 {
4379
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 if ac_fn_c_try_compile "$LINENO"; then :
4385   ac_cv_header_stdc=yes
4386 else
4387   ac_cv_header_stdc=no
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390
4391 if test $ac_cv_header_stdc = yes; then
4392   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395 #include <string.h>
4396
4397 _ACEOF
4398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4399   $EGREP "memchr" >/dev/null 2>&1; then :
4400
4401 else
4402   ac_cv_header_stdc=no
4403 fi
4404 rm -f conftest*
4405
4406 fi
4407
4408 if test $ac_cv_header_stdc = yes; then
4409   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h.  */
4412 #include <stdlib.h>
4413
4414 _ACEOF
4415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416   $EGREP "free" >/dev/null 2>&1; then :
4417
4418 else
4419   ac_cv_header_stdc=no
4420 fi
4421 rm -f conftest*
4422
4423 fi
4424
4425 if test $ac_cv_header_stdc = yes; then
4426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4427   if test "$cross_compiling" = yes; then :
4428   :
4429 else
4430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432 #include <ctype.h>
4433 #include <stdlib.h>
4434 #if ((' ' & 0x0FF) == 0x020)
4435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4437 #else
4438 # define ISLOWER(c) \
4439                    (('a' <= (c) && (c) <= 'i') \
4440                      || ('j' <= (c) && (c) <= 'r') \
4441                      || ('s' <= (c) && (c) <= 'z'))
4442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4443 #endif
4444
4445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4446 int
4447 main ()
4448 {
4449   int i;
4450   for (i = 0; i < 256; i++)
4451     if (XOR (islower (i), ISLOWER (i))
4452         || toupper (i) != TOUPPER (i))
4453       return 2;
4454   return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_c_try_run "$LINENO"; then :
4458
4459 else
4460   ac_cv_header_stdc=no
4461 fi
4462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4463   conftest.$ac_objext conftest.beam conftest.$ac_ext
4464 fi
4465
4466 fi
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4469 $as_echo "$ac_cv_header_stdc" >&6; }
4470 if test $ac_cv_header_stdc = yes; then
4471
4472 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4473
4474 fi
4475
4476 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4477 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4478                   inttypes.h stdint.h unistd.h
4479 do :
4480   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4481 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4482 "
4483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4484   cat >>confdefs.h <<_ACEOF
4485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 _ACEOF
4487
4488 fi
4489
4490 done
4491
4492
4493
4494
4495
4496
4497
4498
4499 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4500         if test -n "$ac_tool_prefix"; then
4501   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4502 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   case $PKG_CONFIG in
4509   [\\/]* | ?:[\\/]*)
4510   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4511   ;;
4512   *)
4513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516   IFS=$as_save_IFS
4517   test -z "$as_dir" && as_dir=.
4518     for ac_exec_ext in '' $ac_executable_extensions; do
4519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522     break 2
4523   fi
4524 done
4525   done
4526 IFS=$as_save_IFS
4527
4528   ;;
4529 esac
4530 fi
4531 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4532 if test -n "$PKG_CONFIG"; then
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4534 $as_echo "$PKG_CONFIG" >&6; }
4535 else
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 fi
4539
4540
4541 fi
4542 if test -z "$ac_cv_path_PKG_CONFIG"; then
4543   ac_pt_PKG_CONFIG=$PKG_CONFIG
4544   # Extract the first word of "pkg-config", so it can be a program name with args.
4545 set dummy pkg-config; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   case $ac_pt_PKG_CONFIG in
4552   [\\/]* | ?:[\\/]*)
4553   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4554   ;;
4555   *)
4556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568   done
4569 IFS=$as_save_IFS
4570
4571   ;;
4572 esac
4573 fi
4574 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4575 if test -n "$ac_pt_PKG_CONFIG"; then
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4577 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4578 else
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582
4583   if test "x$ac_pt_PKG_CONFIG" = x; then
4584     PKG_CONFIG=""
4585   else
4586     case $cross_compiling:$ac_tool_warned in
4587 yes:)
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590 ac_tool_warned=yes ;;
4591 esac
4592     PKG_CONFIG=$ac_pt_PKG_CONFIG
4593   fi
4594 else
4595   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4596 fi
4597
4598 fi
4599 if test -n "$PKG_CONFIG"; then
4600         _pkg_min_version=0.9.0
4601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4602 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4603         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4604                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4605 $as_echo "yes" >&6; }
4606         else
4607                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609                 PKG_CONFIG=""
4610         fi
4611 fi
4612 # Make sure we can run config.sub.
4613 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4614   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4617 $as_echo_n "checking build system type... " >&6; }
4618 if test "${ac_cv_build+set}" = set; then :
4619   $as_echo_n "(cached) " >&6
4620 else
4621   ac_build_alias=$build_alias
4622 test "x$ac_build_alias" = x &&
4623   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4624 test "x$ac_build_alias" = x &&
4625   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4626 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4627   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4628
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4631 $as_echo "$ac_cv_build" >&6; }
4632 case $ac_cv_build in
4633 *-*-*) ;;
4634 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4635 esac
4636 build=$ac_cv_build
4637 ac_save_IFS=$IFS; IFS='-'
4638 set x $ac_cv_build
4639 shift
4640 build_cpu=$1
4641 build_vendor=$2
4642 shift; shift
4643 # Remember, the first character of IFS is used to create $*,
4644 # except with old shells:
4645 build_os=$*
4646 IFS=$ac_save_IFS
4647 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4651 $as_echo_n "checking host system type... " >&6; }
4652 if test "${ac_cv_host+set}" = set; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if test "x$host_alias" = x; then
4656   ac_cv_host=$ac_cv_build
4657 else
4658   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4659     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4660 fi
4661
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4664 $as_echo "$ac_cv_host" >&6; }
4665 case $ac_cv_host in
4666 *-*-*) ;;
4667 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4668 esac
4669 host=$ac_cv_host
4670 ac_save_IFS=$IFS; IFS='-'
4671 set x $ac_cv_host
4672 shift
4673 host_cpu=$1
4674 host_vendor=$2
4675 shift; shift
4676 # Remember, the first character of IFS is used to create $*,
4677 # except with old shells:
4678 host_os=$*
4679 IFS=$ac_save_IFS
4680 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4684 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4685 if test "${ac_cv_path_SED+set}" = set; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4689      for ac_i in 1 2 3 4 5 6 7; do
4690        ac_script="$ac_script$as_nl$ac_script"
4691      done
4692      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4693      { ac_script=; unset ac_script;}
4694      if test -z "$SED"; then
4695   ac_path_SED_found=false
4696   # Loop through the user's path and test for each of PROGNAME-LIST
4697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702     for ac_prog in sed gsed; do
4703     for ac_exec_ext in '' $ac_executable_extensions; do
4704       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4705       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4706 # Check for GNU ac_path_SED and select it if it is found.
4707   # Check for GNU $ac_path_SED
4708 case `"$ac_path_SED" --version 2>&1` in
4709 *GNU*)
4710   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4711 *)
4712   ac_count=0
4713   $as_echo_n 0123456789 >"conftest.in"
4714   while :
4715   do
4716     cat "conftest.in" "conftest.in" >"conftest.tmp"
4717     mv "conftest.tmp" "conftest.in"
4718     cp "conftest.in" "conftest.nl"
4719     $as_echo '' >> "conftest.nl"
4720     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722     as_fn_arith $ac_count + 1 && ac_count=$as_val
4723     if test $ac_count -gt ${ac_path_SED_max-0}; then
4724       # Best one so far, save it but keep looking for a better one
4725       ac_cv_path_SED="$ac_path_SED"
4726       ac_path_SED_max=$ac_count
4727     fi
4728     # 10*(2^10) chars as input seems more than enough
4729     test $ac_count -gt 10 && break
4730   done
4731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732 esac
4733
4734       $ac_path_SED_found && break 3
4735     done
4736   done
4737   done
4738 IFS=$as_save_IFS
4739   if test -z "$ac_cv_path_SED"; then
4740     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4741   fi
4742 else
4743   ac_cv_path_SED=$SED
4744 fi
4745
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4748 $as_echo "$ac_cv_path_SED" >&6; }
4749  SED="$ac_cv_path_SED"
4750   rm -f conftest.sed
4751
4752
4753
4754
4755
4756 if  test "x$GCC" = xyes ; then
4757     CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4758 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4759 -Wbad-function-cast -Wformat=2"
4760     case `$CC -dumpversion` in
4761     3.4.* | 4.*)
4762         CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4763         ;;
4764     esac
4765 else
4766     ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4767 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4768   SUNCC="yes"
4769 else
4770   SUNCC="no"
4771 fi
4772
4773     if test "x$SUNCC" = "xyes"; then
4774         CWARNFLAGS="-v"
4775     fi
4776 fi
4777
4778
4779
4780 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4781
4782
4783
4784 # Check whether --enable-strict-compilation was given.
4785 if test "${enable_strict_compilation+set}" = set; then :
4786   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4787 else
4788   STRICT_COMPILE=no
4789 fi
4790
4791 if test "x$STRICT_COMPILE" = "xyes"; then
4792         ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4793 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4794   SUNCC="yes"
4795 else
4796   SUNCC="no"
4797 fi
4798
4799         ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4800 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4801   INTELCC="yes"
4802 else
4803   INTELCC="no"
4804 fi
4805
4806         if test "x$GCC" = xyes ; then
4807                 STRICT_CFLAGS="-pedantic -Werror"
4808         elif test "x$SUNCC" = "xyes"; then
4809                 STRICT_CFLAGS="-errwarn"
4810     elif test "x$INTELCC" = "xyes"; then
4811                 STRICT_CFLAGS="-Werror"
4812         fi
4813 fi
4814 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4815
4816
4817
4818
4819 cat >>confdefs.h <<_ACEOF
4820 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4821 _ACEOF
4822
4823         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4824         if test "x$PVM" = "x"; then
4825                 PVM="0"
4826         fi
4827
4828 cat >>confdefs.h <<_ACEOF
4829 #define PACKAGE_VERSION_MINOR $PVM
4830 _ACEOF
4831
4832         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4833         if test "x$PVP" = "x"; then
4834                 PVP="0"
4835         fi
4836
4837 cat >>confdefs.h <<_ACEOF
4838 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4839 _ACEOF
4840
4841
4842
4843 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4844 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4845 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4846 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4847
4848
4849
4850
4851 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4852 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4853 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4854 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4855 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4856
4857
4858
4859
4860
4861
4862 if test x$APP_MAN_SUFFIX = x    ; then
4863     APP_MAN_SUFFIX=1
4864 fi
4865 if test x$APP_MAN_DIR = x    ; then
4866     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4867 fi
4868
4869 if test x$LIB_MAN_SUFFIX = x    ; then
4870     LIB_MAN_SUFFIX=3
4871 fi
4872 if test x$LIB_MAN_DIR = x    ; then
4873     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4874 fi
4875
4876 if test x$FILE_MAN_SUFFIX = x    ; then
4877     case $host_os in
4878         solaris*)       FILE_MAN_SUFFIX=4  ;;
4879         *)              FILE_MAN_SUFFIX=5  ;;
4880     esac
4881 fi
4882 if test x$FILE_MAN_DIR = x    ; then
4883     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4884 fi
4885
4886 if test x$MISC_MAN_SUFFIX = x    ; then
4887     case $host_os in
4888         solaris*)       MISC_MAN_SUFFIX=5  ;;
4889         *)              MISC_MAN_SUFFIX=7  ;;
4890     esac
4891 fi
4892 if test x$MISC_MAN_DIR = x    ; then
4893     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4894 fi
4895
4896 if test x$DRIVER_MAN_SUFFIX = x    ; then
4897     case $host_os in
4898         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
4899         *)              DRIVER_MAN_SUFFIX=4  ;;
4900     esac
4901 fi
4902 if test x$DRIVER_MAN_DIR = x    ; then
4903     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4904 fi
4905
4906 if test x$ADMIN_MAN_SUFFIX = x    ; then
4907     case $host_os in
4908         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
4909         *)              ADMIN_MAN_SUFFIX=8  ;;
4910     esac
4911 fi
4912 if test x$ADMIN_MAN_DIR = x    ; then
4913     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4914 fi
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930 XORG_MAN_PAGE="X Version 11"
4931
4932 MAN_SUBSTS="\
4933         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4934         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4935         -e 's|__xservername__|Xorg|g' \
4936         -e 's|__xconfigfile__|xorg.conf|g' \
4937         -e 's|__projectroot__|\$(prefix)|g' \
4938         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4939         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4940         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4941         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4942         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4943         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4944         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4945
4946
4947
4948 # Check whether --enable-silent-rules was given.
4949 if test "${enable_silent_rules+set}" = set; then :
4950   enableval=$enable_silent_rules;
4951 fi
4952
4953 case $enable_silent_rules in
4954 yes) AM_DEFAULT_VERBOSITY=0;;
4955 no)  AM_DEFAULT_VERBOSITY=1;;
4956 *)   AM_DEFAULT_VERBOSITY=0;;
4957 esac
4958 AM_BACKSLASH='\'
4959
4960
4961
4962 # Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
4963
4964
4965 # Initialize libtool
4966
4967 case `pwd` in
4968   *\ * | *\     *)
4969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4970 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4971 esac
4972
4973
4974
4975 macro_version='2.2.6b'
4976 macro_revision='1.3017'
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990 ltmain="$ac_aux_dir/ltmain.sh"
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4993 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4994 if test "${ac_cv_path_SED+set}" = set; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4998      for ac_i in 1 2 3 4 5 6 7; do
4999        ac_script="$ac_script$as_nl$ac_script"
5000      done
5001      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5002      { ac_script=; unset ac_script;}
5003      if test -z "$SED"; then
5004   ac_path_SED_found=false
5005   # Loop through the user's path and test for each of PROGNAME-LIST
5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011     for ac_prog in sed gsed; do
5012     for ac_exec_ext in '' $ac_executable_extensions; do
5013       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5014       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5015 # Check for GNU ac_path_SED and select it if it is found.
5016   # Check for GNU $ac_path_SED
5017 case `"$ac_path_SED" --version 2>&1` in
5018 *GNU*)
5019   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5020 *)
5021   ac_count=0
5022   $as_echo_n 0123456789 >"conftest.in"
5023   while :
5024   do
5025     cat "conftest.in" "conftest.in" >"conftest.tmp"
5026     mv "conftest.tmp" "conftest.in"
5027     cp "conftest.in" "conftest.nl"
5028     $as_echo '' >> "conftest.nl"
5029     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031     as_fn_arith $ac_count + 1 && ac_count=$as_val
5032     if test $ac_count -gt ${ac_path_SED_max-0}; then
5033       # Best one so far, save it but keep looking for a better one
5034       ac_cv_path_SED="$ac_path_SED"
5035       ac_path_SED_max=$ac_count
5036     fi
5037     # 10*(2^10) chars as input seems more than enough
5038     test $ac_count -gt 10 && break
5039   done
5040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 esac
5042
5043       $ac_path_SED_found && break 3
5044     done
5045   done
5046   done
5047 IFS=$as_save_IFS
5048   if test -z "$ac_cv_path_SED"; then
5049     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5050   fi
5051 else
5052   ac_cv_path_SED=$SED
5053 fi
5054
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5057 $as_echo "$ac_cv_path_SED" >&6; }
5058  SED="$ac_cv_path_SED"
5059   rm -f conftest.sed
5060
5061 test -z "$SED" && SED=sed
5062 Xsed="$SED -e 1s/^X//"
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075 $as_echo_n "checking for fgrep... " >&6; }
5076 if test "${ac_cv_path_FGREP+set}" = set; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5080    then ac_cv_path_FGREP="$GREP -F"
5081    else
5082      if test -z "$FGREP"; then
5083   ac_path_FGREP_found=false
5084   # Loop through the user's path and test for each of PROGNAME-LIST
5085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090     for ac_prog in fgrep; do
5091     for ac_exec_ext in '' $ac_executable_extensions; do
5092       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5093       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5094 # Check for GNU ac_path_FGREP and select it if it is found.
5095   # Check for GNU $ac_path_FGREP
5096 case `"$ac_path_FGREP" --version 2>&1` in
5097 *GNU*)
5098   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5099 *)
5100   ac_count=0
5101   $as_echo_n 0123456789 >"conftest.in"
5102   while :
5103   do
5104     cat "conftest.in" "conftest.in" >"conftest.tmp"
5105     mv "conftest.tmp" "conftest.in"
5106     cp "conftest.in" "conftest.nl"
5107     $as_echo 'FGREP' >> "conftest.nl"
5108     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110     as_fn_arith $ac_count + 1 && ac_count=$as_val
5111     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5112       # Best one so far, save it but keep looking for a better one
5113       ac_cv_path_FGREP="$ac_path_FGREP"
5114       ac_path_FGREP_max=$ac_count
5115     fi
5116     # 10*(2^10) chars as input seems more than enough
5117     test $ac_count -gt 10 && break
5118   done
5119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122       $ac_path_FGREP_found && break 3
5123     done
5124   done
5125   done
5126 IFS=$as_save_IFS
5127   if test -z "$ac_cv_path_FGREP"; then
5128     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5129   fi
5130 else
5131   ac_cv_path_FGREP=$FGREP
5132 fi
5133
5134    fi
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5137 $as_echo "$ac_cv_path_FGREP" >&6; }
5138  FGREP="$ac_cv_path_FGREP"
5139
5140
5141 test -z "$GREP" && GREP=grep
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 # Check whether --with-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then :
5163   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5164 else
5165   with_gnu_ld=no
5166 fi
5167
5168 ac_prog=ld
5169 if test "$GCC" = yes; then
5170   # Check if gcc -print-prog-name=ld gives a path.
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5172 $as_echo_n "checking for ld used by $CC... " >&6; }
5173   case $host in
5174   *-*-mingw*)
5175     # gcc leaves a trailing carriage return which upsets mingw
5176     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177   *)
5178     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179   esac
5180   case $ac_prog in
5181     # Accept absolute paths.
5182     [\\/]* | ?:[\\/]*)
5183       re_direlt='/[^/][^/]*/\.\./'
5184       # Canonicalize the pathname of ld
5185       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5186       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5187         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5188       done
5189       test -z "$LD" && LD="$ac_prog"
5190       ;;
5191   "")
5192     # If it fails, then pretend we aren't using GCC.
5193     ac_prog=ld
5194     ;;
5195   *)
5196     # If it is relative, then search for the first ld in PATH.
5197     with_gnu_ld=unknown
5198     ;;
5199   esac
5200 elif test "$with_gnu_ld" = yes; then
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5202 $as_echo_n "checking for GNU ld... " >&6; }
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5205 $as_echo_n "checking for non-GNU ld... " >&6; }
5206 fi
5207 if test "${lt_cv_path_LD+set}" = set; then :
5208   $as_echo_n "(cached) " >&6
5209 else
5210   if test -z "$LD"; then
5211   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5212   for ac_dir in $PATH; do
5213     IFS="$lt_save_ifs"
5214     test -z "$ac_dir" && ac_dir=.
5215     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216       lt_cv_path_LD="$ac_dir/$ac_prog"
5217       # Check to see if the program is GNU ld.  I'd rather use --version,
5218       # but apparently some variants of GNU ld only accept -v.
5219       # Break only if it was the GNU/non-GNU ld that we prefer.
5220       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5221       *GNU* | *'with BFD'*)
5222         test "$with_gnu_ld" != no && break
5223         ;;
5224       *)
5225         test "$with_gnu_ld" != yes && break
5226         ;;
5227       esac
5228     fi
5229   done
5230   IFS="$lt_save_ifs"
5231 else
5232   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5233 fi
5234 fi
5235
5236 LD="$lt_cv_path_LD"
5237 if test -n "$LD"; then
5238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5239 $as_echo "$LD" >&6; }
5240 else
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5247 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253   lt_cv_prog_gnu_ld=yes
5254   ;;
5255 *)
5256   lt_cv_prog_gnu_ld=no
5257   ;;
5258 esac
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5273 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5274 if test "${lt_cv_path_NM+set}" = set; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   if test -n "$NM"; then
5278   # Let the user override the test.
5279   lt_cv_path_NM="$NM"
5280 else
5281   lt_nm_to_check="${ac_tool_prefix}nm"
5282   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283     lt_nm_to_check="$lt_nm_to_check nm"
5284   fi
5285   for lt_tmp_nm in $lt_nm_to_check; do
5286     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288       IFS="$lt_save_ifs"
5289       test -z "$ac_dir" && ac_dir=.
5290       tmp_nm="$ac_dir/$lt_tmp_nm"
5291       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292         # Check to see if the nm accepts a BSD-compat flag.
5293         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294         #   nm: unknown option "B" ignored
5295         # Tru64's nm complains that /dev/null is an invalid object file
5296         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297         */dev/null* | *'Invalid file or object type'*)
5298           lt_cv_path_NM="$tmp_nm -B"
5299           break
5300           ;;
5301         *)
5302           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303           */dev/null*)
5304             lt_cv_path_NM="$tmp_nm -p"
5305             break
5306             ;;
5307           *)
5308             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309             continue # so that we can try to find one that supports BSD flags
5310             ;;
5311           esac
5312           ;;
5313         esac
5314       fi
5315     done
5316     IFS="$lt_save_ifs"
5317   done
5318   : ${lt_cv_path_NM=no}
5319 fi
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5322 $as_echo "$lt_cv_path_NM" >&6; }
5323 if test "$lt_cv_path_NM" != "no"; then
5324   NM="$lt_cv_path_NM"
5325 else
5326   # Didn't find any BSD compatible name lister, look for dumpbin.
5327   if test -n "$ac_tool_prefix"; then
5328   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5329   do
5330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   if test -n "$DUMPBIN"; then
5338   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     for ac_exec_ext in '' $ac_executable_extensions; do
5346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352   done
5353 IFS=$as_save_IFS
5354
5355 fi
5356 fi
5357 DUMPBIN=$ac_cv_prog_DUMPBIN
5358 if test -n "$DUMPBIN"; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5360 $as_echo "$DUMPBIN" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366
5367     test -n "$DUMPBIN" && break
5368   done
5369 fi
5370 if test -z "$DUMPBIN"; then
5371   ac_ct_DUMPBIN=$DUMPBIN
5372   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5373 do
5374   # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   if test -n "$ac_ct_DUMPBIN"; then
5382   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389     for ac_exec_ext in '' $ac_executable_extensions; do
5390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396   done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5402 if test -n "$ac_ct_DUMPBIN"; then
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5404 $as_echo "$ac_ct_DUMPBIN" >&6; }
5405 else
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411   test -n "$ac_ct_DUMPBIN" && break
5412 done
5413
5414   if test "x$ac_ct_DUMPBIN" = x; then
5415     DUMPBIN=":"
5416   else
5417     case $cross_compiling:$ac_tool_warned in
5418 yes:)
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5421 ac_tool_warned=yes ;;
5422 esac
5423     DUMPBIN=$ac_ct_DUMPBIN
5424   fi
5425 fi
5426
5427
5428   if test "$DUMPBIN" != ":"; then
5429     NM="$DUMPBIN"
5430   fi
5431 fi
5432 test -z "$NM" && NM=nm
5433
5434
5435
5436
5437
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5440 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5441 if test "${lt_cv_nm_interface+set}" = set; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   lt_cv_nm_interface="BSD nm"
5445   echo "int some_variable = 0;" > conftest.$ac_ext
5446   (eval echo "\"\$as_me:5446: $ac_compile\"" >&5)
5447   (eval "$ac_compile" 2>conftest.err)
5448   cat conftest.err >&5
5449   (eval echo "\"\$as_me:5449: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5450   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5451   cat conftest.err >&5
5452   (eval echo "\"\$as_me:5452: output\"" >&5)
5453   cat conftest.out >&5
5454   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5455     lt_cv_nm_interface="MS dumpbin"
5456   fi
5457   rm -f conftest*
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5460 $as_echo "$lt_cv_nm_interface" >&6; }
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5463 $as_echo_n "checking whether ln -s works... " >&6; }
5464 LN_S=$as_ln_s
5465 if test "$LN_S" = "ln -s"; then
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467 $as_echo "yes" >&6; }
5468 else
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5470 $as_echo "no, using $LN_S" >&6; }
5471 fi
5472
5473 # find the maximum length of command line arguments
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5475 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5476 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479     i=0
5480   teststring="ABCD"
5481
5482   case $build_os in
5483   msdosdjgpp*)
5484     # On DJGPP, this test can blow up pretty badly due to problems in libc
5485     # (any single argument exceeding 2000 bytes causes a buffer overrun
5486     # during glob expansion).  Even if it were fixed, the result of this
5487     # check would be larger than it should be.
5488     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5489     ;;
5490
5491   gnu*)
5492     # Under GNU Hurd, this test is not required because there is
5493     # no limit to the length of command line arguments.
5494     # Libtool will interpret -1 as no limit whatsoever
5495     lt_cv_sys_max_cmd_len=-1;
5496     ;;
5497
5498   cygwin* | mingw* | cegcc*)
5499     # On Win9x/ME, this test blows up -- it succeeds, but takes
5500     # about 5 minutes as the teststring grows exponentially.
5501     # Worse, since 9x/ME are not pre-emptively multitasking,
5502     # you end up with a "frozen" computer, even though with patience
5503     # the test eventually succeeds (with a max line length of 256k).
5504     # Instead, let's just punt: use the minimum linelength reported by
5505     # all of the supported platforms: 8192 (on NT/2K/XP).
5506     lt_cv_sys_max_cmd_len=8192;
5507     ;;
5508
5509   amigaos*)
5510     # On AmigaOS with pdksh, this test takes hours, literally.
5511     # So we just punt and use a minimum line length of 8192.
5512     lt_cv_sys_max_cmd_len=8192;
5513     ;;
5514
5515   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5516     # This has been around since 386BSD, at least.  Likely further.
5517     if test -x /sbin/sysctl; then
5518       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5519     elif test -x /usr/sbin/sysctl; then
5520       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5521     else
5522       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5523     fi
5524     # And add a safety zone
5525     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5526     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5527     ;;
5528
5529   interix*)
5530     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5531     lt_cv_sys_max_cmd_len=196608
5532     ;;
5533
5534   osf*)
5535     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5536     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5537     # nice to cause kernel panics so lets avoid the loop below.
5538     # First set a reasonable default.
5539     lt_cv_sys_max_cmd_len=16384
5540     #
5541     if test -x /sbin/sysconfig; then
5542       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5543         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5544       esac
5545     fi
5546     ;;
5547   sco3.2v5*)
5548     lt_cv_sys_max_cmd_len=102400
5549     ;;
5550   sysv5* | sco5v6* | sysv4.2uw2*)
5551     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5552     if test -n "$kargmax"; then
5553       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5554     else
5555       lt_cv_sys_max_cmd_len=32768
5556     fi
5557     ;;
5558   *)
5559     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5560     if test -n "$lt_cv_sys_max_cmd_len"; then
5561       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5562       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5563     else
5564       # Make teststring a little bigger before we do anything with it.
5565       # a 1K string should be a reasonable start.
5566       for i in 1 2 3 4 5 6 7 8 ; do
5567         teststring=$teststring$teststring
5568       done
5569       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5570       # If test is not a shell built-in, we'll probably end up computing a
5571       # maximum length that is only half of the actual maximum length, but
5572       # we can't tell.
5573       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5574                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5575               test $i != 17 # 1/2 MB should be enough
5576       do
5577         i=`expr $i + 1`
5578         teststring=$teststring$teststring
5579       done
5580       # Only check the string length outside the loop.
5581       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5582       teststring=
5583       # Add a significant safety factor because C++ compilers can tack on
5584       # massive amounts of additional arguments before passing them to the
5585       # linker.  It appears as though 1/2 is a usable value.
5586       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5587     fi
5588     ;;
5589   esac
5590
5591 fi
5592
5593 if test -n $lt_cv_sys_max_cmd_len ; then
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5595 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5596 else
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5598 $as_echo "none" >&6; }
5599 fi
5600 max_cmd_len=$lt_cv_sys_max_cmd_len
5601
5602
5603
5604
5605
5606
5607 : ${CP="cp -f"}
5608 : ${MV="mv -f"}
5609 : ${RM="rm -f"}
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5612 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5613 # Try some XSI features
5614 xsi_shell=no
5615 ( _lt_dummy="a/b/c"
5616   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5617       = c,a/b,, \
5618     && eval 'test $(( 1 + 1 )) -eq 2 \
5619     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5620   && xsi_shell=yes
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5622 $as_echo "$xsi_shell" >&6; }
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5626 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5627 lt_shell_append=no
5628 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5629     >/dev/null 2>&1 \
5630   && lt_shell_append=yes
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5632 $as_echo "$lt_shell_append" >&6; }
5633
5634
5635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5636   lt_unset=unset
5637 else
5638   lt_unset=false
5639 fi
5640
5641
5642
5643
5644
5645 # test EBCDIC or ASCII
5646 case `echo X|tr X '\101'` in
5647  A) # ASCII based system
5648     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5649   lt_SP2NL='tr \040 \012'
5650   lt_NL2SP='tr \015\012 \040\040'
5651   ;;
5652  *) # EBCDIC based system
5653   lt_SP2NL='tr \100 \n'
5654   lt_NL2SP='tr \r\n \100\100'
5655   ;;
5656 esac
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5667 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5668 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   lt_cv_ld_reload_flag='-r'
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5674 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5675 reload_flag=$lt_cv_ld_reload_flag
5676 case $reload_flag in
5677 "" | " "*) ;;
5678 *) reload_flag=" $reload_flag" ;;
5679 esac
5680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5681 case $host_os in
5682   darwin*)
5683     if test "$GCC" = yes; then
5684       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5685     else
5686       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687     fi
5688     ;;
5689 esac
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 if test -n "$ac_tool_prefix"; then
5700   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   if test -n "$OBJDUMP"; then
5708   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713   IFS=$as_save_IFS
5714   test -z "$as_dir" && as_dir=.
5715     for ac_exec_ext in '' $ac_executable_extensions; do
5716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719     break 2
5720   fi
5721 done
5722   done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 OBJDUMP=$ac_cv_prog_OBJDUMP
5728 if test -n "$OBJDUMP"; then
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5730 $as_echo "$OBJDUMP" >&6; }
5731 else
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 fi
5738 if test -z "$ac_cv_prog_OBJDUMP"; then
5739   ac_ct_OBJDUMP=$OBJDUMP
5740   # Extract the first word of "objdump", so it can be a program name with args.
5741 set dummy objdump; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5745   $as_echo_n "(cached) " >&6
5746 else
5747   if test -n "$ac_ct_OBJDUMP"; then
5748   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755     for ac_exec_ext in '' $ac_executable_extensions; do
5756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762   done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5768 if test -n "$ac_ct_OBJDUMP"; then
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5770 $as_echo "$ac_ct_OBJDUMP" >&6; }
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776   if test "x$ac_ct_OBJDUMP" = x; then
5777     OBJDUMP="false"
5778   else
5779     case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785     OBJDUMP=$ac_ct_OBJDUMP
5786   fi
5787 else
5788   OBJDUMP="$ac_cv_prog_OBJDUMP"
5789 fi
5790
5791 test -z "$OBJDUMP" && OBJDUMP=objdump
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5802 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5803 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   lt_cv_file_magic_cmd='$MAGIC_CMD'
5807 lt_cv_file_magic_test_file=
5808 lt_cv_deplibs_check_method='unknown'
5809 # Need to set the preceding variable on all platforms that support
5810 # interlibrary dependencies.
5811 # 'none' -- dependencies not supported.
5812 # `unknown' -- same as none, but documents that we really don't know.
5813 # 'pass_all' -- all dependencies passed with no checks.
5814 # 'test_compile' -- check by making test program.
5815 # 'file_magic [[regex]]' -- check by looking for files in library path
5816 # which responds to the $file_magic_cmd with a given extended regex.
5817 # If you have `file' or equivalent on your system and you're not sure
5818 # whether `pass_all' will *always* work, you probably want this one.
5819
5820 case $host_os in
5821 aix[4-9]*)
5822   lt_cv_deplibs_check_method=pass_all
5823   ;;
5824
5825 beos*)
5826   lt_cv_deplibs_check_method=pass_all
5827   ;;
5828
5829 bsdi[45]*)
5830   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5831   lt_cv_file_magic_cmd='/usr/bin/file -L'
5832   lt_cv_file_magic_test_file=/shlib/libc.so
5833   ;;
5834
5835 cygwin*)
5836   # func_win32_libid is a shell function defined in ltmain.sh
5837   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5838   lt_cv_file_magic_cmd='func_win32_libid'
5839   ;;
5840
5841 mingw* | pw32*)
5842   # Base MSYS/MinGW do not provide the 'file' command needed by
5843   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5844   # unless we find 'file', for example because we are cross-compiling.
5845   if ( file / ) >/dev/null 2>&1; then
5846     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5847     lt_cv_file_magic_cmd='func_win32_libid'
5848   else
5849     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5850     lt_cv_file_magic_cmd='$OBJDUMP -f'
5851   fi
5852   ;;
5853
5854 cegcc)
5855   # use the weaker test based on 'objdump'. See mingw*.
5856   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5857   lt_cv_file_magic_cmd='$OBJDUMP -f'
5858   ;;
5859
5860 darwin* | rhapsody*)
5861   lt_cv_deplibs_check_method=pass_all
5862   ;;
5863
5864 freebsd* | dragonfly*)
5865   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5866     case $host_cpu in
5867     i*86 )
5868       # Not sure whether the presence of OpenBSD here was a mistake.
5869       # Let's accept both of them until this is cleared up.
5870       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5871       lt_cv_file_magic_cmd=/usr/bin/file
5872       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5873       ;;
5874     esac
5875   else
5876     lt_cv_deplibs_check_method=pass_all
5877   fi
5878   ;;
5879
5880 gnu*)
5881   lt_cv_deplibs_check_method=pass_all
5882   ;;
5883
5884 hpux10.20* | hpux11*)
5885   lt_cv_file_magic_cmd=/usr/bin/file
5886   case $host_cpu in
5887   ia64*)
5888     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5889     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5890     ;;
5891   hppa*64*)
5892     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]'
5893     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5894     ;;
5895   *)
5896     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5897     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5898     ;;
5899   esac
5900   ;;
5901
5902 interix[3-9]*)
5903   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5904   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5905   ;;
5906
5907 irix5* | irix6* | nonstopux*)
5908   case $LD in
5909   *-32|*"-32 ") libmagic=32-bit;;
5910   *-n32|*"-n32 ") libmagic=N32;;
5911   *-64|*"-64 ") libmagic=64-bit;;
5912   *) libmagic=never-match;;
5913   esac
5914   lt_cv_deplibs_check_method=pass_all
5915   ;;
5916
5917 # This must be Linux ELF.
5918 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5919   lt_cv_deplibs_check_method=pass_all
5920   ;;
5921
5922 netbsd* | netbsdelf*-gnu)
5923   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5925   else
5926     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5927   fi
5928   ;;
5929
5930 newos6*)
5931   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5932   lt_cv_file_magic_cmd=/usr/bin/file
5933   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5934   ;;
5935
5936 *nto* | *qnx*)
5937   lt_cv_deplibs_check_method=pass_all
5938   ;;
5939
5940 openbsd*)
5941   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5943   else
5944     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5945   fi
5946   ;;
5947
5948 osf3* | osf4* | osf5*)
5949   lt_cv_deplibs_check_method=pass_all
5950   ;;
5951
5952 rdos*)
5953   lt_cv_deplibs_check_method=pass_all
5954   ;;
5955
5956 solaris*)
5957   lt_cv_deplibs_check_method=pass_all
5958   ;;
5959
5960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5961   lt_cv_deplibs_check_method=pass_all
5962   ;;
5963
5964 sysv4 | sysv4.3*)
5965   case $host_vendor in
5966   motorola)
5967     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]'
5968     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5969     ;;
5970   ncr)
5971     lt_cv_deplibs_check_method=pass_all
5972     ;;
5973   sequent)
5974     lt_cv_file_magic_cmd='/bin/file'
5975     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5976     ;;
5977   sni)
5978     lt_cv_file_magic_cmd='/bin/file'
5979     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5980     lt_cv_file_magic_test_file=/lib/libc.so
5981     ;;
5982   siemens)
5983     lt_cv_deplibs_check_method=pass_all
5984     ;;
5985   pc)
5986     lt_cv_deplibs_check_method=pass_all
5987     ;;
5988   esac
5989   ;;
5990
5991 tpf*)
5992   lt_cv_deplibs_check_method=pass_all
5993   ;;
5994 esac
5995
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5999 file_magic_cmd=$lt_cv_file_magic_cmd
6000 deplibs_check_method=$lt_cv_deplibs_check_method
6001 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014 if test -n "$ac_tool_prefix"; then
6015   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}ar; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_AR+set}" = set; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   if test -n "$AR"; then
6023   ac_cv_prog_AR="$AR" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030     for ac_exec_ext in '' $ac_executable_extensions; do
6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032     ac_cv_prog_AR="${ac_tool_prefix}ar"
6033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034     break 2
6035   fi
6036 done
6037   done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 AR=$ac_cv_prog_AR
6043 if test -n "$AR"; then
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6045 $as_echo "$AR" >&6; }
6046 else
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 fi
6053 if test -z "$ac_cv_prog_AR"; then
6054   ac_ct_AR=$AR
6055   # Extract the first word of "ar", so it can be a program name with args.
6056 set dummy ar; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   if test -n "$ac_ct_AR"; then
6063   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070     for ac_exec_ext in '' $ac_executable_extensions; do
6071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072     ac_cv_prog_ac_ct_AR="ar"
6073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077   done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6083 if test -n "$ac_ct_AR"; then
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6085 $as_echo "$ac_ct_AR" >&6; }
6086 else
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091   if test "x$ac_ct_AR" = x; then
6092     AR="false"
6093   else
6094     case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100     AR=$ac_ct_AR
6101   fi
6102 else
6103   AR="$ac_cv_prog_AR"
6104 fi
6105
6106 test -z "$AR" && AR=ar
6107 test -z "$AR_FLAGS" && AR_FLAGS=cru
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 if test -n "$ac_tool_prefix"; then
6120   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6121 set dummy ${ac_tool_prefix}strip; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if test "${ac_cv_prog_STRIP+set}" = set; then :
6125   $as_echo_n "(cached) " >&6
6126 else
6127   if test -n "$STRIP"; then
6128   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133   IFS=$as_save_IFS
6134   test -z "$as_dir" && as_dir=.
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6137     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139     break 2
6140   fi
6141 done
6142   done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 STRIP=$ac_cv_prog_STRIP
6148 if test -n "$STRIP"; then
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6150 $as_echo "$STRIP" >&6; }
6151 else
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156
6157 fi
6158 if test -z "$ac_cv_prog_STRIP"; then
6159   ac_ct_STRIP=$STRIP
6160   # Extract the first word of "strip", so it can be a program name with args.
6161 set dummy strip; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6165   $as_echo_n "(cached) " >&6
6166 else
6167   if test -n "$ac_ct_STRIP"; then
6168   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173   IFS=$as_save_IFS
6174   test -z "$as_dir" && as_dir=.
6175     for ac_exec_ext in '' $ac_executable_extensions; do
6176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177     ac_cv_prog_ac_ct_STRIP="strip"
6178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179     break 2
6180   fi
6181 done
6182   done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6188 if test -n "$ac_ct_STRIP"; then
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6190 $as_echo "$ac_ct_STRIP" >&6; }
6191 else
6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196   if test "x$ac_ct_STRIP" = x; then
6197     STRIP=":"
6198   else
6199     case $cross_compiling:$ac_tool_warned in
6200 yes:)
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6203 ac_tool_warned=yes ;;
6204 esac
6205     STRIP=$ac_ct_STRIP
6206   fi
6207 else
6208   STRIP="$ac_cv_prog_STRIP"
6209 fi
6210
6211 test -z "$STRIP" && STRIP=:
6212
6213
6214
6215
6216
6217
6218 if test -n "$ac_tool_prefix"; then
6219   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6224   $as_echo_n "(cached) " >&6
6225 else
6226   if test -n "$RANLIB"; then
6227   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234     for ac_exec_ext in '' $ac_executable_extensions; do
6235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238     break 2
6239   fi
6240 done
6241   done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 RANLIB=$ac_cv_prog_RANLIB
6247 if test -n "$RANLIB"; then
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6249 $as_echo "$RANLIB" >&6; }
6250 else
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255
6256 fi
6257 if test -z "$ac_cv_prog_RANLIB"; then
6258   ac_ct_RANLIB=$RANLIB
6259   # Extract the first word of "ranlib", so it can be a program name with args.
6260 set dummy ranlib; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   if test -n "$ac_ct_RANLIB"; then
6267   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274     for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_prog_ac_ct_RANLIB="ranlib"
6277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281   done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6287 if test -n "$ac_ct_RANLIB"; then
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6289 $as_echo "$ac_ct_RANLIB" >&6; }
6290 else
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6293 fi
6294
6295   if test "x$ac_ct_RANLIB" = x; then
6296     RANLIB=":"
6297   else
6298     case $cross_compiling:$ac_tool_warned in
6299 yes:)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6303 esac
6304     RANLIB=$ac_ct_RANLIB
6305   fi
6306 else
6307   RANLIB="$ac_cv_prog_RANLIB"
6308 fi
6309
6310 test -z "$RANLIB" && RANLIB=:
6311
6312
6313
6314
6315
6316
6317 # Determine commands to create old-style static archives.
6318 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6319 old_postinstall_cmds='chmod 644 $oldlib'
6320 old_postuninstall_cmds=
6321
6322 if test -n "$RANLIB"; then
6323   case $host_os in
6324   openbsd*)
6325     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6326     ;;
6327   *)
6328     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6329     ;;
6330   esac
6331   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6332 fi
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 # If no C compiler was specified, use CC.
6368 LTCC=${LTCC-"$CC"}
6369
6370 # If no C compiler flags were specified, use CFLAGS.
6371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6372
6373 # Allow CC to be a program name with arguments.
6374 compiler=$CC
6375
6376
6377 # Check for command to grab the raw symbol name followed by C symbol from nm.
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6379 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6380 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383
6384 # These are sane defaults that work on at least a few old systems.
6385 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6386
6387 # Character class describing NM global symbol codes.
6388 symcode='[BCDEGRST]'
6389
6390 # Regexp to match symbols that can be accessed directly from C.
6391 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6392
6393 # Define system-specific variables.
6394 case $host_os in
6395 aix*)
6396   symcode='[BCDT]'
6397   ;;
6398 cygwin* | mingw* | pw32* | cegcc*)
6399   symcode='[ABCDGISTW]'
6400   ;;
6401 hpux*)
6402   if test "$host_cpu" = ia64; then
6403     symcode='[ABCDEGRST]'
6404   fi
6405   ;;
6406 irix* | nonstopux*)
6407   symcode='[BCDEGRST]'
6408   ;;
6409 osf*)
6410   symcode='[BCDEGQRST]'
6411   ;;
6412 solaris*)
6413   symcode='[BDRT]'
6414   ;;
6415 sco3.2v5*)
6416   symcode='[DT]'
6417   ;;
6418 sysv4.2uw2*)
6419   symcode='[DT]'
6420   ;;
6421 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6422   symcode='[ABDT]'
6423   ;;
6424 sysv4)
6425   symcode='[DFNSTU]'
6426   ;;
6427 esac
6428
6429 # If we're using GNU nm, then use its standard symbol codes.
6430 case `$NM -V 2>&1` in
6431 *GNU* | *'with BFD'*)
6432   symcode='[ABCDGIRSTW]' ;;
6433 esac
6434
6435 # Transform an extracted symbol line into a proper C declaration.
6436 # Some systems (esp. on ia64) link data and code symbols differently,
6437 # so use this general approach.
6438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6439
6440 # Transform an extracted symbol line into symbol name and symbol address
6441 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6442 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'"
6443
6444 # Handle CRLF in mingw tool chain
6445 opt_cr=
6446 case $build_os in
6447 mingw*)
6448   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6449   ;;
6450 esac
6451
6452 # Try without a prefix underscore, then with it.
6453 for ac_symprfx in "" "_"; do
6454
6455   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6456   symxfrm="\\1 $ac_symprfx\\2 \\2"
6457
6458   # Write the raw and C identifiers.
6459   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6460     # Fake it for dumpbin and say T for any non-static function
6461     # and D for any global variable.
6462     # Also find C++ and __fastcall symbols from MSVC++,
6463     # which start with @ or ?.
6464     lt_cv_sys_global_symbol_pipe="$AWK '"\
6465 "     {last_section=section; section=\$ 3};"\
6466 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6467 "     \$ 0!~/External *\|/{next};"\
6468 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6469 "     {if(hide[section]) next};"\
6470 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6471 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6472 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6473 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6474 "     ' prfx=^$ac_symprfx"
6475   else
6476     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6477   fi
6478
6479   # Check to see that the pipe works correctly.
6480   pipe_works=no
6481
6482   rm -f conftest*
6483   cat > conftest.$ac_ext <<_LT_EOF
6484 #ifdef __cplusplus
6485 extern "C" {
6486 #endif
6487 char nm_test_var;
6488 void nm_test_func(void);
6489 void nm_test_func(void){}
6490 #ifdef __cplusplus
6491 }
6492 #endif
6493 int main(){nm_test_var='a';nm_test_func();return(0);}
6494 _LT_EOF
6495
6496   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6497   (eval $ac_compile) 2>&5
6498   ac_status=$?
6499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500   test $ac_status = 0; }; then
6501     # Now try to grab the symbols.
6502     nlist=conftest.nm
6503     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6504   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6505   ac_status=$?
6506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507   test $ac_status = 0; } && test -s "$nlist"; then
6508       # Try sorting and uniquifying the output.
6509       if sort "$nlist" | uniq > "$nlist"T; then
6510         mv -f "$nlist"T "$nlist"
6511       else
6512         rm -f "$nlist"T
6513       fi
6514
6515       # Make sure that we snagged all the symbols we need.
6516       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6517         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6518           cat <<_LT_EOF > conftest.$ac_ext
6519 #ifdef __cplusplus
6520 extern "C" {
6521 #endif
6522
6523 _LT_EOF
6524           # Now generate the symbol file.
6525           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6526
6527           cat <<_LT_EOF >> conftest.$ac_ext
6528
6529 /* The mapping between symbol names and symbols.  */
6530 const struct {
6531   const char *name;
6532   void       *address;
6533 }
6534 lt__PROGRAM__LTX_preloaded_symbols[] =
6535 {
6536   { "@PROGRAM@", (void *) 0 },
6537 _LT_EOF
6538           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6539           cat <<\_LT_EOF >> conftest.$ac_ext
6540   {0, (void *) 0}
6541 };
6542
6543 /* This works around a problem in FreeBSD linker */
6544 #ifdef FREEBSD_WORKAROUND
6545 static const void *lt_preloaded_setup() {
6546   return lt__PROGRAM__LTX_preloaded_symbols;
6547 }
6548 #endif
6549
6550 #ifdef __cplusplus
6551 }
6552 #endif
6553 _LT_EOF
6554           # Now try linking the two files.
6555           mv conftest.$ac_objext conftstm.$ac_objext
6556           lt_save_LIBS="$LIBS"
6557           lt_save_CFLAGS="$CFLAGS"
6558           LIBS="conftstm.$ac_objext"
6559           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6560           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6561   (eval $ac_link) 2>&5
6562   ac_status=$?
6563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6565             pipe_works=yes
6566           fi
6567           LIBS="$lt_save_LIBS"
6568           CFLAGS="$lt_save_CFLAGS"
6569         else
6570           echo "cannot find nm_test_func in $nlist" >&5
6571         fi
6572       else
6573         echo "cannot find nm_test_var in $nlist" >&5
6574       fi
6575     else
6576       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6577     fi
6578   else
6579     echo "$progname: failed program was:" >&5
6580     cat conftest.$ac_ext >&5
6581   fi
6582   rm -rf conftest* conftst*
6583
6584   # Do not use the global_symbol_pipe unless it works.
6585   if test "$pipe_works" = yes; then
6586     break
6587   else
6588     lt_cv_sys_global_symbol_pipe=
6589   fi
6590 done
6591
6592 fi
6593
6594 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6595   lt_cv_sys_global_symbol_to_cdecl=
6596 fi
6597 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6599 $as_echo "failed" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6602 $as_echo "ok" >&6; }
6603 fi
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 # Check whether --enable-libtool-lock was given.
6627 if test "${enable_libtool_lock+set}" = set; then :
6628   enableval=$enable_libtool_lock;
6629 fi
6630
6631 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6632
6633 # Some flags need to be propagated to the compiler or linker for good
6634 # libtool support.
6635 case $host in
6636 ia64-*-hpux*)
6637   # Find out which ABI we are using.
6638   echo 'int i;' > conftest.$ac_ext
6639   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640   (eval $ac_compile) 2>&5
6641   ac_status=$?
6642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643   test $ac_status = 0; }; then
6644     case `/usr/bin/file conftest.$ac_objext` in
6645       *ELF-32*)
6646         HPUX_IA64_MODE="32"
6647         ;;
6648       *ELF-64*)
6649         HPUX_IA64_MODE="64"
6650         ;;
6651     esac
6652   fi
6653   rm -rf conftest*
6654   ;;
6655 *-*-irix6*)
6656   # Find out which ABI we are using.
6657   echo '#line 6657 "configure"' > conftest.$ac_ext
6658   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6659   (eval $ac_compile) 2>&5
6660   ac_status=$?
6661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662   test $ac_status = 0; }; then
6663     if test "$lt_cv_prog_gnu_ld" = yes; then
6664       case `/usr/bin/file conftest.$ac_objext` in
6665         *32-bit*)
6666           LD="${LD-ld} -melf32bsmip"
6667           ;;
6668         *N32*)
6669           LD="${LD-ld} -melf32bmipn32"
6670           ;;
6671         *64-bit*)
6672           LD="${LD-ld} -melf64bmip"
6673         ;;
6674       esac
6675     else
6676       case `/usr/bin/file conftest.$ac_objext` in
6677         *32-bit*)
6678           LD="${LD-ld} -32"
6679           ;;
6680         *N32*)
6681           LD="${LD-ld} -n32"
6682           ;;
6683         *64-bit*)
6684           LD="${LD-ld} -64"
6685           ;;
6686       esac
6687     fi
6688   fi
6689   rm -rf conftest*
6690   ;;
6691
6692 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6693 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6694   # Find out which ABI we are using.
6695   echo 'int i;' > conftest.$ac_ext
6696   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6697   (eval $ac_compile) 2>&5
6698   ac_status=$?
6699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700   test $ac_status = 0; }; then
6701     case `/usr/bin/file conftest.o` in
6702       *32-bit*)
6703         case $host in
6704           x86_64-*kfreebsd*-gnu)
6705             LD="${LD-ld} -m elf_i386_fbsd"
6706             ;;
6707           x86_64-*linux*)
6708             LD="${LD-ld} -m elf_i386"
6709             ;;
6710           ppc64-*linux*|powerpc64-*linux*)
6711             LD="${LD-ld} -m elf32ppclinux"
6712             ;;
6713           s390x-*linux*)
6714             LD="${LD-ld} -m elf_s390"
6715             ;;
6716           sparc64-*linux*)
6717             LD="${LD-ld} -m elf32_sparc"
6718             ;;
6719         esac
6720         ;;
6721       *64-bit*)
6722         case $host in
6723           x86_64-*kfreebsd*-gnu)
6724             LD="${LD-ld} -m elf_x86_64_fbsd"
6725             ;;
6726           x86_64-*linux*)
6727             LD="${LD-ld} -m elf_x86_64"
6728             ;;
6729           ppc*-*linux*|powerpc*-*linux*)
6730             LD="${LD-ld} -m elf64ppc"
6731             ;;
6732           s390*-*linux*|s390*-*tpf*)
6733             LD="${LD-ld} -m elf64_s390"
6734             ;;
6735           sparc*-*linux*)
6736             LD="${LD-ld} -m elf64_sparc"
6737             ;;
6738         esac
6739         ;;
6740     esac
6741   fi
6742   rm -rf conftest*
6743   ;;
6744
6745 *-*-sco3.2v5*)
6746   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6747   SAVE_CFLAGS="$CFLAGS"
6748   CFLAGS="$CFLAGS -belf"
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6750 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6751 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   ac_ext=c
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759
6760      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h.  */
6762
6763 int
6764 main ()
6765 {
6766
6767   ;
6768   return 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_link "$LINENO"; then :
6772   lt_cv_cc_needs_belf=yes
6773 else
6774   lt_cv_cc_needs_belf=no
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext \
6777     conftest$ac_exeext conftest.$ac_ext
6778      ac_ext=c
6779 ac_cpp='$CPP $CPPFLAGS'
6780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6783
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6786 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6787   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6788     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6789     CFLAGS="$SAVE_CFLAGS"
6790   fi
6791   ;;
6792 sparc*-*solaris*)
6793   # Find out which ABI we are using.
6794   echo 'int i;' > conftest.$ac_ext
6795   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6796   (eval $ac_compile) 2>&5
6797   ac_status=$?
6798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799   test $ac_status = 0; }; then
6800     case `/usr/bin/file conftest.o` in
6801     *64-bit*)
6802       case $lt_cv_prog_gnu_ld in
6803       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6804       *)
6805         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6806           LD="${LD-ld} -64"
6807         fi
6808         ;;
6809       esac
6810       ;;
6811     esac
6812   fi
6813   rm -rf conftest*
6814   ;;
6815 esac
6816
6817 need_locks="$enable_libtool_lock"
6818
6819
6820   case $host_os in
6821     rhapsody* | darwin*)
6822     if test -n "$ac_tool_prefix"; then
6823   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$DSYMUTIL"; then
6831   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6851 if test -n "$DSYMUTIL"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6853 $as_echo "$DSYMUTIL" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_DSYMUTIL"; then
6862   ac_ct_DSYMUTIL=$DSYMUTIL
6863   # Extract the first word of "dsymutil", so it can be a program name with args.
6864 set dummy dsymutil; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   if test -n "$ac_ct_DSYMUTIL"; then
6871   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878     for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885   done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6891 if test -n "$ac_ct_DSYMUTIL"; then
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6893 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6894 else
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899   if test "x$ac_ct_DSYMUTIL" = x; then
6900     DSYMUTIL=":"
6901   else
6902     case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908     DSYMUTIL=$ac_ct_DSYMUTIL
6909   fi
6910 else
6911   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6912 fi
6913
6914     if test -n "$ac_tool_prefix"; then
6915   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   if test -n "$NMEDIT"; then
6923   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930     for ac_exec_ext in '' $ac_executable_extensions; do
6931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937   done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 NMEDIT=$ac_cv_prog_NMEDIT
6943 if test -n "$NMEDIT"; then
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6945 $as_echo "$NMEDIT" >&6; }
6946 else
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 fi
6953 if test -z "$ac_cv_prog_NMEDIT"; then
6954   ac_ct_NMEDIT=$NMEDIT
6955   # Extract the first word of "nmedit", so it can be a program name with args.
6956 set dummy nmedit; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962   if test -n "$ac_ct_NMEDIT"; then
6963   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968   IFS=$as_save_IFS
6969   test -z "$as_dir" && as_dir=.
6970     for ac_exec_ext in '' $ac_executable_extensions; do
6971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974     break 2
6975   fi
6976 done
6977   done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6983 if test -n "$ac_ct_NMEDIT"; then
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6985 $as_echo "$ac_ct_NMEDIT" >&6; }
6986 else
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991   if test "x$ac_ct_NMEDIT" = x; then
6992     NMEDIT=":"
6993   else
6994     case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000     NMEDIT=$ac_ct_NMEDIT
7001   fi
7002 else
7003   NMEDIT="$ac_cv_prog_NMEDIT"
7004 fi
7005
7006     if test -n "$ac_tool_prefix"; then
7007   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_LIPO+set}" = set; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   if test -n "$LIPO"; then
7015   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 LIPO=$ac_cv_prog_LIPO
7035 if test -n "$LIPO"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7037 $as_echo "$LIPO" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043
7044 fi
7045 if test -z "$ac_cv_prog_LIPO"; then
7046   ac_ct_LIPO=$LIPO
7047   # Extract the first word of "lipo", so it can be a program name with args.
7048 set dummy lipo; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   if test -n "$ac_ct_LIPO"; then
7055   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062     for ac_exec_ext in '' $ac_executable_extensions; do
7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064     ac_cv_prog_ac_ct_LIPO="lipo"
7065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069   done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7075 if test -n "$ac_ct_LIPO"; then
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7077 $as_echo "$ac_ct_LIPO" >&6; }
7078 else
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083   if test "x$ac_ct_LIPO" = x; then
7084     LIPO=":"
7085   else
7086     case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7091 esac
7092     LIPO=$ac_ct_LIPO
7093   fi
7094 else
7095   LIPO="$ac_cv_prog_LIPO"
7096 fi
7097
7098     if test -n "$ac_tool_prefix"; then
7099   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}otool; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   if test -n "$OTOOL"; then
7107   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114     for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121   done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 OTOOL=$ac_cv_prog_OTOOL
7127 if test -n "$OTOOL"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7129 $as_echo "$OTOOL" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135
7136 fi
7137 if test -z "$ac_cv_prog_OTOOL"; then
7138   ac_ct_OTOOL=$OTOOL
7139   # Extract the first word of "otool", so it can be a program name with args.
7140 set dummy otool; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7144   $as_echo_n "(cached) " >&6
7145 else
7146   if test -n "$ac_ct_OTOOL"; then
7147   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152   IFS=$as_save_IFS
7153   test -z "$as_dir" && as_dir=.
7154     for ac_exec_ext in '' $ac_executable_extensions; do
7155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156     ac_cv_prog_ac_ct_OTOOL="otool"
7157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158     break 2
7159   fi
7160 done
7161   done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7167 if test -n "$ac_ct_OTOOL"; then
7168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7169 $as_echo "$ac_ct_OTOOL" >&6; }
7170 else
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175   if test "x$ac_ct_OTOOL" = x; then
7176     OTOOL=":"
7177   else
7178     case $cross_compiling:$ac_tool_warned in
7179 yes:)
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184     OTOOL=$ac_ct_OTOOL
7185   fi
7186 else
7187   OTOOL="$ac_cv_prog_OTOOL"
7188 fi
7189
7190     if test -n "$ac_tool_prefix"; then
7191   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$OTOOL64"; then
7199   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 OTOOL64=$ac_cv_prog_OTOOL64
7219 if test -n "$OTOOL64"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7221 $as_echo "$OTOOL64" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227
7228 fi
7229 if test -z "$ac_cv_prog_OTOOL64"; then
7230   ac_ct_OTOOL64=$OTOOL64
7231   # Extract the first word of "otool64", so it can be a program name with args.
7232 set dummy otool64; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7236   $as_echo_n "(cached) " >&6
7237 else
7238   if test -n "$ac_ct_OTOOL64"; then
7239   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246     for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_prog_ac_ct_OTOOL64="otool64"
7249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253   done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7259 if test -n "$ac_ct_OTOOL64"; then
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7261 $as_echo "$ac_ct_OTOOL64" >&6; }
7262 else
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267   if test "x$ac_ct_OTOOL64" = x; then
7268     OTOOL64=":"
7269   else
7270     case $cross_compiling:$ac_tool_warned in
7271 yes:)
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7275 esac
7276     OTOOL64=$ac_ct_OTOOL64
7277   fi
7278 else
7279   OTOOL64="$ac_cv_prog_OTOOL64"
7280 fi
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7309 $as_echo_n "checking for -single_module linker flag... " >&6; }
7310 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7311   $as_echo_n "(cached) " >&6
7312 else
7313   lt_cv_apple_cc_single_mod=no
7314       if test -z "${LT_MULTI_MODULE}"; then
7315         # By default we will add the -single_module flag. You can override
7316         # by either setting the environment variable LT_MULTI_MODULE
7317         # non-empty at configure time, or by adding -multi_module to the
7318         # link flags.
7319         rm -rf libconftest.dylib*
7320         echo "int foo(void){return 1;}" > conftest.c
7321         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7322 -dynamiclib -Wl,-single_module conftest.c" >&5
7323         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7324           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7325         _lt_result=$?
7326         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7327           lt_cv_apple_cc_single_mod=yes
7328         else
7329           cat conftest.err >&5
7330         fi
7331         rm -rf libconftest.dylib*
7332         rm -f conftest.*
7333       fi
7334 fi
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7336 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7338 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7339 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   lt_cv_ld_exported_symbols_list=no
7343       save_LDFLAGS=$LDFLAGS
7344       echo "_main" > conftest.sym
7345       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7346       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h.  */
7348
7349 int
7350 main ()
7351 {
7352
7353   ;
7354   return 0;
7355 }
7356 _ACEOF
7357 if ac_fn_c_try_link "$LINENO"; then :
7358   lt_cv_ld_exported_symbols_list=yes
7359 else
7360   lt_cv_ld_exported_symbols_list=no
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext \
7363     conftest$ac_exeext conftest.$ac_ext
7364         LDFLAGS="$save_LDFLAGS"
7365
7366 fi
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7368 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7369     case $host_os in
7370     rhapsody* | darwin1.[012])
7371       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7372     darwin1.*)
7373       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7374     darwin*) # darwin 5.x on
7375       # if running on 10.5 or later, the deployment target defaults
7376       # to the OS version, if on x86, and 10.4, the deployment
7377       # target defaults to 10.4. Don't you love it?
7378       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7379         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7380           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7381         10.[012]*)
7382           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7383         10.*)
7384           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7385       esac
7386     ;;
7387   esac
7388     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7389       _lt_dar_single_mod='$single_module'
7390     fi
7391     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7392       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7393     else
7394       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7395     fi
7396     if test "$DSYMUTIL" != ":"; then
7397       _lt_dsymutil='~$DSYMUTIL $lib || :'
7398     else
7399       _lt_dsymutil=
7400     fi
7401     ;;
7402   esac
7403
7404 for ac_header in dlfcn.h
7405 do :
7406   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7407 "
7408 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7409   cat >>confdefs.h <<_ACEOF
7410 #define HAVE_DLFCN_H 1
7411 _ACEOF
7412
7413 fi
7414
7415 done
7416
7417
7418
7419 # Set options
7420 # Check whether --enable-static was given.
7421 if test "${enable_static+set}" = set; then :
7422   enableval=$enable_static; p=${PACKAGE-default}
7423     case $enableval in
7424     yes) enable_static=yes ;;
7425     no) enable_static=no ;;
7426     *)
7427      enable_static=no
7428       # Look at the argument we got.  We use all the common list separators.
7429       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7430       for pkg in $enableval; do
7431         IFS="$lt_save_ifs"
7432         if test "X$pkg" = "X$p"; then
7433           enable_static=yes
7434         fi
7435       done
7436       IFS="$lt_save_ifs"
7437       ;;
7438     esac
7439 else
7440   enable_static=no
7441 fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452         enable_dlopen=no
7453
7454
7455   enable_win32_dll=no
7456
7457
7458             # Check whether --enable-shared was given.
7459 if test "${enable_shared+set}" = set; then :
7460   enableval=$enable_shared; p=${PACKAGE-default}
7461     case $enableval in
7462     yes) enable_shared=yes ;;
7463     no) enable_shared=no ;;
7464     *)
7465       enable_shared=no
7466       # Look at the argument we got.  We use all the common list separators.
7467       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7468       for pkg in $enableval; do
7469         IFS="$lt_save_ifs"
7470         if test "X$pkg" = "X$p"; then
7471           enable_shared=yes
7472         fi
7473       done
7474       IFS="$lt_save_ifs"
7475       ;;
7476     esac
7477 else
7478   enable_shared=yes
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491 # Check whether --with-pic was given.
7492 if test "${with_pic+set}" = set; then :
7493   withval=$with_pic; pic_mode="$withval"
7494 else
7495   pic_mode=default
7496 fi
7497
7498
7499 test -z "$pic_mode" && pic_mode=default
7500
7501
7502
7503
7504
7505
7506
7507   # Check whether --enable-fast-install was given.
7508 if test "${enable_fast_install+set}" = set; then :
7509   enableval=$enable_fast_install; p=${PACKAGE-default}
7510     case $enableval in
7511     yes) enable_fast_install=yes ;;
7512     no) enable_fast_install=no ;;
7513     *)
7514       enable_fast_install=no
7515       # Look at the argument we got.  We use all the common list separators.
7516       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7517       for pkg in $enableval; do
7518         IFS="$lt_save_ifs"
7519         if test "X$pkg" = "X$p"; then
7520           enable_fast_install=yes
7521         fi
7522       done
7523       IFS="$lt_save_ifs"
7524       ;;
7525     esac
7526 else
7527   enable_fast_install=yes
7528 fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 # This can be used to rebuild libtool when needed
7541 LIBTOOL_DEPS="$ltmain"
7542
7543 # Always use our own libtool.
7544 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570 test -z "$LN_S" && LN_S="ln -s"
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585 if test -n "${ZSH_VERSION+set}" ; then
7586    setopt NO_GLOB_SUBST
7587 fi
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7590 $as_echo_n "checking for objdir... " >&6; }
7591 if test "${lt_cv_objdir+set}" = set; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   rm -f .libs 2>/dev/null
7595 mkdir .libs 2>/dev/null
7596 if test -d .libs; then
7597   lt_cv_objdir=.libs
7598 else
7599   # MS-DOS does not allow filenames that begin with a dot.
7600   lt_cv_objdir=_libs
7601 fi
7602 rmdir .libs 2>/dev/null
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7605 $as_echo "$lt_cv_objdir" >&6; }
7606 objdir=$lt_cv_objdir
7607
7608
7609
7610
7611
7612 cat >>confdefs.h <<_ACEOF
7613 #define LT_OBJDIR "$lt_cv_objdir/"
7614 _ACEOF
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632 case $host_os in
7633 aix3*)
7634   # AIX sometimes has problems with the GCC collect2 program.  For some
7635   # reason, if we set the COLLECT_NAMES environment variable, the problems
7636   # vanish in a puff of smoke.
7637   if test "X${COLLECT_NAMES+set}" != Xset; then
7638     COLLECT_NAMES=
7639     export COLLECT_NAMES
7640   fi
7641   ;;
7642 esac
7643
7644 # Sed substitution that helps us do robust quoting.  It backslashifies
7645 # metacharacters that are still active within double-quoted strings.
7646 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7647
7648 # Same as above, but do not quote variable references.
7649 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7650
7651 # Sed substitution to delay expansion of an escaped shell variable in a
7652 # double_quote_subst'ed string.
7653 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7654
7655 # Sed substitution to delay expansion of an escaped single quote.
7656 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7657
7658 # Sed substitution to avoid accidental globbing in evaled expressions
7659 no_glob_subst='s/\*/\\\*/g'
7660
7661 # Global variables:
7662 ofile=libtool
7663 can_build_shared=yes
7664
7665 # All known linkers require a `.a' archive for static linking (except MSVC,
7666 # which needs '.lib').
7667 libext=a
7668
7669 with_gnu_ld="$lt_cv_prog_gnu_ld"
7670
7671 old_CC="$CC"
7672 old_CFLAGS="$CFLAGS"
7673
7674 # Set sane defaults for various variables
7675 test -z "$CC" && CC=cc
7676 test -z "$LTCC" && LTCC=$CC
7677 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7678 test -z "$LD" && LD=ld
7679 test -z "$ac_objext" && ac_objext=o
7680
7681 for cc_temp in $compiler""; do
7682   case $cc_temp in
7683     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7684     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7685     \-*) ;;
7686     *) break;;
7687   esac
7688 done
7689 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7690
7691
7692 # Only perform the check for file, if the check method requires it
7693 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7694 case $deplibs_check_method in
7695 file_magic*)
7696   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7698 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7700   $as_echo_n "(cached) " >&6
7701 else
7702   case $MAGIC_CMD in
7703 [\\/*] |  ?:[\\/]*)
7704   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7705   ;;
7706 *)
7707   lt_save_MAGIC_CMD="$MAGIC_CMD"
7708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7709   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7710   for ac_dir in $ac_dummy; do
7711     IFS="$lt_save_ifs"
7712     test -z "$ac_dir" && ac_dir=.
7713     if test -f $ac_dir/${ac_tool_prefix}file; then
7714       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7715       if test -n "$file_magic_test_file"; then
7716         case $deplibs_check_method in
7717         "file_magic "*)
7718           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7719           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7721             $EGREP "$file_magic_regex" > /dev/null; then
7722             :
7723           else
7724             cat <<_LT_EOF 1>&2
7725
7726 *** Warning: the command libtool uses to detect shared libraries,
7727 *** $file_magic_cmd, produces output that libtool cannot recognize.
7728 *** The result is that libtool may fail to recognize shared libraries
7729 *** as such.  This will affect the creation of libtool libraries that
7730 *** depend on shared libraries, but programs linked with such libtool
7731 *** libraries will work regardless of this problem.  Nevertheless, you
7732 *** may want to report the problem to your system manager and/or to
7733 *** bug-libtool@gnu.org
7734
7735 _LT_EOF
7736           fi ;;
7737         esac
7738       fi
7739       break
7740     fi
7741   done
7742   IFS="$lt_save_ifs"
7743   MAGIC_CMD="$lt_save_MAGIC_CMD"
7744   ;;
7745 esac
7746 fi
7747
7748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749 if test -n "$MAGIC_CMD"; then
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7751 $as_echo "$MAGIC_CMD" >&6; }
7752 else
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758
7759
7760
7761 if test -z "$lt_cv_path_MAGIC_CMD"; then
7762   if test -n "$ac_tool_prefix"; then
7763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7764 $as_echo_n "checking for file... " >&6; }
7765 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   case $MAGIC_CMD in
7769 [\\/*] |  ?:[\\/]*)
7770   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7771   ;;
7772 *)
7773   lt_save_MAGIC_CMD="$MAGIC_CMD"
7774   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7775   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7776   for ac_dir in $ac_dummy; do
7777     IFS="$lt_save_ifs"
7778     test -z "$ac_dir" && ac_dir=.
7779     if test -f $ac_dir/file; then
7780       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7781       if test -n "$file_magic_test_file"; then
7782         case $deplibs_check_method in
7783         "file_magic "*)
7784           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7785           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7787             $EGREP "$file_magic_regex" > /dev/null; then
7788             :
7789           else
7790             cat <<_LT_EOF 1>&2
7791
7792 *** Warning: the command libtool uses to detect shared libraries,
7793 *** $file_magic_cmd, produces output that libtool cannot recognize.
7794 *** The result is that libtool may fail to recognize shared libraries
7795 *** as such.  This will affect the creation of libtool libraries that
7796 *** depend on shared libraries, but programs linked with such libtool
7797 *** libraries will work regardless of this problem.  Nevertheless, you
7798 *** may want to report the problem to your system manager and/or to
7799 *** bug-libtool@gnu.org
7800
7801 _LT_EOF
7802           fi ;;
7803         esac
7804       fi
7805       break
7806     fi
7807   done
7808   IFS="$lt_save_ifs"
7809   MAGIC_CMD="$lt_save_MAGIC_CMD"
7810   ;;
7811 esac
7812 fi
7813
7814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7815 if test -n "$MAGIC_CMD"; then
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7817 $as_echo "$MAGIC_CMD" >&6; }
7818 else
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823
7824   else
7825     MAGIC_CMD=:
7826   fi
7827 fi
7828
7829   fi
7830   ;;
7831 esac
7832
7833 # Use C for the default configuration in the libtool script
7834
7835 lt_save_CC="$CC"
7836 ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842
7843 # Source file extension for C test sources.
7844 ac_ext=c
7845
7846 # Object file extension for compiled C test sources.
7847 objext=o
7848 objext=$objext
7849
7850 # Code to be used in simple compile tests
7851 lt_simple_compile_test_code="int some_variable = 0;"
7852
7853 # Code to be used in simple link tests
7854 lt_simple_link_test_code='int main(){return(0);}'
7855
7856
7857
7858
7859
7860
7861
7862 # If no C compiler was specified, use CC.
7863 LTCC=${LTCC-"$CC"}
7864
7865 # If no C compiler flags were specified, use CFLAGS.
7866 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7867
7868 # Allow CC to be a program name with arguments.
7869 compiler=$CC
7870
7871 # Save the default compiler, since it gets overwritten when the other
7872 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7873 compiler_DEFAULT=$CC
7874
7875 # save warnings/boilerplate of simple test code
7876 ac_outfile=conftest.$ac_objext
7877 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7878 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7879 _lt_compiler_boilerplate=`cat conftest.err`
7880 $RM conftest*
7881
7882 ac_outfile=conftest.$ac_objext
7883 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7884 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7885 _lt_linker_boilerplate=`cat conftest.err`
7886 $RM -r conftest*
7887
7888
7889 ## CAVEAT EMPTOR:
7890 ## There is no encapsulation within the following macros, do not change
7891 ## the running order or otherwise move them around unless you know exactly
7892 ## what you are doing...
7893 if test -n "$compiler"; then
7894
7895 lt_prog_compiler_no_builtin_flag=
7896
7897 if test "$GCC" = yes; then
7898   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7899
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7901 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7902 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   lt_cv_prog_compiler_rtti_exceptions=no
7906    ac_outfile=conftest.$ac_objext
7907    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7908    lt_compiler_flag="-fno-rtti -fno-exceptions"
7909    # Insert the option either (1) after the last *FLAGS variable, or
7910    # (2) before a word containing "conftest.", or (3) at the end.
7911    # Note that $ac_compile itself does not contain backslashes and begins
7912    # with a dollar sign (not a hyphen), so the echo should work correctly.
7913    # The option is referenced via a variable to avoid confusing sed.
7914    lt_compile=`echo "$ac_compile" | $SED \
7915    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7917    -e 's:$: $lt_compiler_flag:'`
7918    (eval echo "\"\$as_me:7918: $lt_compile\"" >&5)
7919    (eval "$lt_compile" 2>conftest.err)
7920    ac_status=$?
7921    cat conftest.err >&5
7922    echo "$as_me:7922: \$? = $ac_status" >&5
7923    if (exit $ac_status) && test -s "$ac_outfile"; then
7924      # The compiler can only warn and ignore the option if not recognized
7925      # So say no if there are warnings other than the usual output.
7926      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7927      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7928      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7929        lt_cv_prog_compiler_rtti_exceptions=yes
7930      fi
7931    fi
7932    $RM conftest*
7933
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7936 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7937
7938 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7939     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7940 else
7941     :
7942 fi
7943
7944 fi
7945
7946
7947
7948
7949
7950
7951   lt_prog_compiler_wl=
7952 lt_prog_compiler_pic=
7953 lt_prog_compiler_static=
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7956 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7957
7958   if test "$GCC" = yes; then
7959     lt_prog_compiler_wl='-Wl,'
7960     lt_prog_compiler_static='-static'
7961
7962     case $host_os in
7963       aix*)
7964       # All AIX code is PIC.
7965       if test "$host_cpu" = ia64; then
7966         # AIX 5 now supports IA64 processor
7967         lt_prog_compiler_static='-Bstatic'
7968       fi
7969       ;;
7970
7971     amigaos*)
7972       case $host_cpu in
7973       powerpc)
7974             # see comment about AmigaOS4 .so support
7975             lt_prog_compiler_pic='-fPIC'
7976         ;;
7977       m68k)
7978             # FIXME: we need at least 68020 code to build shared libraries, but
7979             # adding the `-m68020' flag to GCC prevents building anything better,
7980             # like `-m68040'.
7981             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7982         ;;
7983       esac
7984       ;;
7985
7986     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7987       # PIC is the default for these OSes.
7988       ;;
7989
7990     mingw* | cygwin* | pw32* | os2* | cegcc*)
7991       # This hack is so that the source file can tell whether it is being
7992       # built for inclusion in a dll (and should export symbols for example).
7993       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7994       # (--disable-auto-import) libraries
7995       lt_prog_compiler_pic='-DDLL_EXPORT'
7996       ;;
7997
7998     darwin* | rhapsody*)
7999       # PIC is the default on this platform
8000       # Common symbols not allowed in MH_DYLIB files
8001       lt_prog_compiler_pic='-fno-common'
8002       ;;
8003
8004     hpux*)
8005       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8006       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8007       # sets the default TLS model and affects inlining.
8008       case $host_cpu in
8009       hppa*64*)
8010         # +Z the default
8011         ;;
8012       *)
8013         lt_prog_compiler_pic='-fPIC'
8014         ;;
8015       esac
8016       ;;
8017
8018     interix[3-9]*)
8019       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8020       # Instead, we relocate shared libraries at runtime.
8021       ;;
8022
8023     msdosdjgpp*)
8024       # Just because we use GCC doesn't mean we suddenly get shared libraries
8025       # on systems that don't support them.
8026       lt_prog_compiler_can_build_shared=no
8027       enable_shared=no
8028       ;;
8029
8030     *nto* | *qnx*)
8031       # QNX uses GNU C++, but need to define -shared option too, otherwise
8032       # it will coredump.
8033       lt_prog_compiler_pic='-fPIC -shared'
8034       ;;
8035
8036     sysv4*MP*)
8037       if test -d /usr/nec; then
8038         lt_prog_compiler_pic=-Kconform_pic
8039       fi
8040       ;;
8041
8042     *)
8043       lt_prog_compiler_pic='-fPIC'
8044       ;;
8045     esac
8046   else
8047     # PORTME Check for flag to pass linker flags through the system compiler.
8048     case $host_os in
8049     aix*)
8050       lt_prog_compiler_wl='-Wl,'
8051       if test "$host_cpu" = ia64; then
8052         # AIX 5 now supports IA64 processor
8053         lt_prog_compiler_static='-Bstatic'
8054       else
8055         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8056       fi
8057       ;;
8058
8059     mingw* | cygwin* | pw32* | os2* | cegcc*)
8060       # This hack is so that the source file can tell whether it is being
8061       # built for inclusion in a dll (and should export symbols for example).
8062       lt_prog_compiler_pic='-DDLL_EXPORT'
8063       ;;
8064
8065     hpux9* | hpux10* | hpux11*)
8066       lt_prog_compiler_wl='-Wl,'
8067       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8068       # not for PA HP-UX.
8069       case $host_cpu in
8070       hppa*64*|ia64*)
8071         # +Z the default
8072         ;;
8073       *)
8074         lt_prog_compiler_pic='+Z'
8075         ;;
8076       esac
8077       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8078       lt_prog_compiler_static='${wl}-a ${wl}archive'
8079       ;;
8080
8081     irix5* | irix6* | nonstopux*)
8082       lt_prog_compiler_wl='-Wl,'
8083       # PIC (with -KPIC) is the default.
8084       lt_prog_compiler_static='-non_shared'
8085       ;;
8086
8087     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8088       case $cc_basename in
8089       # old Intel for x86_64 which still supported -KPIC.
8090       ecc*)
8091         lt_prog_compiler_wl='-Wl,'
8092         lt_prog_compiler_pic='-KPIC'
8093         lt_prog_compiler_static='-static'
8094         ;;
8095       # icc used to be incompatible with GCC.
8096       # ICC 10 doesn't accept -KPIC any more.
8097       icc* | ifort*)
8098         lt_prog_compiler_wl='-Wl,'
8099         lt_prog_compiler_pic='-fPIC'
8100         lt_prog_compiler_static='-static'
8101         ;;
8102       # Lahey Fortran 8.1.
8103       lf95*)
8104         lt_prog_compiler_wl='-Wl,'
8105         lt_prog_compiler_pic='--shared'
8106         lt_prog_compiler_static='--static'
8107         ;;
8108       pgcc* | pgf77* | pgf90* | pgf95*)
8109         # Portland Group compilers (*not* the Pentium gcc compiler,
8110         # which looks to be a dead project)
8111         lt_prog_compiler_wl='-Wl,'
8112         lt_prog_compiler_pic='-fpic'
8113         lt_prog_compiler_static='-Bstatic'
8114         ;;
8115       ccc*)
8116         lt_prog_compiler_wl='-Wl,'
8117         # All Alpha code is PIC.
8118         lt_prog_compiler_static='-non_shared'
8119         ;;
8120       xl*)
8121         # IBM XL C 8.0/Fortran 10.1 on PPC
8122         lt_prog_compiler_wl='-Wl,'
8123         lt_prog_compiler_pic='-qpic'
8124         lt_prog_compiler_static='-qstaticlink'
8125         ;;
8126       *)
8127         case `$CC -V 2>&1 | sed 5q` in
8128         *Sun\ C*)
8129           # Sun C 5.9
8130           lt_prog_compiler_pic='-KPIC'
8131           lt_prog_compiler_static='-Bstatic'
8132           lt_prog_compiler_wl='-Wl,'
8133           ;;
8134         *Sun\ F*)
8135           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8136           lt_prog_compiler_pic='-KPIC'
8137           lt_prog_compiler_static='-Bstatic'
8138           lt_prog_compiler_wl=''
8139           ;;
8140         esac
8141         ;;
8142       esac
8143       ;;
8144
8145     newsos6)
8146       lt_prog_compiler_pic='-KPIC'
8147       lt_prog_compiler_static='-Bstatic'
8148       ;;
8149
8150     *nto* | *qnx*)
8151       # QNX uses GNU C++, but need to define -shared option too, otherwise
8152       # it will coredump.
8153       lt_prog_compiler_pic='-fPIC -shared'
8154       ;;
8155
8156     osf3* | osf4* | osf5*)
8157       lt_prog_compiler_wl='-Wl,'
8158       # All OSF/1 code is PIC.
8159       lt_prog_compiler_static='-non_shared'
8160       ;;
8161
8162     rdos*)
8163       lt_prog_compiler_static='-non_shared'
8164       ;;
8165
8166     solaris*)
8167       lt_prog_compiler_pic='-KPIC'
8168       lt_prog_compiler_static='-Bstatic'
8169       case $cc_basename in
8170       f77* | f90* | f95*)
8171         lt_prog_compiler_wl='-Qoption ld ';;
8172       *)
8173         lt_prog_compiler_wl='-Wl,';;
8174       esac
8175       ;;
8176
8177     sunos4*)
8178       lt_prog_compiler_wl='-Qoption ld '
8179       lt_prog_compiler_pic='-PIC'
8180       lt_prog_compiler_static='-Bstatic'
8181       ;;
8182
8183     sysv4 | sysv4.2uw2* | sysv4.3*)
8184       lt_prog_compiler_wl='-Wl,'
8185       lt_prog_compiler_pic='-KPIC'
8186       lt_prog_compiler_static='-Bstatic'
8187       ;;
8188
8189     sysv4*MP*)
8190       if test -d /usr/nec ;then
8191         lt_prog_compiler_pic='-Kconform_pic'
8192         lt_prog_compiler_static='-Bstatic'
8193       fi
8194       ;;
8195
8196     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8197       lt_prog_compiler_wl='-Wl,'
8198       lt_prog_compiler_pic='-KPIC'
8199       lt_prog_compiler_static='-Bstatic'
8200       ;;
8201
8202     unicos*)
8203       lt_prog_compiler_wl='-Wl,'
8204       lt_prog_compiler_can_build_shared=no
8205       ;;
8206
8207     uts4*)
8208       lt_prog_compiler_pic='-pic'
8209       lt_prog_compiler_static='-Bstatic'
8210       ;;
8211
8212     *)
8213       lt_prog_compiler_can_build_shared=no
8214       ;;
8215     esac
8216   fi
8217
8218 case $host_os in
8219   # For platforms which do not support PIC, -DPIC is meaningless:
8220   *djgpp*)
8221     lt_prog_compiler_pic=
8222     ;;
8223   *)
8224     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8225     ;;
8226 esac
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8228 $as_echo "$lt_prog_compiler_pic" >&6; }
8229
8230
8231
8232
8233
8234
8235 #
8236 # Check to make sure the PIC flag actually works.
8237 #
8238 if test -n "$lt_prog_compiler_pic"; then
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8240 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8241 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8242   $as_echo_n "(cached) " >&6
8243 else
8244   lt_cv_prog_compiler_pic_works=no
8245    ac_outfile=conftest.$ac_objext
8246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8247    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8248    # Insert the option either (1) after the last *FLAGS variable, or
8249    # (2) before a word containing "conftest.", or (3) at the end.
8250    # Note that $ac_compile itself does not contain backslashes and begins
8251    # with a dollar sign (not a hyphen), so the echo should work correctly.
8252    # The option is referenced via a variable to avoid confusing sed.
8253    lt_compile=`echo "$ac_compile" | $SED \
8254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8256    -e 's:$: $lt_compiler_flag:'`
8257    (eval echo "\"\$as_me:8257: $lt_compile\"" >&5)
8258    (eval "$lt_compile" 2>conftest.err)
8259    ac_status=$?
8260    cat conftest.err >&5
8261    echo "$as_me:8261: \$? = $ac_status" >&5
8262    if (exit $ac_status) && test -s "$ac_outfile"; then
8263      # The compiler can only warn and ignore the option if not recognized
8264      # So say no if there are warnings other than the usual output.
8265      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8266      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8267      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8268        lt_cv_prog_compiler_pic_works=yes
8269      fi
8270    fi
8271    $RM conftest*
8272
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8275 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8276
8277 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8278     case $lt_prog_compiler_pic in
8279      "" | " "*) ;;
8280      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8281      esac
8282 else
8283     lt_prog_compiler_pic=
8284      lt_prog_compiler_can_build_shared=no
8285 fi
8286
8287 fi
8288
8289
8290
8291
8292
8293
8294 #
8295 # Check to make sure the static flag actually works.
8296 #
8297 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8299 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8300 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   lt_cv_prog_compiler_static_works=no
8304    save_LDFLAGS="$LDFLAGS"
8305    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8306    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8307    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8308      # The linker can only warn and ignore the option if not recognized
8309      # So say no if there are warnings
8310      if test -s conftest.err; then
8311        # Append any errors to the config.log.
8312        cat conftest.err 1>&5
8313        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8314        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8315        if diff conftest.exp conftest.er2 >/dev/null; then
8316          lt_cv_prog_compiler_static_works=yes
8317        fi
8318      else
8319        lt_cv_prog_compiler_static_works=yes
8320      fi
8321    fi
8322    $RM -r conftest*
8323    LDFLAGS="$save_LDFLAGS"
8324
8325 fi
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8327 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8328
8329 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8330     :
8331 else
8332     lt_prog_compiler_static=
8333 fi
8334
8335
8336
8337
8338
8339
8340
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8343 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   lt_cv_prog_compiler_c_o=no
8347    $RM -r conftest 2>/dev/null
8348    mkdir conftest
8349    cd conftest
8350    mkdir out
8351    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8352
8353    lt_compiler_flag="-o out/conftest2.$ac_objext"
8354    # Insert the option either (1) after the last *FLAGS variable, or
8355    # (2) before a word containing "conftest.", or (3) at the end.
8356    # Note that $ac_compile itself does not contain backslashes and begins
8357    # with a dollar sign (not a hyphen), so the echo should work correctly.
8358    lt_compile=`echo "$ac_compile" | $SED \
8359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8361    -e 's:$: $lt_compiler_flag:'`
8362    (eval echo "\"\$as_me:8362: $lt_compile\"" >&5)
8363    (eval "$lt_compile" 2>out/conftest.err)
8364    ac_status=$?
8365    cat out/conftest.err >&5
8366    echo "$as_me:8366: \$? = $ac_status" >&5
8367    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8368    then
8369      # The compiler can only warn and ignore the option if not recognized
8370      # So say no if there are warnings
8371      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8372      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8373      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8374        lt_cv_prog_compiler_c_o=yes
8375      fi
8376    fi
8377    chmod u+w . 2>&5
8378    $RM conftest*
8379    # SGI C++ compiler will create directory out/ii_files/ for
8380    # template instantiation
8381    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8382    $RM out/* && rmdir out
8383    cd ..
8384    $RM -r conftest
8385    $RM conftest*
8386
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8389 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8390
8391
8392
8393
8394
8395
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8398 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401   lt_cv_prog_compiler_c_o=no
8402    $RM -r conftest 2>/dev/null
8403    mkdir conftest
8404    cd conftest
8405    mkdir out
8406    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8407
8408    lt_compiler_flag="-o out/conftest2.$ac_objext"
8409    # Insert the option either (1) after the last *FLAGS variable, or
8410    # (2) before a word containing "conftest.", or (3) at the end.
8411    # Note that $ac_compile itself does not contain backslashes and begins
8412    # with a dollar sign (not a hyphen), so the echo should work correctly.
8413    lt_compile=`echo "$ac_compile" | $SED \
8414    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8416    -e 's:$: $lt_compiler_flag:'`
8417    (eval echo "\"\$as_me:8417: $lt_compile\"" >&5)
8418    (eval "$lt_compile" 2>out/conftest.err)
8419    ac_status=$?
8420    cat out/conftest.err >&5
8421    echo "$as_me:8421: \$? = $ac_status" >&5
8422    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8423    then
8424      # The compiler can only warn and ignore the option if not recognized
8425      # So say no if there are warnings
8426      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8427      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8428      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8429        lt_cv_prog_compiler_c_o=yes
8430      fi
8431    fi
8432    chmod u+w . 2>&5
8433    $RM conftest*
8434    # SGI C++ compiler will create directory out/ii_files/ for
8435    # template instantiation
8436    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8437    $RM out/* && rmdir out
8438    cd ..
8439    $RM -r conftest
8440    $RM conftest*
8441
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8444 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8445
8446
8447
8448
8449 hard_links="nottested"
8450 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8451   # do not overwrite the value of need_locks provided by the user
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8453 $as_echo_n "checking if we can lock with hard links... " >&6; }
8454   hard_links=yes
8455   $RM conftest*
8456   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8457   touch conftest.a
8458   ln conftest.a conftest.b 2>&5 || hard_links=no
8459   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8461 $as_echo "$hard_links" >&6; }
8462   if test "$hard_links" = no; then
8463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8464 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8465     need_locks=warn
8466   fi
8467 else
8468   need_locks=no
8469 fi
8470
8471
8472
8473
8474
8475
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8477 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8478
8479   runpath_var=
8480   allow_undefined_flag=
8481   always_export_symbols=no
8482   archive_cmds=
8483   archive_expsym_cmds=
8484   compiler_needs_object=no
8485   enable_shared_with_static_runtimes=no
8486   export_dynamic_flag_spec=
8487   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8488   hardcode_automatic=no
8489   hardcode_direct=no
8490   hardcode_direct_absolute=no
8491   hardcode_libdir_flag_spec=
8492   hardcode_libdir_flag_spec_ld=
8493   hardcode_libdir_separator=
8494   hardcode_minus_L=no
8495   hardcode_shlibpath_var=unsupported
8496   inherit_rpath=no
8497   link_all_deplibs=unknown
8498   module_cmds=
8499   module_expsym_cmds=
8500   old_archive_from_new_cmds=
8501   old_archive_from_expsyms_cmds=
8502   thread_safe_flag_spec=
8503   whole_archive_flag_spec=
8504   # include_expsyms should be a list of space-separated symbols to be *always*
8505   # included in the symbol list
8506   include_expsyms=
8507   # exclude_expsyms can be an extended regexp of symbols to exclude
8508   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8509   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8510   # as well as any symbol that contains `d'.
8511   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8512   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8513   # platforms (ab)use it in PIC code, but their linkers get confused if
8514   # the symbol is explicitly referenced.  Since portable code cannot
8515   # rely on this symbol name, it's probably fine to never include it in
8516   # preloaded symbol tables.
8517   # Exclude shared library initialization/finalization symbols.
8518   extract_expsyms_cmds=
8519
8520   case $host_os in
8521   cygwin* | mingw* | pw32* | cegcc*)
8522     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8523     # When not using gcc, we currently assume that we are using
8524     # Microsoft Visual C++.
8525     if test "$GCC" != yes; then
8526       with_gnu_ld=no
8527     fi
8528     ;;
8529   interix*)
8530     # we just hope/assume this is gcc and not c89 (= MSVC++)
8531     with_gnu_ld=yes
8532     ;;
8533   openbsd*)
8534     with_gnu_ld=no
8535     ;;
8536   linux* | k*bsd*-gnu)
8537     link_all_deplibs=no
8538     ;;
8539   esac
8540
8541   ld_shlibs=yes
8542   if test "$with_gnu_ld" = yes; then
8543     # If archive_cmds runs LD, not CC, wlarc should be empty
8544     wlarc='${wl}'
8545
8546     # Set some defaults for GNU ld with shared library support. These
8547     # are reset later if shared libraries are not supported. Putting them
8548     # here allows them to be overridden if necessary.
8549     runpath_var=LD_RUN_PATH
8550     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551     export_dynamic_flag_spec='${wl}--export-dynamic'
8552     # ancient GNU ld didn't support --whole-archive et. al.
8553     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8554       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8555     else
8556       whole_archive_flag_spec=
8557     fi
8558     supports_anon_versioning=no
8559     case `$LD -v 2>&1` in
8560       *GNU\ gold*) supports_anon_versioning=yes ;;
8561       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8562       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8563       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8564       *\ 2.11.*) ;; # other 2.11 versions
8565       *) supports_anon_versioning=yes ;;
8566     esac
8567
8568     # See if GNU ld supports shared libraries.
8569     case $host_os in
8570     aix[3-9]*)
8571       # On AIX/PPC, the GNU linker is very broken
8572       if test "$host_cpu" != ia64; then
8573         ld_shlibs=no
8574         cat <<_LT_EOF 1>&2
8575
8576 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8577 *** to be unable to reliably create shared libraries on AIX.
8578 *** Therefore, libtool is disabling shared libraries support.  If you
8579 *** really care for shared libraries, you may want to modify your PATH
8580 *** so that a non-GNU linker is found, and then restart.
8581
8582 _LT_EOF
8583       fi
8584       ;;
8585
8586     amigaos*)
8587       case $host_cpu in
8588       powerpc)
8589             # see comment about AmigaOS4 .so support
8590             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8591             archive_expsym_cmds=''
8592         ;;
8593       m68k)
8594             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)'
8595             hardcode_libdir_flag_spec='-L$libdir'
8596             hardcode_minus_L=yes
8597         ;;
8598       esac
8599       ;;
8600
8601     beos*)
8602       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8603         allow_undefined_flag=unsupported
8604         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8605         # support --undefined.  This deserves some investigation.  FIXME
8606         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607       else
8608         ld_shlibs=no
8609       fi
8610       ;;
8611
8612     cygwin* | mingw* | pw32* | cegcc*)
8613       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8614       # as there is no search path for DLLs.
8615       hardcode_libdir_flag_spec='-L$libdir'
8616       allow_undefined_flag=unsupported
8617       always_export_symbols=no
8618       enable_shared_with_static_runtimes=yes
8619       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8620
8621       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8622         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8623         # If the export-symbols file already is a .def file (1st line
8624         # is EXPORTS), use it as is; otherwise, prepend...
8625         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8626           cp $export_symbols $output_objdir/$soname.def;
8627         else
8628           echo EXPORTS > $output_objdir/$soname.def;
8629           cat $export_symbols >> $output_objdir/$soname.def;
8630         fi~
8631         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8632       else
8633         ld_shlibs=no
8634       fi
8635       ;;
8636
8637     interix[3-9]*)
8638       hardcode_direct=no
8639       hardcode_shlibpath_var=no
8640       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8641       export_dynamic_flag_spec='${wl}-E'
8642       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8643       # Instead, shared libraries are loaded at an image base (0x10000000 by
8644       # default) and relocated if they conflict, which is a slow very memory
8645       # consuming and fragmenting process.  To avoid this, we pick a random,
8646       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8647       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8648       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8649       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'
8650       ;;
8651
8652     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8653       tmp_diet=no
8654       if test "$host_os" = linux-dietlibc; then
8655         case $cc_basename in
8656           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8657         esac
8658       fi
8659       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8660          && test "$tmp_diet" = no
8661       then
8662         tmp_addflag=
8663         tmp_sharedflag='-shared'
8664         case $cc_basename,$host_cpu in
8665         pgcc*)                          # Portland Group C compiler
8666           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'
8667           tmp_addflag=' $pic_flag'
8668           ;;
8669         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8670           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'
8671           tmp_addflag=' $pic_flag -Mnomain' ;;
8672         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8673           tmp_addflag=' -i_dynamic' ;;
8674         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8675           tmp_addflag=' -i_dynamic -nofor_main' ;;
8676         ifc* | ifort*)                  # Intel Fortran compiler
8677           tmp_addflag=' -nofor_main' ;;
8678         lf95*)                          # Lahey Fortran 8.1
8679           whole_archive_flag_spec=
8680           tmp_sharedflag='--shared' ;;
8681         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8682           tmp_sharedflag='-qmkshrobj'
8683           tmp_addflag= ;;
8684         esac
8685         case `$CC -V 2>&1 | sed 5q` in
8686         *Sun\ C*)                       # Sun C 5.9
8687           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'
8688           compiler_needs_object=yes
8689           tmp_sharedflag='-G' ;;
8690         *Sun\ F*)                       # Sun Fortran 8.3
8691           tmp_sharedflag='-G' ;;
8692         esac
8693         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694
8695         if test "x$supports_anon_versioning" = xyes; then
8696           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8697             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8698             echo "local: *; };" >> $output_objdir/$libname.ver~
8699             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8700         fi
8701
8702         case $cc_basename in
8703         xlf*)
8704           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8705           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8706           hardcode_libdir_flag_spec=
8707           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8708           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8709           if test "x$supports_anon_versioning" = xyes; then
8710             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8711               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8712               echo "local: *; };" >> $output_objdir/$libname.ver~
8713               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8714           fi
8715           ;;
8716         esac
8717       else
8718         ld_shlibs=no
8719       fi
8720       ;;
8721
8722     netbsd* | netbsdelf*-gnu)
8723       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8724         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8725         wlarc=
8726       else
8727         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729       fi
8730       ;;
8731
8732     solaris*)
8733       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8734         ld_shlibs=no
8735         cat <<_LT_EOF 1>&2
8736
8737 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8738 *** create shared libraries on Solaris systems.  Therefore, libtool
8739 *** is disabling shared libraries support.  We urge you to upgrade GNU
8740 *** binutils to release 2.9.1 or newer.  Another option is to modify
8741 *** your PATH or compiler configuration so that the native linker is
8742 *** used, and then restart.
8743
8744 _LT_EOF
8745       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8746         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8748       else
8749         ld_shlibs=no
8750       fi
8751       ;;
8752
8753     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8754       case `$LD -v 2>&1` in
8755         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8756         ld_shlibs=no
8757         cat <<_LT_EOF 1>&2
8758
8759 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8760 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8761 *** is disabling shared libraries support.  We urge you to upgrade GNU
8762 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8763 *** your PATH or compiler configuration so that the native linker is
8764 *** used, and then restart.
8765
8766 _LT_EOF
8767         ;;
8768         *)
8769           # For security reasons, it is highly recommended that you always
8770           # use absolute paths for naming shared libraries, and exclude the
8771           # DT_RUNPATH tag from executables and libraries.  But doing so
8772           # requires that you compile everything twice, which is a pain.
8773           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8774             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8777           else
8778             ld_shlibs=no
8779           fi
8780         ;;
8781       esac
8782       ;;
8783
8784     sunos4*)
8785       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8786       wlarc=
8787       hardcode_direct=yes
8788       hardcode_shlibpath_var=no
8789       ;;
8790
8791     *)
8792       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795       else
8796         ld_shlibs=no
8797       fi
8798       ;;
8799     esac
8800
8801     if test "$ld_shlibs" = no; then
8802       runpath_var=
8803       hardcode_libdir_flag_spec=
8804       export_dynamic_flag_spec=
8805       whole_archive_flag_spec=
8806     fi
8807   else
8808     # PORTME fill in a description of your system's linker (not GNU ld)
8809     case $host_os in
8810     aix3*)
8811       allow_undefined_flag=unsupported
8812       always_export_symbols=yes
8813       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'
8814       # Note: this linker hardcodes the directories in LIBPATH if there
8815       # are no directories specified by -L.
8816       hardcode_minus_L=yes
8817       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8818         # Neither direct hardcoding nor static linking is supported with a
8819         # broken collect2.
8820         hardcode_direct=unsupported
8821       fi
8822       ;;
8823
8824     aix[4-9]*)
8825       if test "$host_cpu" = ia64; then
8826         # On IA64, the linker does run time linking by default, so we don't
8827         # have to do anything special.
8828         aix_use_runtimelinking=no
8829         exp_sym_flag='-Bexport'
8830         no_entry_flag=""
8831       else
8832         # If we're using GNU nm, then we don't want the "-C" option.
8833         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8834         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8835           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'
8836         else
8837           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'
8838         fi
8839         aix_use_runtimelinking=no
8840
8841         # Test if we are trying to use run time linking or normal
8842         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8843         # need to do runtime linking.
8844         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8845           for ld_flag in $LDFLAGS; do
8846           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8847             aix_use_runtimelinking=yes
8848             break
8849           fi
8850           done
8851           ;;
8852         esac
8853
8854         exp_sym_flag='-bexport'
8855         no_entry_flag='-bnoentry'
8856       fi
8857
8858       # When large executables or shared objects are built, AIX ld can
8859       # have problems creating the table of contents.  If linking a library
8860       # or program results in "error TOC overflow" add -mminimal-toc to
8861       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8862       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8863
8864       archive_cmds=''
8865       hardcode_direct=yes
8866       hardcode_direct_absolute=yes
8867       hardcode_libdir_separator=':'
8868       link_all_deplibs=yes
8869       file_list_spec='${wl}-f,'
8870
8871       if test "$GCC" = yes; then
8872         case $host_os in aix4.[012]|aix4.[012].*)
8873         # We only want to do this on AIX 4.2 and lower, the check
8874         # below for broken collect2 doesn't work under 4.3+
8875           collect2name=`${CC} -print-prog-name=collect2`
8876           if test -f "$collect2name" &&
8877            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8878           then
8879           # We have reworked collect2
8880           :
8881           else
8882           # We have old collect2
8883           hardcode_direct=unsupported
8884           # It fails to find uninstalled libraries when the uninstalled
8885           # path is not listed in the libpath.  Setting hardcode_minus_L
8886           # to unsupported forces relinking
8887           hardcode_minus_L=yes
8888           hardcode_libdir_flag_spec='-L$libdir'
8889           hardcode_libdir_separator=
8890           fi
8891           ;;
8892         esac
8893         shared_flag='-shared'
8894         if test "$aix_use_runtimelinking" = yes; then
8895           shared_flag="$shared_flag "'${wl}-G'
8896         fi
8897         link_all_deplibs=no
8898       else
8899         # not using gcc
8900         if test "$host_cpu" = ia64; then
8901         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8902         # chokes on -Wl,-G. The following line is correct:
8903           shared_flag='-G'
8904         else
8905           if test "$aix_use_runtimelinking" = yes; then
8906             shared_flag='${wl}-G'
8907           else
8908             shared_flag='${wl}-bM:SRE'
8909           fi
8910         fi
8911       fi
8912
8913       export_dynamic_flag_spec='${wl}-bexpall'
8914       # It seems that -bexpall does not export symbols beginning with
8915       # underscore (_), so it is better to generate a list of symbols to export.
8916       always_export_symbols=yes
8917       if test "$aix_use_runtimelinking" = yes; then
8918         # Warning - without using the other runtime loading flags (-brtl),
8919         # -berok will link without error, but may produce a broken library.
8920         allow_undefined_flag='-berok'
8921         # Determine the default libpath from the value encoded in an
8922         # empty executable.
8923         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h.  */
8925
8926 int
8927 main ()
8928 {
8929
8930   ;
8931   return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935
8936 lt_aix_libpath_sed='
8937     /Import File Strings/,/^$/ {
8938         /^0/ {
8939             s/^0  *\(.*\)$/\1/
8940             p
8941         }
8942     }'
8943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8944 # Check for a 64-bit object if we didn't find anything.
8945 if test -z "$aix_libpath"; then
8946   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8947 fi
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext \
8950     conftest$ac_exeext conftest.$ac_ext
8951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8952
8953         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8954         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"
8955       else
8956         if test "$host_cpu" = ia64; then
8957           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8958           allow_undefined_flag="-z nodefs"
8959           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"
8960         else
8961          # Determine the default libpath from the value encoded in an
8962          # empty executable.
8963          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h.  */
8965
8966 int
8967 main ()
8968 {
8969
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then :
8975
8976 lt_aix_libpath_sed='
8977     /Import File Strings/,/^$/ {
8978         /^0/ {
8979             s/^0  *\(.*\)$/\1/
8980             p
8981         }
8982     }'
8983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984 # Check for a 64-bit object if we didn't find anything.
8985 if test -z "$aix_libpath"; then
8986   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987 fi
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext \
8990     conftest$ac_exeext conftest.$ac_ext
8991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8992
8993          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8994           # Warning - without using the other run time loading flags,
8995           # -berok will link without error, but may produce a broken library.
8996           no_undefined_flag=' ${wl}-bernotok'
8997           allow_undefined_flag=' ${wl}-berok'
8998           # Exported symbols can be pulled into shared objects from archives
8999           whole_archive_flag_spec='$convenience'
9000           archive_cmds_need_lc=yes
9001           # This is similar to how AIX traditionally builds its shared libraries.
9002           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'
9003         fi
9004       fi
9005       ;;
9006
9007     amigaos*)
9008       case $host_cpu in
9009       powerpc)
9010             # see comment about AmigaOS4 .so support
9011             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012             archive_expsym_cmds=''
9013         ;;
9014       m68k)
9015             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)'
9016             hardcode_libdir_flag_spec='-L$libdir'
9017             hardcode_minus_L=yes
9018         ;;
9019       esac
9020       ;;
9021
9022     bsdi[45]*)
9023       export_dynamic_flag_spec=-rdynamic
9024       ;;
9025
9026     cygwin* | mingw* | pw32* | cegcc*)
9027       # When not using gcc, we currently assume that we are using
9028       # Microsoft Visual C++.
9029       # hardcode_libdir_flag_spec is actually meaningless, as there is
9030       # no search path for DLLs.
9031       hardcode_libdir_flag_spec=' '
9032       allow_undefined_flag=unsupported
9033       # Tell ltmain to make .lib files, not .a files.
9034       libext=lib
9035       # Tell ltmain to make .dll files, not .so files.
9036       shrext_cmds=".dll"
9037       # FIXME: Setting linknames here is a bad hack.
9038       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9039       # The linker will automatically build a .lib file if we build a DLL.
9040       old_archive_from_new_cmds='true'
9041       # FIXME: Should let the user specify the lib program.
9042       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9043       fix_srcfile_path='`cygpath -w "$srcfile"`'
9044       enable_shared_with_static_runtimes=yes
9045       ;;
9046
9047     darwin* | rhapsody*)
9048
9049
9050   archive_cmds_need_lc=no
9051   hardcode_direct=no
9052   hardcode_automatic=yes
9053   hardcode_shlibpath_var=unsupported
9054   whole_archive_flag_spec=''
9055   link_all_deplibs=yes
9056   allow_undefined_flag="$_lt_dar_allow_undefined"
9057   case $cc_basename in
9058      ifort*) _lt_dar_can_shared=yes ;;
9059      *) _lt_dar_can_shared=$GCC ;;
9060   esac
9061   if test "$_lt_dar_can_shared" = "yes"; then
9062     output_verbose_link_cmd=echo
9063     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9064     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9065     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}"
9066     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}"
9067
9068   else
9069   ld_shlibs=no
9070   fi
9071
9072       ;;
9073
9074     dgux*)
9075       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076       hardcode_libdir_flag_spec='-L$libdir'
9077       hardcode_shlibpath_var=no
9078       ;;
9079
9080     freebsd1*)
9081       ld_shlibs=no
9082       ;;
9083
9084     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9085     # support.  Future versions do this automatically, but an explicit c++rt0.o
9086     # does not break anything, and helps significantly (at the cost of a little
9087     # extra space).
9088     freebsd2.2*)
9089       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9090       hardcode_libdir_flag_spec='-R$libdir'
9091       hardcode_direct=yes
9092       hardcode_shlibpath_var=no
9093       ;;
9094
9095     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9096     freebsd2*)
9097       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098       hardcode_direct=yes
9099       hardcode_minus_L=yes
9100       hardcode_shlibpath_var=no
9101       ;;
9102
9103     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9104     freebsd* | dragonfly*)
9105       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9106       hardcode_libdir_flag_spec='-R$libdir'
9107       hardcode_direct=yes
9108       hardcode_shlibpath_var=no
9109       ;;
9110
9111     hpux9*)
9112       if test "$GCC" = yes; then
9113         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'
9114       else
9115         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'
9116       fi
9117       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9118       hardcode_libdir_separator=:
9119       hardcode_direct=yes
9120
9121       # hardcode_minus_L: Not really in the search PATH,
9122       # but as the default location of the library.
9123       hardcode_minus_L=yes
9124       export_dynamic_flag_spec='${wl}-E'
9125       ;;
9126
9127     hpux10*)
9128       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9129         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130       else
9131         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9132       fi
9133       if test "$with_gnu_ld" = no; then
9134         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9135         hardcode_libdir_flag_spec_ld='+b $libdir'
9136         hardcode_libdir_separator=:
9137         hardcode_direct=yes
9138         hardcode_direct_absolute=yes
9139         export_dynamic_flag_spec='${wl}-E'
9140         # hardcode_minus_L: Not really in the search PATH,
9141         # but as the default location of the library.
9142         hardcode_minus_L=yes
9143       fi
9144       ;;
9145
9146     hpux11*)
9147       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9148         case $host_cpu in
9149         hppa*64*)
9150           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9151           ;;
9152         ia64*)
9153           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9154           ;;
9155         *)
9156           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9157           ;;
9158         esac
9159       else
9160         case $host_cpu in
9161         hppa*64*)
9162           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9163           ;;
9164         ia64*)
9165           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9166           ;;
9167         *)
9168           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9169           ;;
9170         esac
9171       fi
9172       if test "$with_gnu_ld" = no; then
9173         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9174         hardcode_libdir_separator=:
9175
9176         case $host_cpu in
9177         hppa*64*|ia64*)
9178           hardcode_direct=no
9179           hardcode_shlibpath_var=no
9180           ;;
9181         *)
9182           hardcode_direct=yes
9183           hardcode_direct_absolute=yes
9184           export_dynamic_flag_spec='${wl}-E'
9185
9186           # hardcode_minus_L: Not really in the search PATH,
9187           # but as the default location of the library.
9188           hardcode_minus_L=yes
9189           ;;
9190         esac
9191       fi
9192       ;;
9193
9194     irix5* | irix6* | nonstopux*)
9195       if test "$GCC" = yes; then
9196         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'
9197         # Try to use the -exported_symbol ld option, if it does not
9198         # work, assume that -exports_file does not work either and
9199         # implicitly export all symbols.
9200         save_LDFLAGS="$LDFLAGS"
9201         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9202         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h.  */
9204 int foo(void) {}
9205 _ACEOF
9206 if ac_fn_c_try_link "$LINENO"; then :
9207   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'
9208
9209 fi
9210 rm -f core conftest.err conftest.$ac_objext \
9211     conftest$ac_exeext conftest.$ac_ext
9212         LDFLAGS="$save_LDFLAGS"
9213       else
9214         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'
9215         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'
9216       fi
9217       archive_cmds_need_lc='no'
9218       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9219       hardcode_libdir_separator=:
9220       inherit_rpath=yes
9221       link_all_deplibs=yes
9222       ;;
9223
9224     netbsd* | netbsdelf*-gnu)
9225       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9226         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9227       else
9228         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9229       fi
9230       hardcode_libdir_flag_spec='-R$libdir'
9231       hardcode_direct=yes
9232       hardcode_shlibpath_var=no
9233       ;;
9234
9235     newsos6)
9236       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237       hardcode_direct=yes
9238       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9239       hardcode_libdir_separator=:
9240       hardcode_shlibpath_var=no
9241       ;;
9242
9243     *nto* | *qnx*)
9244       ;;
9245
9246     openbsd*)
9247       if test -f /usr/libexec/ld.so; then
9248         hardcode_direct=yes
9249         hardcode_shlibpath_var=no
9250         hardcode_direct_absolute=yes
9251         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9254           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9255           export_dynamic_flag_spec='${wl}-E'
9256         else
9257           case $host_os in
9258            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9259              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9260              hardcode_libdir_flag_spec='-R$libdir'
9261              ;;
9262            *)
9263              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265              ;;
9266           esac
9267         fi
9268       else
9269         ld_shlibs=no
9270       fi
9271       ;;
9272
9273     os2*)
9274       hardcode_libdir_flag_spec='-L$libdir'
9275       hardcode_minus_L=yes
9276       allow_undefined_flag=unsupported
9277       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'
9278       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9279       ;;
9280
9281     osf3*)
9282       if test "$GCC" = yes; then
9283         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9284         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'
9285       else
9286         allow_undefined_flag=' -expect_unresolved \*'
9287         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'
9288       fi
9289       archive_cmds_need_lc='no'
9290       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291       hardcode_libdir_separator=:
9292       ;;
9293
9294     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9295       if test "$GCC" = yes; then
9296         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9297         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'
9298         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299       else
9300         allow_undefined_flag=' -expect_unresolved \*'
9301         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'
9302         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~
9303         $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'
9304
9305         # Both c and cxx compiler support -rpath directly
9306         hardcode_libdir_flag_spec='-rpath $libdir'
9307       fi
9308       archive_cmds_need_lc='no'
9309       hardcode_libdir_separator=:
9310       ;;
9311
9312     solaris*)
9313       no_undefined_flag=' -z defs'
9314       if test "$GCC" = yes; then
9315         wlarc='${wl}'
9316         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9318           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9319       else
9320         case `$CC -V 2>&1` in
9321         *"Compilers 5.0"*)
9322           wlarc=''
9323           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9326           ;;
9327         *)
9328           wlarc='${wl}'
9329           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9330           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9331           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9332           ;;
9333         esac
9334       fi
9335       hardcode_libdir_flag_spec='-R$libdir'
9336       hardcode_shlibpath_var=no
9337       case $host_os in
9338       solaris2.[0-5] | solaris2.[0-5].*) ;;
9339       *)
9340         # The compiler driver will combine and reorder linker options,
9341         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9342         # but is careful enough not to reorder.
9343         # Supported since Solaris 2.6 (maybe 2.5.1?)
9344         if test "$GCC" = yes; then
9345           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9346         else
9347           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9348         fi
9349         ;;
9350       esac
9351       link_all_deplibs=yes
9352       ;;
9353
9354     sunos4*)
9355       if test "x$host_vendor" = xsequent; then
9356         # Use $CC to link under sequent, because it throws in some extra .o
9357         # files that make .init and .fini sections work.
9358         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9359       else
9360         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9361       fi
9362       hardcode_libdir_flag_spec='-L$libdir'
9363       hardcode_direct=yes
9364       hardcode_minus_L=yes
9365       hardcode_shlibpath_var=no
9366       ;;
9367
9368     sysv4)
9369       case $host_vendor in
9370         sni)
9371           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372           hardcode_direct=yes # is this really true???
9373         ;;
9374         siemens)
9375           ## LD is ld it makes a PLAMLIB
9376           ## CC just makes a GrossModule.
9377           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9378           reload_cmds='$CC -r -o $output$reload_objs'
9379           hardcode_direct=no
9380         ;;
9381         motorola)
9382           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9384         ;;
9385       esac
9386       runpath_var='LD_RUN_PATH'
9387       hardcode_shlibpath_var=no
9388       ;;
9389
9390     sysv4.3*)
9391       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392       hardcode_shlibpath_var=no
9393       export_dynamic_flag_spec='-Bexport'
9394       ;;
9395
9396     sysv4*MP*)
9397       if test -d /usr/nec; then
9398         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399         hardcode_shlibpath_var=no
9400         runpath_var=LD_RUN_PATH
9401         hardcode_runpath_var=yes
9402         ld_shlibs=yes
9403       fi
9404       ;;
9405
9406     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9407       no_undefined_flag='${wl}-z,text'
9408       archive_cmds_need_lc=no
9409       hardcode_shlibpath_var=no
9410       runpath_var='LD_RUN_PATH'
9411
9412       if test "$GCC" = yes; then
9413         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415       else
9416         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418       fi
9419       ;;
9420
9421     sysv5* | sco3.2v5* | sco5v6*)
9422       # Note: We can NOT use -z defs as we might desire, because we do not
9423       # link with -lc, and that would cause any symbols used from libc to
9424       # always be unresolved, which means just about no library would
9425       # ever link correctly.  If we're not using GNU ld we use -z text
9426       # though, which does catch some bad symbols but isn't as heavy-handed
9427       # as -z defs.
9428       no_undefined_flag='${wl}-z,text'
9429       allow_undefined_flag='${wl}-z,nodefs'
9430       archive_cmds_need_lc=no
9431       hardcode_shlibpath_var=no
9432       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9433       hardcode_libdir_separator=':'
9434       link_all_deplibs=yes
9435       export_dynamic_flag_spec='${wl}-Bexport'
9436       runpath_var='LD_RUN_PATH'
9437
9438       if test "$GCC" = yes; then
9439         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441       else
9442         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444       fi
9445       ;;
9446
9447     uts4*)
9448       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449       hardcode_libdir_flag_spec='-L$libdir'
9450       hardcode_shlibpath_var=no
9451       ;;
9452
9453     *)
9454       ld_shlibs=no
9455       ;;
9456     esac
9457
9458     if test x$host_vendor = xsni; then
9459       case $host in
9460       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9461         export_dynamic_flag_spec='${wl}-Blargedynsym'
9462         ;;
9463       esac
9464     fi
9465   fi
9466
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9468 $as_echo "$ld_shlibs" >&6; }
9469 test "$ld_shlibs" = no && can_build_shared=no
9470
9471 with_gnu_ld=$with_gnu_ld
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487 #
9488 # Do we need to explicitly link libc?
9489 #
9490 case "x$archive_cmds_need_lc" in
9491 x|xyes)
9492   # Assume -lc should be added
9493   archive_cmds_need_lc=yes
9494
9495   if test "$enable_shared" = yes && test "$GCC" = yes; then
9496     case $archive_cmds in
9497     *'~'*)
9498       # FIXME: we may have to deal with multi-command sequences.
9499       ;;
9500     '$CC '*)
9501       # Test whether the compiler implicitly links with -lc since on some
9502       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9503       # to ld, don't add -lc before -lgcc.
9504       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9505 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9506       $RM conftest*
9507       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9508
9509       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9510   (eval $ac_compile) 2>&5
9511   ac_status=$?
9512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513   test $ac_status = 0; } 2>conftest.err; then
9514         soname=conftest
9515         lib=conftest
9516         libobjs=conftest.$ac_objext
9517         deplibs=
9518         wl=$lt_prog_compiler_wl
9519         pic_flag=$lt_prog_compiler_pic
9520         compiler_flags=-v
9521         linker_flags=-v
9522         verstring=
9523         output_objdir=.
9524         libname=conftest
9525         lt_save_allow_undefined_flag=$allow_undefined_flag
9526         allow_undefined_flag=
9527         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9528   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9529   ac_status=$?
9530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531   test $ac_status = 0; }
9532         then
9533           archive_cmds_need_lc=no
9534         else
9535           archive_cmds_need_lc=yes
9536         fi
9537         allow_undefined_flag=$lt_save_allow_undefined_flag
9538       else
9539         cat conftest.err 1>&5
9540       fi
9541       $RM conftest*
9542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9543 $as_echo "$archive_cmds_need_lc" >&6; }
9544       ;;
9545     esac
9546   fi
9547   ;;
9548 esac
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
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
9706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9707 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9708
9709 if test "$GCC" = yes; then
9710   case $host_os in
9711     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9712     *) lt_awk_arg="/^libraries:/" ;;
9713   esac
9714   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9715   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9716     # if the path contains ";" then we assume it to be the separator
9717     # otherwise default to the standard path separator (i.e. ":") - it is
9718     # assumed that no part of a normal pathname contains ";" but that should
9719     # okay in the real world where ";" in dirpaths is itself problematic.
9720     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9721   else
9722     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9723   fi
9724   # Ok, now we have the path, separated by spaces, we can step through it
9725   # and add multilib dir if necessary.
9726   lt_tmp_lt_search_path_spec=
9727   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9728   for lt_sys_path in $lt_search_path_spec; do
9729     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9730       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9731     else
9732       test -d "$lt_sys_path" && \
9733         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9734     fi
9735   done
9736   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9737 BEGIN {RS=" "; FS="/|\n";} {
9738   lt_foo="";
9739   lt_count=0;
9740   for (lt_i = NF; lt_i > 0; lt_i--) {
9741     if ($lt_i != "" && $lt_i != ".") {
9742       if ($lt_i == "..") {
9743         lt_count++;
9744       } else {
9745         if (lt_count == 0) {
9746           lt_foo="/" $lt_i lt_foo;
9747         } else {
9748           lt_count--;
9749         }
9750       }
9751     }
9752   }
9753   if (lt_foo != "") { lt_freq[lt_foo]++; }
9754   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9755 }'`
9756   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9757 else
9758   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9759 fi
9760 library_names_spec=
9761 libname_spec='lib$name'
9762 soname_spec=
9763 shrext_cmds=".so"
9764 postinstall_cmds=
9765 postuninstall_cmds=
9766 finish_cmds=
9767 finish_eval=
9768 shlibpath_var=
9769 shlibpath_overrides_runpath=unknown
9770 version_type=none
9771 dynamic_linker="$host_os ld.so"
9772 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9773 need_lib_prefix=unknown
9774 hardcode_into_libs=no
9775
9776 # when you set need_version to no, make sure it does not cause -set_version
9777 # flags to be left without arguments
9778 need_version=unknown
9779
9780 case $host_os in
9781 aix3*)
9782   version_type=linux
9783   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9784   shlibpath_var=LIBPATH
9785
9786   # AIX 3 has no versioning support, so we append a major version to the name.
9787   soname_spec='${libname}${release}${shared_ext}$major'
9788   ;;
9789
9790 aix[4-9]*)
9791   version_type=linux
9792   need_lib_prefix=no
9793   need_version=no
9794   hardcode_into_libs=yes
9795   if test "$host_cpu" = ia64; then
9796     # AIX 5 supports IA64
9797     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9798     shlibpath_var=LD_LIBRARY_PATH
9799   else
9800     # With GCC up to 2.95.x, collect2 would create an import file
9801     # for dependence libraries.  The import file would start with
9802     # the line `#! .'.  This would cause the generated library to
9803     # depend on `.', always an invalid library.  This was fixed in
9804     # development snapshots of GCC prior to 3.0.
9805     case $host_os in
9806       aix4 | aix4.[01] | aix4.[01].*)
9807       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9808            echo ' yes '
9809            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9810         :
9811       else
9812         can_build_shared=no
9813       fi
9814       ;;
9815     esac
9816     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9817     # soname into executable. Probably we can add versioning support to
9818     # collect2, so additional links can be useful in future.
9819     if test "$aix_use_runtimelinking" = yes; then
9820       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9821       # instead of lib<name>.a to let people know that these are not
9822       # typical AIX shared libraries.
9823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824     else
9825       # We preserve .a as extension for shared libraries through AIX4.2
9826       # and later when we are not doing run time linking.
9827       library_names_spec='${libname}${release}.a $libname.a'
9828       soname_spec='${libname}${release}${shared_ext}$major'
9829     fi
9830     shlibpath_var=LIBPATH
9831   fi
9832   ;;
9833
9834 amigaos*)
9835   case $host_cpu in
9836   powerpc)
9837     # Since July 2007 AmigaOS4 officially supports .so libraries.
9838     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840     ;;
9841   m68k)
9842     library_names_spec='$libname.ixlibrary $libname.a'
9843     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9844     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'
9845     ;;
9846   esac
9847   ;;
9848
9849 beos*)
9850   library_names_spec='${libname}${shared_ext}'
9851   dynamic_linker="$host_os ld.so"
9852   shlibpath_var=LIBRARY_PATH
9853   ;;
9854
9855 bsdi[45]*)
9856   version_type=linux
9857   need_version=no
9858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859   soname_spec='${libname}${release}${shared_ext}$major'
9860   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9861   shlibpath_var=LD_LIBRARY_PATH
9862   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9863   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9864   # the default ld.so.conf also contains /usr/contrib/lib and
9865   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9866   # libtool to hard-code these into programs
9867   ;;
9868
9869 cygwin* | mingw* | pw32* | cegcc*)
9870   version_type=windows
9871   shrext_cmds=".dll"
9872   need_version=no
9873   need_lib_prefix=no
9874
9875   case $GCC,$host_os in
9876   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9877     library_names_spec='$libname.dll.a'
9878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9879     postinstall_cmds='base_file=`basename \${file}`~
9880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9881       dldir=$destdir/`dirname \$dlpath`~
9882       test -d \$dldir || mkdir -p \$dldir~
9883       $install_prog $dir/$dlname \$dldir/$dlname~
9884       chmod a+x \$dldir/$dlname~
9885       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9886         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9887       fi'
9888     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9889       dlpath=$dir/\$dldll~
9890        $RM \$dlpath'
9891     shlibpath_overrides_runpath=yes
9892
9893     case $host_os in
9894     cygwin*)
9895       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9896       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9897       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9898       ;;
9899     mingw* | cegcc*)
9900       # MinGW DLLs use traditional 'lib' prefix
9901       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9902       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9903       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9904         # It is most probably a Windows format PATH printed by
9905         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9906         # path with ; separators, and with drive letters. We can handle the
9907         # drive letters (cygwin fileutils understands them), so leave them,
9908         # especially as we might pass files found there to a mingw objdump,
9909         # which wouldn't understand a cygwinified path. Ahh.
9910         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9911       else
9912         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9913       fi
9914       ;;
9915     pw32*)
9916       # pw32 DLLs use 'pw' prefix rather than 'lib'
9917       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918       ;;
9919     esac
9920     ;;
9921
9922   *)
9923     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9924     ;;
9925   esac
9926   dynamic_linker='Win32 ld.exe'
9927   # FIXME: first we should search . and the directory the executable is in
9928   shlibpath_var=PATH
9929   ;;
9930
9931 darwin* | rhapsody*)
9932   dynamic_linker="$host_os dyld"
9933   version_type=darwin
9934   need_lib_prefix=no
9935   need_version=no
9936   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9937   soname_spec='${libname}${release}${major}$shared_ext'
9938   shlibpath_overrides_runpath=yes
9939   shlibpath_var=DYLD_LIBRARY_PATH
9940   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9941
9942   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9943   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9944   ;;
9945
9946 dgux*)
9947   version_type=linux
9948   need_lib_prefix=no
9949   need_version=no
9950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9951   soname_spec='${libname}${release}${shared_ext}$major'
9952   shlibpath_var=LD_LIBRARY_PATH
9953   ;;
9954
9955 freebsd1*)
9956   dynamic_linker=no
9957   ;;
9958
9959 freebsd* | dragonfly*)
9960   # DragonFly does not have aout.  When/if they implement a new
9961   # versioning mechanism, adjust this.
9962   if test -x /usr/bin/objformat; then
9963     objformat=`/usr/bin/objformat`
9964   else
9965     case $host_os in
9966     freebsd[123]*) objformat=aout ;;
9967     *) objformat=elf ;;
9968     esac
9969   fi
9970   version_type=freebsd-$objformat
9971   case $version_type in
9972     freebsd-elf*)
9973       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9974       need_version=no
9975       need_lib_prefix=no
9976       ;;
9977     freebsd-*)
9978       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9979       need_version=yes
9980       ;;
9981   esac
9982   shlibpath_var=LD_LIBRARY_PATH
9983   case $host_os in
9984   freebsd2*)
9985     shlibpath_overrides_runpath=yes
9986     ;;
9987   freebsd3.[01]* | freebsdelf3.[01]*)
9988     shlibpath_overrides_runpath=yes
9989     hardcode_into_libs=yes
9990     ;;
9991   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9992   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9993     shlibpath_overrides_runpath=no
9994     hardcode_into_libs=yes
9995     ;;
9996   *) # from 4.6 on, and DragonFly
9997     shlibpath_overrides_runpath=yes
9998     hardcode_into_libs=yes
9999     ;;
10000   esac
10001   ;;
10002
10003 gnu*)
10004   version_type=linux
10005   need_lib_prefix=no
10006   need_version=no
10007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10008   soname_spec='${libname}${release}${shared_ext}$major'
10009   shlibpath_var=LD_LIBRARY_PATH
10010   hardcode_into_libs=yes
10011   ;;
10012
10013 hpux9* | hpux10* | hpux11*)
10014   # Give a soname corresponding to the major version so that dld.sl refuses to
10015   # link against other versions.
10016   version_type=sunos
10017   need_lib_prefix=no
10018   need_version=no
10019   case $host_cpu in
10020   ia64*)
10021     shrext_cmds='.so'
10022     hardcode_into_libs=yes
10023     dynamic_linker="$host_os dld.so"
10024     shlibpath_var=LD_LIBRARY_PATH
10025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027     soname_spec='${libname}${release}${shared_ext}$major'
10028     if test "X$HPUX_IA64_MODE" = X32; then
10029       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10030     else
10031       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10032     fi
10033     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10034     ;;
10035   hppa*64*)
10036     shrext_cmds='.sl'
10037     hardcode_into_libs=yes
10038     dynamic_linker="$host_os dld.sl"
10039     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10040     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042     soname_spec='${libname}${release}${shared_ext}$major'
10043     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10045     ;;
10046   *)
10047     shrext_cmds='.sl'
10048     dynamic_linker="$host_os dld.sl"
10049     shlibpath_var=SHLIB_PATH
10050     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052     soname_spec='${libname}${release}${shared_ext}$major'
10053     ;;
10054   esac
10055   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10056   postinstall_cmds='chmod 555 $lib'
10057   ;;
10058
10059 interix[3-9]*)
10060   version_type=linux
10061   need_lib_prefix=no
10062   need_version=no
10063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10064   soname_spec='${libname}${release}${shared_ext}$major'
10065   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10066   shlibpath_var=LD_LIBRARY_PATH
10067   shlibpath_overrides_runpath=no
10068   hardcode_into_libs=yes
10069   ;;
10070
10071 irix5* | irix6* | nonstopux*)
10072   case $host_os in
10073     nonstopux*) version_type=nonstopux ;;
10074     *)
10075         if test "$lt_cv_prog_gnu_ld" = yes; then
10076                 version_type=linux
10077         else
10078                 version_type=irix
10079         fi ;;
10080   esac
10081   need_lib_prefix=no
10082   need_version=no
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10085   case $host_os in
10086   irix5* | nonstopux*)
10087     libsuff= shlibsuff=
10088     ;;
10089   *)
10090     case $LD in # libtool.m4 will add one of these switches to LD
10091     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10092       libsuff= shlibsuff= libmagic=32-bit;;
10093     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10094       libsuff=32 shlibsuff=N32 libmagic=N32;;
10095     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10096       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10097     *) libsuff= shlibsuff= libmagic=never-match;;
10098     esac
10099     ;;
10100   esac
10101   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10102   shlibpath_overrides_runpath=no
10103   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10104   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10105   hardcode_into_libs=yes
10106   ;;
10107
10108 # No shared lib support for Linux oldld, aout, or coff.
10109 linux*oldld* | linux*aout* | linux*coff*)
10110   dynamic_linker=no
10111   ;;
10112
10113 # This must be Linux ELF.
10114 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10115   version_type=linux
10116   need_lib_prefix=no
10117   need_version=no
10118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119   soname_spec='${libname}${release}${shared_ext}$major'
10120   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10121   shlibpath_var=LD_LIBRARY_PATH
10122   shlibpath_overrides_runpath=no
10123   # Some binutils ld are patched to set DT_RUNPATH
10124   save_LDFLAGS=$LDFLAGS
10125   save_libdir=$libdir
10126   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10127        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h.  */
10130
10131 int
10132 main ()
10133 {
10134
10135   ;
10136   return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10140   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10141   shlibpath_overrides_runpath=yes
10142 fi
10143 fi
10144 rm -f core conftest.err conftest.$ac_objext \
10145     conftest$ac_exeext conftest.$ac_ext
10146   LDFLAGS=$save_LDFLAGS
10147   libdir=$save_libdir
10148
10149   # This implies no fast_install, which is unacceptable.
10150   # Some rework will be needed to allow for fast_install
10151   # before this can be enabled.
10152   hardcode_into_libs=yes
10153
10154   # Append ld.so.conf contents to the search path
10155   if test -f /etc/ld.so.conf; then
10156     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' ' '`
10157     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10158   fi
10159
10160   # We used to test for /lib/ld.so.1 and disable shared libraries on
10161   # powerpc, because MkLinux only supported shared libraries with the
10162   # GNU dynamic linker.  Since this was broken with cross compilers,
10163   # most powerpc-linux boxes support dynamic linking these days and
10164   # people can always --disable-shared, the test was removed, and we
10165   # assume the GNU/Linux dynamic linker is in use.
10166   dynamic_linker='GNU/Linux ld.so'
10167   ;;
10168
10169 netbsdelf*-gnu)
10170   version_type=linux
10171   need_lib_prefix=no
10172   need_version=no
10173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10174   soname_spec='${libname}${release}${shared_ext}$major'
10175   shlibpath_var=LD_LIBRARY_PATH
10176   shlibpath_overrides_runpath=no
10177   hardcode_into_libs=yes
10178   dynamic_linker='NetBSD ld.elf_so'
10179   ;;
10180
10181 netbsd*)
10182   version_type=sunos
10183   need_lib_prefix=no
10184   need_version=no
10185   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10187     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10188     dynamic_linker='NetBSD (a.out) ld.so'
10189   else
10190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10191     soname_spec='${libname}${release}${shared_ext}$major'
10192     dynamic_linker='NetBSD ld.elf_so'
10193   fi
10194   shlibpath_var=LD_LIBRARY_PATH
10195   shlibpath_overrides_runpath=yes
10196   hardcode_into_libs=yes
10197   ;;
10198
10199 newsos6)
10200   version_type=linux
10201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202   shlibpath_var=LD_LIBRARY_PATH
10203   shlibpath_overrides_runpath=yes
10204   ;;
10205
10206 *nto* | *qnx*)
10207   version_type=qnx
10208   need_lib_prefix=no
10209   need_version=no
10210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211   soname_spec='${libname}${release}${shared_ext}$major'
10212   shlibpath_var=LD_LIBRARY_PATH
10213   shlibpath_overrides_runpath=no
10214   hardcode_into_libs=yes
10215   dynamic_linker='ldqnx.so'
10216   ;;
10217
10218 openbsd*)
10219   version_type=sunos
10220   sys_lib_dlsearch_path_spec="/usr/lib"
10221   need_lib_prefix=no
10222   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10223   case $host_os in
10224     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10225     *)                          need_version=no  ;;
10226   esac
10227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10229   shlibpath_var=LD_LIBRARY_PATH
10230   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231     case $host_os in
10232       openbsd2.[89] | openbsd2.[89].*)
10233         shlibpath_overrides_runpath=no
10234         ;;
10235       *)
10236         shlibpath_overrides_runpath=yes
10237         ;;
10238       esac
10239   else
10240     shlibpath_overrides_runpath=yes
10241   fi
10242   ;;
10243
10244 os2*)
10245   libname_spec='$name'
10246   shrext_cmds=".dll"
10247   need_lib_prefix=no
10248   library_names_spec='$libname${shared_ext} $libname.a'
10249   dynamic_linker='OS/2 ld.exe'
10250   shlibpath_var=LIBPATH
10251   ;;
10252
10253 osf3* | osf4* | osf5*)
10254   version_type=osf
10255   need_lib_prefix=no
10256   need_version=no
10257   soname_spec='${libname}${release}${shared_ext}$major'
10258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259   shlibpath_var=LD_LIBRARY_PATH
10260   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10261   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10262   ;;
10263
10264 rdos*)
10265   dynamic_linker=no
10266   ;;
10267
10268 solaris*)
10269   version_type=linux
10270   need_lib_prefix=no
10271   need_version=no
10272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273   soname_spec='${libname}${release}${shared_ext}$major'
10274   shlibpath_var=LD_LIBRARY_PATH
10275   shlibpath_overrides_runpath=yes
10276   hardcode_into_libs=yes
10277   # ldd complains unless libraries are executable
10278   postinstall_cmds='chmod +x $lib'
10279   ;;
10280
10281 sunos4*)
10282   version_type=sunos
10283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10285   shlibpath_var=LD_LIBRARY_PATH
10286   shlibpath_overrides_runpath=yes
10287   if test "$with_gnu_ld" = yes; then
10288     need_lib_prefix=no
10289   fi
10290   need_version=yes
10291   ;;
10292
10293 sysv4 | sysv4.3*)
10294   version_type=linux
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296   soname_spec='${libname}${release}${shared_ext}$major'
10297   shlibpath_var=LD_LIBRARY_PATH
10298   case $host_vendor in
10299     sni)
10300       shlibpath_overrides_runpath=no
10301       need_lib_prefix=no
10302       runpath_var=LD_RUN_PATH
10303       ;;
10304     siemens)
10305       need_lib_prefix=no
10306       ;;
10307     motorola)
10308       need_lib_prefix=no
10309       need_version=no
10310       shlibpath_overrides_runpath=no
10311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10312       ;;
10313   esac
10314   ;;
10315
10316 sysv4*MP*)
10317   if test -d /usr/nec ;then
10318     version_type=linux
10319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10320     soname_spec='$libname${shared_ext}.$major'
10321     shlibpath_var=LD_LIBRARY_PATH
10322   fi
10323   ;;
10324
10325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10326   version_type=freebsd-elf
10327   need_lib_prefix=no
10328   need_version=no
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   shlibpath_var=LD_LIBRARY_PATH
10332   shlibpath_overrides_runpath=yes
10333   hardcode_into_libs=yes
10334   if test "$with_gnu_ld" = yes; then
10335     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10336   else
10337     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10338     case $host_os in
10339       sco3.2v5*)
10340         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10341         ;;
10342     esac
10343   fi
10344   sys_lib_dlsearch_path_spec='/usr/lib'
10345   ;;
10346
10347 tpf*)
10348   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10349   version_type=linux
10350   need_lib_prefix=no
10351   need_version=no
10352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353   shlibpath_var=LD_LIBRARY_PATH
10354   shlibpath_overrides_runpath=no
10355   hardcode_into_libs=yes
10356   ;;
10357
10358 uts4*)
10359   version_type=linux
10360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361   soname_spec='${libname}${release}${shared_ext}$major'
10362   shlibpath_var=LD_LIBRARY_PATH
10363   ;;
10364
10365 *)
10366   dynamic_linker=no
10367   ;;
10368 esac
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10370 $as_echo "$dynamic_linker" >&6; }
10371 test "$dynamic_linker" = no && can_build_shared=no
10372
10373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10374 if test "$GCC" = yes; then
10375   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10376 fi
10377
10378 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10379   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10380 fi
10381 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10382   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10383 fi
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10472 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10473 hardcode_action=
10474 if test -n "$hardcode_libdir_flag_spec" ||
10475    test -n "$runpath_var" ||
10476    test "X$hardcode_automatic" = "Xyes" ; then
10477
10478   # We can hardcode non-existent directories.
10479   if test "$hardcode_direct" != no &&
10480      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10481      # have to relink, otherwise we might link with an installed library
10482      # when we should be linking with a yet-to-be-installed one
10483      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10484      test "$hardcode_minus_L" != no; then
10485     # Linking always hardcodes the temporary library directory.
10486     hardcode_action=relink
10487   else
10488     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10489     hardcode_action=immediate
10490   fi
10491 else
10492   # We cannot hardcode anything, or else we can only hardcode existing
10493   # directories.
10494   hardcode_action=unsupported
10495 fi
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10497 $as_echo "$hardcode_action" >&6; }
10498
10499 if test "$hardcode_action" = relink ||
10500    test "$inherit_rpath" = yes; then
10501   # Fast installation is not supported
10502   enable_fast_install=no
10503 elif test "$shlibpath_overrides_runpath" = yes ||
10504      test "$enable_shared" = no; then
10505   # Fast installation is not necessary
10506   enable_fast_install=needless
10507 fi
10508
10509
10510
10511
10512
10513
10514   if test "x$enable_dlopen" != xyes; then
10515   enable_dlopen=unknown
10516   enable_dlopen_self=unknown
10517   enable_dlopen_self_static=unknown
10518 else
10519   lt_cv_dlopen=no
10520   lt_cv_dlopen_libs=
10521
10522   case $host_os in
10523   beos*)
10524     lt_cv_dlopen="load_add_on"
10525     lt_cv_dlopen_libs=
10526     lt_cv_dlopen_self=yes
10527     ;;
10528
10529   mingw* | pw32* | cegcc*)
10530     lt_cv_dlopen="LoadLibrary"
10531     lt_cv_dlopen_libs=
10532     ;;
10533
10534   cygwin*)
10535     lt_cv_dlopen="dlopen"
10536     lt_cv_dlopen_libs=
10537     ;;
10538
10539   darwin*)
10540   # if libdl is installed we need to link against it
10541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10542 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10544   $as_echo_n "(cached) " >&6
10545 else
10546   ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-ldl  $LIBS"
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h.  */
10550
10551 /* Override any GCC internal prototype to avoid an error.
10552    Use char because int might match the return type of a GCC
10553    builtin and then its argument prototype would still apply.  */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char dlopen ();
10558 int
10559 main ()
10560 {
10561 return dlopen ();
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567   ac_cv_lib_dl_dlopen=yes
10568 else
10569   ac_cv_lib_dl_dlopen=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext \
10572     conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10577 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10579 else
10580
10581     lt_cv_dlopen="dyld"
10582     lt_cv_dlopen_libs=
10583     lt_cv_dlopen_self=yes
10584
10585 fi
10586
10587     ;;
10588
10589   *)
10590     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10591 if test "x$ac_cv_func_shl_load" = x""yes; then :
10592   lt_cv_dlopen="shl_load"
10593 else
10594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10595 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10596 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10597   $as_echo_n "(cached) " >&6
10598 else
10599   ac_check_lib_save_LIBS=$LIBS
10600 LIBS="-ldld  $LIBS"
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h.  */
10603
10604 /* Override any GCC internal prototype to avoid an error.
10605    Use char because int might match the return type of a GCC
10606    builtin and then its argument prototype would still apply.  */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 char shl_load ();
10611 int
10612 main ()
10613 {
10614 return shl_load ();
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 if ac_fn_c_try_link "$LINENO"; then :
10620   ac_cv_lib_dld_shl_load=yes
10621 else
10622   ac_cv_lib_dld_shl_load=no
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext \
10625     conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10627 fi
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10629 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10630 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10631   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10632 else
10633   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10634 if test "x$ac_cv_func_dlopen" = x""yes; then :
10635   lt_cv_dlopen="dlopen"
10636 else
10637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10639 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10640   $as_echo_n "(cached) " >&6
10641 else
10642   ac_check_lib_save_LIBS=$LIBS
10643 LIBS="-ldl  $LIBS"
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h.  */
10646
10647 /* Override any GCC internal prototype to avoid an error.
10648    Use char because int might match the return type of a GCC
10649    builtin and then its argument prototype would still apply.  */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 char dlopen ();
10654 int
10655 main ()
10656 {
10657 return dlopen ();
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 if ac_fn_c_try_link "$LINENO"; then :
10663   ac_cv_lib_dl_dlopen=yes
10664 else
10665   ac_cv_lib_dl_dlopen=no
10666 fi
10667 rm -f core conftest.err conftest.$ac_objext \
10668     conftest$ac_exeext conftest.$ac_ext
10669 LIBS=$ac_check_lib_save_LIBS
10670 fi
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10673 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10674   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10675 else
10676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10677 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10678 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-lsvld  $LIBS"
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h.  */
10685
10686 /* Override any GCC internal prototype to avoid an error.
10687    Use char because int might match the return type of a GCC
10688    builtin and then its argument prototype would still apply.  */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char dlopen ();
10693 int
10694 main ()
10695 {
10696 return dlopen ();
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"; then :
10702   ac_cv_lib_svld_dlopen=yes
10703 else
10704   ac_cv_lib_svld_dlopen=no
10705 fi
10706 rm -f core conftest.err conftest.$ac_objext \
10707     conftest$ac_exeext conftest.$ac_ext
10708 LIBS=$ac_check_lib_save_LIBS
10709 fi
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10711 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10712 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10713   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10714 else
10715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10716 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10717 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10718   $as_echo_n "(cached) " >&6
10719 else
10720   ac_check_lib_save_LIBS=$LIBS
10721 LIBS="-ldld  $LIBS"
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h.  */
10724
10725 /* Override any GCC internal prototype to avoid an error.
10726    Use char because int might match the return type of a GCC
10727    builtin and then its argument prototype would still apply.  */
10728 #ifdef __cplusplus
10729 extern "C"
10730 #endif
10731 char dld_link ();
10732 int
10733 main ()
10734 {
10735 return dld_link ();
10736   ;
10737   return 0;
10738 }
10739 _ACEOF
10740 if ac_fn_c_try_link "$LINENO"; then :
10741   ac_cv_lib_dld_dld_link=yes
10742 else
10743   ac_cv_lib_dld_dld_link=no
10744 fi
10745 rm -f core conftest.err conftest.$ac_objext \
10746     conftest$ac_exeext conftest.$ac_ext
10747 LIBS=$ac_check_lib_save_LIBS
10748 fi
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10750 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10751 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10752   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10753 fi
10754
10755
10756 fi
10757
10758
10759 fi
10760
10761
10762 fi
10763
10764
10765 fi
10766
10767
10768 fi
10769
10770     ;;
10771   esac
10772
10773   if test "x$lt_cv_dlopen" != xno; then
10774     enable_dlopen=yes
10775   else
10776     enable_dlopen=no
10777   fi
10778
10779   case $lt_cv_dlopen in
10780   dlopen)
10781     save_CPPFLAGS="$CPPFLAGS"
10782     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10783
10784     save_LDFLAGS="$LDFLAGS"
10785     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10786
10787     save_LIBS="$LIBS"
10788     LIBS="$lt_cv_dlopen_libs $LIBS"
10789
10790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10791 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10792 if test "${lt_cv_dlopen_self+set}" = set; then :
10793   $as_echo_n "(cached) " >&6
10794 else
10795           if test "$cross_compiling" = yes; then :
10796   lt_cv_dlopen_self=cross
10797 else
10798   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10799   lt_status=$lt_dlunknown
10800   cat > conftest.$ac_ext <<_LT_EOF
10801 #line 10801 "configure"
10802 #include "confdefs.h"
10803
10804 #if HAVE_DLFCN_H
10805 #include <dlfcn.h>
10806 #endif
10807
10808 #include <stdio.h>
10809
10810 #ifdef RTLD_GLOBAL
10811 #  define LT_DLGLOBAL           RTLD_GLOBAL
10812 #else
10813 #  ifdef DL_GLOBAL
10814 #    define LT_DLGLOBAL         DL_GLOBAL
10815 #  else
10816 #    define LT_DLGLOBAL         0
10817 #  endif
10818 #endif
10819
10820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10821    find out it does not work in some platform. */
10822 #ifndef LT_DLLAZY_OR_NOW
10823 #  ifdef RTLD_LAZY
10824 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10825 #  else
10826 #    ifdef DL_LAZY
10827 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10828 #    else
10829 #      ifdef RTLD_NOW
10830 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10831 #      else
10832 #        ifdef DL_NOW
10833 #          define LT_DLLAZY_OR_NOW      DL_NOW
10834 #        else
10835 #          define LT_DLLAZY_OR_NOW      0
10836 #        endif
10837 #      endif
10838 #    endif
10839 #  endif
10840 #endif
10841
10842 void fnord() { int i=42;}
10843 int main ()
10844 {
10845   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10846   int status = $lt_dlunknown;
10847
10848   if (self)
10849     {
10850       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10851       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10852       /* dlclose (self); */
10853     }
10854   else
10855     puts (dlerror ());
10856
10857   return status;
10858 }
10859 _LT_EOF
10860   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10861   (eval $ac_link) 2>&5
10862   ac_status=$?
10863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10865     (./conftest; exit; ) >&5 2>/dev/null
10866     lt_status=$?
10867     case x$lt_status in
10868       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10869       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10870       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10871     esac
10872   else :
10873     # compilation failed
10874     lt_cv_dlopen_self=no
10875   fi
10876 fi
10877 rm -fr conftest*
10878
10879
10880 fi
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10882 $as_echo "$lt_cv_dlopen_self" >&6; }
10883
10884     if test "x$lt_cv_dlopen_self" = xyes; then
10885       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10886       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10887 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10888 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10889   $as_echo_n "(cached) " >&6
10890 else
10891           if test "$cross_compiling" = yes; then :
10892   lt_cv_dlopen_self_static=cross
10893 else
10894   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10895   lt_status=$lt_dlunknown
10896   cat > conftest.$ac_ext <<_LT_EOF
10897 #line 10897 "configure"
10898 #include "confdefs.h"
10899
10900 #if HAVE_DLFCN_H
10901 #include <dlfcn.h>
10902 #endif
10903
10904 #include <stdio.h>
10905
10906 #ifdef RTLD_GLOBAL
10907 #  define LT_DLGLOBAL           RTLD_GLOBAL
10908 #else
10909 #  ifdef DL_GLOBAL
10910 #    define LT_DLGLOBAL         DL_GLOBAL
10911 #  else
10912 #    define LT_DLGLOBAL         0
10913 #  endif
10914 #endif
10915
10916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10917    find out it does not work in some platform. */
10918 #ifndef LT_DLLAZY_OR_NOW
10919 #  ifdef RTLD_LAZY
10920 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10921 #  else
10922 #    ifdef DL_LAZY
10923 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10924 #    else
10925 #      ifdef RTLD_NOW
10926 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10927 #      else
10928 #        ifdef DL_NOW
10929 #          define LT_DLLAZY_OR_NOW      DL_NOW
10930 #        else
10931 #          define LT_DLLAZY_OR_NOW      0
10932 #        endif
10933 #      endif
10934 #    endif
10935 #  endif
10936 #endif
10937
10938 void fnord() { int i=42;}
10939 int main ()
10940 {
10941   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10942   int status = $lt_dlunknown;
10943
10944   if (self)
10945     {
10946       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10947       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10948       /* dlclose (self); */
10949     }
10950   else
10951     puts (dlerror ());
10952
10953   return status;
10954 }
10955 _LT_EOF
10956   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10957   (eval $ac_link) 2>&5
10958   ac_status=$?
10959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10961     (./conftest; exit; ) >&5 2>/dev/null
10962     lt_status=$?
10963     case x$lt_status in
10964       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10965       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10966       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10967     esac
10968   else :
10969     # compilation failed
10970     lt_cv_dlopen_self_static=no
10971   fi
10972 fi
10973 rm -fr conftest*
10974
10975
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10978 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10979     fi
10980
10981     CPPFLAGS="$save_CPPFLAGS"
10982     LDFLAGS="$save_LDFLAGS"
10983     LIBS="$save_LIBS"
10984     ;;
10985   esac
10986
10987   case $lt_cv_dlopen_self in
10988   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10989   *) enable_dlopen_self=unknown ;;
10990   esac
10991
10992   case $lt_cv_dlopen_self_static in
10993   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10994   *) enable_dlopen_self_static=unknown ;;
10995   esac
10996 fi
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014 striplib=
11015 old_striplib=
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11017 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11018 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11019   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11020   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11022 $as_echo "yes" >&6; }
11023 else
11024 # FIXME - insert some real tests, host_os isn't really good enough
11025   case $host_os in
11026   darwin*)
11027     if test -n "$STRIP" ; then
11028       striplib="$STRIP -x"
11029       old_striplib="$STRIP -S"
11030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031 $as_echo "yes" >&6; }
11032     else
11033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11035     fi
11036     ;;
11037   *)
11038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040     ;;
11041   esac
11042 fi
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055   # Report which library types will actually be built
11056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11057 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11059 $as_echo "$can_build_shared" >&6; }
11060
11061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11062 $as_echo_n "checking whether to build shared libraries... " >&6; }
11063   test "$can_build_shared" = "no" && enable_shared=no
11064
11065   # On AIX, shared libraries and static libraries use the same namespace, and
11066   # are all built from PIC.
11067   case $host_os in
11068   aix3*)
11069     test "$enable_shared" = yes && enable_static=no
11070     if test -n "$RANLIB"; then
11071       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11072       postinstall_cmds='$RANLIB $lib'
11073     fi
11074     ;;
11075
11076   aix[4-9]*)
11077     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11078       test "$enable_shared" = yes && enable_static=no
11079     fi
11080     ;;
11081   esac
11082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11083 $as_echo "$enable_shared" >&6; }
11084
11085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11086 $as_echo_n "checking whether to build static libraries... " >&6; }
11087   # Make sure either enable_shared or enable_static is yes.
11088   test "$enable_shared" = yes || enable_static=yes
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11090 $as_echo "$enable_static" >&6; }
11091
11092
11093
11094
11095 fi
11096 ac_ext=c
11097 ac_cpp='$CPP $CPPFLAGS'
11098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11101
11102 CC="$lt_save_CC"
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116         ac_config_commands="$ac_config_commands libtool"
11117
11118
11119
11120
11121 # Only expand once:
11122
11123
11124
11125
11126 pkg_failed=no
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
11128 $as_echo_n "checking for GEN4ASM... " >&6; }
11129
11130 if test -n "$GEN4ASM_CFLAGS"; then
11131     pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
11132  elif test -n "$PKG_CONFIG"; then
11133     if test -n "$PKG_CONFIG" && \
11134     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.1\""; } >&5
11135   ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.1") 2>&5
11136   ac_status=$?
11137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138   test $ac_status = 0; }; then
11139   pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.1" 2>/dev/null`
11140 else
11141   pkg_failed=yes
11142 fi
11143  else
11144     pkg_failed=untried
11145 fi
11146 if test -n "$GEN4ASM_LIBS"; then
11147     pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
11148  elif test -n "$PKG_CONFIG"; then
11149     if test -n "$PKG_CONFIG" && \
11150     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.1\""; } >&5
11151   ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.1") 2>&5
11152   ac_status=$?
11153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11154   test $ac_status = 0; }; then
11155   pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.1" 2>/dev/null`
11156 else
11157   pkg_failed=yes
11158 fi
11159  else
11160     pkg_failed=untried
11161 fi
11162
11163
11164
11165 if test $pkg_failed = yes; then
11166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11168
11169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11170         _pkg_short_errors_supported=yes
11171 else
11172         _pkg_short_errors_supported=no
11173 fi
11174         if test $_pkg_short_errors_supported = yes; then
11175                 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "intel-gen4asm >= 1.1" 2>&1`
11176         else
11177                 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors "intel-gen4asm >= 1.1" 2>&1`
11178         fi
11179         # Put the nasty error message in config.log where it belongs
11180         echo "$GEN4ASM_PKG_ERRORS" >&5
11181
11182         gen4asm=no
11183 elif test $pkg_failed = untried; then
11184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11186         gen4asm=no
11187 else
11188         GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
11189         GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
11190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11191 $as_echo "yes" >&6; }
11192         gen4asm=yes
11193 fi
11194  if test x$gen4asm = xyes; then
11195   HAVE_GEN4ASM_TRUE=
11196   HAVE_GEN4ASM_FALSE='#'
11197 else
11198   HAVE_GEN4ASM_TRUE='#'
11199   HAVE_GEN4ASM_FALSE=
11200 fi
11201
11202
11203
11204 pkg_failed=no
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
11206 $as_echo_n "checking for UDEV... " >&6; }
11207
11208 if test -n "$UDEV_CFLAGS"; then
11209     pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
11210  elif test -n "$PKG_CONFIG"; then
11211     if test -n "$PKG_CONFIG" && \
11212     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
11213   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
11214   ac_status=$?
11215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11216   test $ac_status = 0; }; then
11217   pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
11218 else
11219   pkg_failed=yes
11220 fi
11221  else
11222     pkg_failed=untried
11223 fi
11224 if test -n "$UDEV_LIBS"; then
11225     pkg_cv_UDEV_LIBS="$UDEV_LIBS"
11226  elif test -n "$PKG_CONFIG"; then
11227     if test -n "$PKG_CONFIG" && \
11228     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
11229   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
11230   ac_status=$?
11231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11232   test $ac_status = 0; }; then
11233   pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
11234 else
11235   pkg_failed=yes
11236 fi
11237  else
11238     pkg_failed=untried
11239 fi
11240
11241
11242
11243 if test $pkg_failed = yes; then
11244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11246
11247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11248         _pkg_short_errors_supported=yes
11249 else
11250         _pkg_short_errors_supported=no
11251 fi
11252         if test $_pkg_short_errors_supported = yes; then
11253                 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev" 2>&1`
11254         else
11255                 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev" 2>&1`
11256         fi
11257         # Put the nasty error message in config.log where it belongs
11258         echo "$UDEV_PKG_ERRORS" >&5
11259
11260         udev=no
11261 elif test $pkg_failed = untried; then
11262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11264         udev=no
11265 else
11266         UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
11267         UDEV_LIBS=$pkg_cv_UDEV_LIBS
11268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269 $as_echo "yes" >&6; }
11270         udev=yes
11271 fi
11272 if test x"$udev" = xyes; then
11273
11274 $as_echo "#define HAVE_UDEV 1" >>confdefs.h
11275
11276 fi
11277
11278
11279
11280 # Define a configure option for an alternate module directory
11281
11282 # Check whether --with-xorg-module-dir was given.
11283 if test "${with_xorg_module_dir+set}" = set; then :
11284   withval=$with_xorg_module_dir; moduledir="$withval"
11285 else
11286   moduledir="$libdir/xorg/modules"
11287 fi
11288
11289
11290 # Check whether --enable-dri was given.
11291 if test "${enable_dri+set}" = set; then :
11292   enableval=$enable_dri; DRI="$enableval"
11293 else
11294   DRI=auto
11295 fi
11296
11297
11298 # Check whether --enable-xvmc was given.
11299 if test "${enable_xvmc+set}" = set; then :
11300   enableval=$enable_xvmc; XVMC="$enableval"
11301 else
11302   XVMC=yes
11303 fi
11304
11305
11306 # Check whether --enable-kms-only was given.
11307 if test "${enable_kms_only+set}" = set; then :
11308   enableval=$enable_kms_only; KMS_ONLY="$enableval"
11309 else
11310   KMS_ONLY=no
11311 fi
11312
11313
11314 # Check whether --enable-debug was given.
11315 if test "${enable_debug+set}" = set; then :
11316   enableval=$enable_debug; DEBUG="$enableval"
11317 else
11318   DEBUG=yes
11319 fi
11320
11321
11322 # Store the list of server defined optional extensions in REQUIRED_MODULES
11323
11324
11325         SAVE_CFLAGS="$CFLAGS"
11326         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11327         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h.  */
11329
11330 #include "xorg-server.h"
11331 #if !defined RANDR
11332 #error RANDR not defined
11333 #endif
11334
11335 int
11336 main ()
11337 {
11338
11339   ;
11340   return 0;
11341 }
11342 _ACEOF
11343 if ac_fn_c_try_compile "$LINENO"; then :
11344   _EXT_CHECK=yes
11345 else
11346   _EXT_CHECK=no
11347 fi
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349         CFLAGS="$SAVE_CFLAGS"
11350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11351 $as_echo_n "checking if RANDR is defined... " >&6; }
11352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11353 $as_echo "$_EXT_CHECK" >&6; }
11354         if test "$_EXT_CHECK" != no; then
11355                 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11356         fi
11357
11358
11359
11360         SAVE_CFLAGS="$CFLAGS"
11361         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11362         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h.  */
11364
11365 #include "xorg-server.h"
11366 #if !defined RENDER
11367 #error RENDER not defined
11368 #endif
11369
11370 int
11371 main ()
11372 {
11373
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 if ac_fn_c_try_compile "$LINENO"; then :
11379   _EXT_CHECK=yes
11380 else
11381   _EXT_CHECK=no
11382 fi
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384         CFLAGS="$SAVE_CFLAGS"
11385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
11386 $as_echo_n "checking if RENDER is defined... " >&6; }
11387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11388 $as_echo "$_EXT_CHECK" >&6; }
11389         if test "$_EXT_CHECK" != no; then
11390                 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
11391         fi
11392
11393
11394
11395         SAVE_CFLAGS="$CFLAGS"
11396         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11397         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h.  */
11399
11400 #include "xorg-server.h"
11401 #if !defined XF86DRI
11402 #error XF86DRI not defined
11403 #endif
11404
11405 int
11406 main ()
11407 {
11408
11409   ;
11410   return 0;
11411 }
11412 _ACEOF
11413 if ac_fn_c_try_compile "$LINENO"; then :
11414   _EXT_CHECK=yes
11415 else
11416   _EXT_CHECK=no
11417 fi
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419         CFLAGS="$SAVE_CFLAGS"
11420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
11421 $as_echo_n "checking if XF86DRI is defined... " >&6; }
11422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11423 $as_echo "$_EXT_CHECK" >&6; }
11424         if test "$_EXT_CHECK" != no; then
11425                 REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
11426         fi
11427
11428
11429
11430         SAVE_CFLAGS="$CFLAGS"
11431         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11432         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h.  */
11434
11435 #include "xorg-server.h"
11436 #if !defined DPMSExtension
11437 #error DPMSExtension not defined
11438 #endif
11439
11440 int
11441 main ()
11442 {
11443
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_compile "$LINENO"; then :
11449   _EXT_CHECK=yes
11450 else
11451   _EXT_CHECK=no
11452 fi
11453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11454         CFLAGS="$SAVE_CFLAGS"
11455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
11456 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
11457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11458 $as_echo "$_EXT_CHECK" >&6; }
11459         if test "$_EXT_CHECK" != no; then
11460                 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
11461         fi
11462
11463
11464 # Obtain compiler/linker options for the driver dependencies
11465
11466 pkg_failed=no
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11468 $as_echo_n "checking for XORG... " >&6; }
11469
11470 if test -n "$XORG_CFLAGS"; then
11471     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11472  elif test -n "$PKG_CONFIG"; then
11473     if test -n "$PKG_CONFIG" && \
11474     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11475   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
11476   ac_status=$?
11477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478   test $ac_status = 0; }; then
11479   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11480 else
11481   pkg_failed=yes
11482 fi
11483  else
11484     pkg_failed=untried
11485 fi
11486 if test -n "$XORG_LIBS"; then
11487     pkg_cv_XORG_LIBS="$XORG_LIBS"
11488  elif test -n "$PKG_CONFIG"; then
11489     if test -n "$PKG_CONFIG" && \
11490     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11491   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
11492   ac_status=$?
11493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494   test $ac_status = 0; }; then
11495   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11496 else
11497   pkg_failed=yes
11498 fi
11499  else
11500     pkg_failed=untried
11501 fi
11502
11503
11504
11505 if test $pkg_failed = yes; then
11506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507 $as_echo "no" >&6; }
11508
11509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11510         _pkg_short_errors_supported=yes
11511 else
11512         _pkg_short_errors_supported=no
11513 fi
11514         if test $_pkg_short_errors_supported = yes; then
11515                 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
11516         else
11517                 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
11518         fi
11519         # Put the nasty error message in config.log where it belongs
11520         echo "$XORG_PKG_ERRORS" >&5
11521
11522         as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
11523
11524 $XORG_PKG_ERRORS
11525
11526 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11527 installed software in a non-standard prefix.
11528
11529 Alternatively, you may set the environment variables XORG_CFLAGS
11530 and XORG_LIBS to avoid the need to call pkg-config.
11531 See the pkg-config man page for more details." "$LINENO" 5
11532 elif test $pkg_failed = untried; then
11533         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11537 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11538 is in your PATH or set the PKG_CONFIG environment variable to the full
11539 path to pkg-config.
11540
11541 Alternatively, you may set the environment variables XORG_CFLAGS
11542 and XORG_LIBS to avoid the need to call pkg-config.
11543 See the pkg-config man page for more details.
11544
11545 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11546 See \`config.log' for more details" "$LINENO" 5 ; }
11547 else
11548         XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11549         XORG_LIBS=$pkg_cv_XORG_LIBS
11550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11551 $as_echo "yes" >&6; }
11552
11553 fi
11554
11555 pkg_failed=no
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
11557 $as_echo_n "checking for DRM... " >&6; }
11558
11559 if test -n "$DRM_CFLAGS"; then
11560     pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
11561  elif test -n "$PKG_CONFIG"; then
11562     if test -n "$PKG_CONFIG" && \
11563     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.23\""; } >&5
11564   ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.23") 2>&5
11565   ac_status=$?
11566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567   test $ac_status = 0; }; then
11568   pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.23" 2>/dev/null`
11569 else
11570   pkg_failed=yes
11571 fi
11572  else
11573     pkg_failed=untried
11574 fi
11575 if test -n "$DRM_LIBS"; then
11576     pkg_cv_DRM_LIBS="$DRM_LIBS"
11577  elif test -n "$PKG_CONFIG"; then
11578     if test -n "$PKG_CONFIG" && \
11579     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.23\""; } >&5
11580   ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.23") 2>&5
11581   ac_status=$?
11582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11583   test $ac_status = 0; }; then
11584   pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.23" 2>/dev/null`
11585 else
11586   pkg_failed=yes
11587 fi
11588  else
11589     pkg_failed=untried
11590 fi
11591
11592
11593
11594 if test $pkg_failed = yes; then
11595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597
11598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11599         _pkg_short_errors_supported=yes
11600 else
11601         _pkg_short_errors_supported=no
11602 fi
11603         if test $_pkg_short_errors_supported = yes; then
11604                 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.23" 2>&1`
11605         else
11606                 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.23" 2>&1`
11607         fi
11608         # Put the nasty error message in config.log where it belongs
11609         echo "$DRM_PKG_ERRORS" >&5
11610
11611         as_fn_error $? "Package requirements (libdrm >= 2.4.23) were not met:
11612
11613 $DRM_PKG_ERRORS
11614
11615 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11616 installed software in a non-standard prefix.
11617
11618 Alternatively, you may set the environment variables DRM_CFLAGS
11619 and DRM_LIBS to avoid the need to call pkg-config.
11620 See the pkg-config man page for more details." "$LINENO" 5
11621 elif test $pkg_failed = untried; then
11622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11624         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11626 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11627 is in your PATH or set the PKG_CONFIG environment variable to the full
11628 path to pkg-config.
11629
11630 Alternatively, you may set the environment variables DRM_CFLAGS
11631 and DRM_LIBS to avoid the need to call pkg-config.
11632 See the pkg-config man page for more details.
11633
11634 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11635 See \`config.log' for more details" "$LINENO" 5 ; }
11636 else
11637         DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
11638         DRM_LIBS=$pkg_cv_DRM_LIBS
11639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11640 $as_echo "yes" >&6; }
11641
11642 fi
11643
11644 pkg_failed=no
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
11646 $as_echo_n "checking for PCIACCESS... " >&6; }
11647
11648 if test -n "$PCIACCESS_CFLAGS"; then
11649     pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
11650  elif test -n "$PKG_CONFIG"; then
11651     if test -n "$PKG_CONFIG" && \
11652     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
11653   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
11654   ac_status=$?
11655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11656   test $ac_status = 0; }; then
11657   pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
11658 else
11659   pkg_failed=yes
11660 fi
11661  else
11662     pkg_failed=untried
11663 fi
11664 if test -n "$PCIACCESS_LIBS"; then
11665     pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
11666  elif test -n "$PKG_CONFIG"; then
11667     if test -n "$PKG_CONFIG" && \
11668     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
11669   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
11670   ac_status=$?
11671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672   test $ac_status = 0; }; then
11673   pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
11674 else
11675   pkg_failed=yes
11676 fi
11677  else
11678     pkg_failed=untried
11679 fi
11680
11681
11682
11683 if test $pkg_failed = yes; then
11684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686
11687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11688         _pkg_short_errors_supported=yes
11689 else
11690         _pkg_short_errors_supported=no
11691 fi
11692         if test $_pkg_short_errors_supported = yes; then
11693                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1`
11694         else
11695                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1`
11696         fi
11697         # Put the nasty error message in config.log where it belongs
11698         echo "$PCIACCESS_PKG_ERRORS" >&5
11699
11700         as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
11701
11702 $PCIACCESS_PKG_ERRORS
11703
11704 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11705 installed software in a non-standard prefix.
11706
11707 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
11708 and PCIACCESS_LIBS to avoid the need to call pkg-config.
11709 See the pkg-config man page for more details." "$LINENO" 5
11710 elif test $pkg_failed = untried; then
11711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11715 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11716 is in your PATH or set the PKG_CONFIG environment variable to the full
11717 path to pkg-config.
11718
11719 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
11720 and PCIACCESS_LIBS to avoid the need to call pkg-config.
11721 See the pkg-config man page for more details.
11722
11723 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11724 See \`config.log' for more details" "$LINENO" 5 ; }
11725 else
11726         PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
11727         PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
11728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729 $as_echo "yes" >&6; }
11730
11731 fi
11732
11733 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
11734
11735 save_CFLAGS="$CFLAGS"
11736 CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
11737 CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
11739 $as_echo_n "checking whether to include DRI support... " >&6; }
11740 if test x$DRI != xno; then
11741         as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
11743 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
11744 if eval "test \"\${$as_ac_File+set}\"" = set; then :
11745   $as_echo_n "(cached) " >&6
11746 else
11747   test "$cross_compiling" = yes &&
11748   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11749 if test -r "${sdkdir}/dri.h"; then
11750   eval "$as_ac_File=yes"
11751 else
11752   eval "$as_ac_File=no"
11753 fi
11754 fi
11755 eval ac_res=\$$as_ac_File
11756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11757 $as_echo "$ac_res" >&6; }
11758 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11759   have_dri_h="yes"
11760 else
11761   have_dri_h="no"
11762 fi
11763
11764         as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
11766 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
11767 if eval "test \"\${$as_ac_File+set}\"" = set; then :
11768   $as_echo_n "(cached) " >&6
11769 else
11770   test "$cross_compiling" = yes &&
11771   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11772 if test -r "${sdkdir}/sarea.h"; then
11773   eval "$as_ac_File=yes"
11774 else
11775   eval "$as_ac_File=no"
11776 fi
11777 fi
11778 eval ac_res=\$$as_ac_File
11779                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11780 $as_echo "$ac_res" >&6; }
11781 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11782   have_sarea_h="yes"
11783 else
11784   have_sarea_h="no"
11785 fi
11786
11787         as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
11789 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
11790 if eval "test \"\${$as_ac_File+set}\"" = set; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   test "$cross_compiling" = yes &&
11794   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11795 if test -r "${sdkdir}/dristruct.h"; then
11796   eval "$as_ac_File=yes"
11797 else
11798   eval "$as_ac_File=no"
11799 fi
11800 fi
11801 eval ac_res=\$$as_ac_File
11802                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11803 $as_echo "$ac_res" >&6; }
11804 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11805   have_dristruct_h="yes"
11806 else
11807   have_dristruct_h="no"
11808 fi
11809
11810 fi
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
11812 $as_echo_n "checking whether to include DRI support... " >&6; }
11813 if test x$DRI = xauto; then
11814         if test "$have_dri_h" = yes -a \
11815                 "$have_sarea_h" = yes -a \
11816                 "$have_dristruct_h" = yes; then
11817                 DRI="yes"
11818         else
11819                 DRI="no"
11820         fi
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
11823 $as_echo "$DRI" >&6; }
11824 CFLAGS="$save_CFLAGS $DEBUGFLAGS"
11825
11826  if test x$DRI = xyes; then
11827   DRI_TRUE=
11828   DRI_FALSE='#'
11829 else
11830   DRI_TRUE='#'
11831   DRI_FALSE=
11832 fi
11833
11834 if test "$DRI" = yes; then
11835
11836 pkg_failed=no
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
11838 $as_echo_n "checking for DRI... " >&6; }
11839
11840 if test -n "$DRI_CFLAGS"; then
11841     pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
11842  elif test -n "$PKG_CONFIG"; then
11843     if test -n "$PKG_CONFIG" && \
11844     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
11845   ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
11846   ac_status=$?
11847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11848   test $ac_status = 0; }; then
11849   pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
11850 else
11851   pkg_failed=yes
11852 fi
11853  else
11854     pkg_failed=untried
11855 fi
11856 if test -n "$DRI_LIBS"; then
11857     pkg_cv_DRI_LIBS="$DRI_LIBS"
11858  elif test -n "$PKG_CONFIG"; then
11859     if test -n "$PKG_CONFIG" && \
11860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
11861   ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
11862   ac_status=$?
11863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11864   test $ac_status = 0; }; then
11865   pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
11866 else
11867   pkg_failed=yes
11868 fi
11869  else
11870     pkg_failed=untried
11871 fi
11872
11873
11874
11875 if test $pkg_failed = yes; then
11876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11878
11879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11880         _pkg_short_errors_supported=yes
11881 else
11882         _pkg_short_errors_supported=no
11883 fi
11884         if test $_pkg_short_errors_supported = yes; then
11885                 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86driproto" 2>&1`
11886         else
11887                 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86driproto" 2>&1`
11888         fi
11889         # Put the nasty error message in config.log where it belongs
11890         echo "$DRI_PKG_ERRORS" >&5
11891
11892         as_fn_error $? "Package requirements (xf86driproto) were not met:
11893
11894 $DRI_PKG_ERRORS
11895
11896 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11897 installed software in a non-standard prefix.
11898
11899 Alternatively, you may set the environment variables DRI_CFLAGS
11900 and DRI_LIBS to avoid the need to call pkg-config.
11901 See the pkg-config man page for more details." "$LINENO" 5
11902 elif test $pkg_failed = untried; then
11903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11905         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11907 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11908 is in your PATH or set the PKG_CONFIG environment variable to the full
11909 path to pkg-config.
11910
11911 Alternatively, you may set the environment variables DRI_CFLAGS
11912 and DRI_LIBS to avoid the need to call pkg-config.
11913 See the pkg-config man page for more details.
11914
11915 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11916 See \`config.log' for more details" "$LINENO" 5 ; }
11917 else
11918         DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
11919         DRI_LIBS=$pkg_cv_DRI_LIBS
11920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11921 $as_echo "yes" >&6; }
11922
11923 fi
11924
11925 $as_echo "#define XF86DRI 1" >>confdefs.h
11926
11927
11928 $as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
11929
11930 fi
11931
11932 if test "$XVMC" = yes; then
11933
11934 pkg_failed=no
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
11936 $as_echo_n "checking for XVMCLIB... " >&6; }
11937
11938 if test -n "$XVMCLIB_CFLAGS"; then
11939     pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
11940  elif test -n "$PKG_CONFIG"; then
11941     if test -n "$PKG_CONFIG" && \
11942     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux\""; } >&5
11943   ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux") 2>&5
11944   ac_status=$?
11945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11946   test $ac_status = 0; }; then
11947   pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
11948 else
11949   pkg_failed=yes
11950 fi
11951  else
11952     pkg_failed=untried
11953 fi
11954 if test -n "$XVMCLIB_LIBS"; then
11955     pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
11956  elif test -n "$PKG_CONFIG"; then
11957     if test -n "$PKG_CONFIG" && \
11958     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux\""; } >&5
11959   ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux") 2>&5
11960   ac_status=$?
11961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962   test $ac_status = 0; }; then
11963   pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
11964 else
11965   pkg_failed=yes
11966 fi
11967  else
11968     pkg_failed=untried
11969 fi
11970
11971
11972
11973 if test $pkg_failed = yes; then
11974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976
11977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11978         _pkg_short_errors_supported=yes
11979 else
11980         _pkg_short_errors_supported=no
11981 fi
11982         if test $_pkg_short_errors_supported = yes; then
11983                 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>&1`
11984         else
11985                 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>&1`
11986         fi
11987         # Put the nasty error message in config.log where it belongs
11988         echo "$XVMCLIB_PKG_ERRORS" >&5
11989
11990         XVMC=no
11991 elif test $pkg_failed = untried; then
11992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11994         XVMC=no
11995 else
11996         XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
11997         XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
11998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999 $as_echo "yes" >&6; }
12000         XVMC=yes
12001 fi
12002 fi
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
12004 $as_echo_n "checking whether to include XvMC support... " >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
12006 $as_echo "$XVMC" >&6; }
12007  if test x$XVMC = xyes; then
12008   XVMC_TRUE=
12009   XVMC_FALSE='#'
12010 else
12011   XVMC_TRUE='#'
12012   XVMC_FALSE=
12013 fi
12014
12015 if test "x$XVMC" = xyes; then
12016
12017 $as_echo "#define ENABLE_XVMC 1" >>confdefs.h
12018
12019 fi
12020
12021  if test x$KMS_ONLY = xyes; then
12022   KMS_ONLY_TRUE=
12023   KMS_ONLY_FALSE='#'
12024 else
12025   KMS_ONLY_TRUE='#'
12026   KMS_ONLY_FALSE=
12027 fi
12028
12029 if test "x$KMS_ONLY" = xyes; then
12030
12031 $as_echo "#define KMS_ONLY 1" >>confdefs.h
12032
12033 fi
12034
12035 if test "x$DEBUG" = xno; then
12036
12037 $as_echo "#define NDEBUG 1" >>confdefs.h
12038
12039 fi
12040
12041 DRIVER_NAME=intel
12042
12043
12044
12045 ac_config_files="$ac_config_files Makefile uxa/Makefile src/Makefile src/xvmc/Makefile src/xvmc/shader/Makefile src/xvmc/shader/mc/Makefile src/xvmc/shader/vld/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile man/Makefile src/render_program/Makefile"
12046
12047 cat >confcache <<\_ACEOF
12048 # This file is a shell script that caches the results of configure
12049 # tests run on this system so they can be shared between configure
12050 # scripts and configure runs, see configure's option --config-cache.
12051 # It is not useful on other systems.  If it contains results you don't
12052 # want to keep, you may remove or edit it.
12053 #
12054 # config.status only pays attention to the cache file if you give it
12055 # the --recheck option to rerun configure.
12056 #
12057 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12058 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12059 # following values.
12060
12061 _ACEOF
12062
12063 # The following way of writing the cache mishandles newlines in values,
12064 # but we know of no workaround that is simple, portable, and efficient.
12065 # So, we kill variables containing newlines.
12066 # Ultrix sh set writes to stderr and can't be redirected directly,
12067 # and sets the high bit in the cache file unless we assign to the vars.
12068 (
12069   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12070     eval ac_val=\$$ac_var
12071     case $ac_val in #(
12072     *${as_nl}*)
12073       case $ac_var in #(
12074       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12076       esac
12077       case $ac_var in #(
12078       _ | IFS | as_nl) ;; #(
12079       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12080       *) { eval $ac_var=; unset $ac_var;} ;;
12081       esac ;;
12082     esac
12083   done
12084
12085   (set) 2>&1 |
12086     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12087     *${as_nl}ac_space=\ *)
12088       # `set' does not quote correctly, so add quotes: double-quote
12089       # substitution turns \\\\ into \\, and sed turns \\ into \.
12090       sed -n \
12091         "s/'/'\\\\''/g;
12092           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12093       ;; #(
12094     *)
12095       # `set' quotes correctly as required by POSIX, so do not add quotes.
12096       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12097       ;;
12098     esac |
12099     sort
12100 ) |
12101   sed '
12102      /^ac_cv_env_/b end
12103      t clear
12104      :clear
12105      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12106      t end
12107      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12108      :end' >>confcache
12109 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12110   if test -w "$cache_file"; then
12111     test "x$cache_file" != "x/dev/null" &&
12112       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12113 $as_echo "$as_me: updating cache $cache_file" >&6;}
12114     cat confcache >$cache_file
12115   else
12116     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12117 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12118   fi
12119 fi
12120 rm -f confcache
12121
12122 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12123 # Let make expand exec_prefix.
12124 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12125
12126 DEFS=-DHAVE_CONFIG_H
12127
12128 ac_libobjs=
12129 ac_ltlibobjs=
12130 U=
12131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12132   # 1. Remove the extension, and $U if already installed.
12133   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12134   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12135   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12136   #    will be set to the directory where LIBOBJS objects are built.
12137   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12138   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12139 done
12140 LIBOBJS=$ac_libobjs
12141
12142 LTLIBOBJS=$ac_ltlibobjs
12143
12144
12145  if test -n "$EXEEXT"; then
12146   am__EXEEXT_TRUE=
12147   am__EXEEXT_FALSE='#'
12148 else
12149   am__EXEEXT_TRUE='#'
12150   am__EXEEXT_FALSE=
12151 fi
12152
12153 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12154   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12156 fi
12157 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12158   as_fn_error $? "conditional \"AMDEP\" was never defined.
12159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12160 fi
12161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12162   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12164 fi
12165 if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
12166   as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
12167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12168 fi
12169 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
12170   as_fn_error $? "conditional \"DRI\" was never defined.
12171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12172 fi
12173 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
12174   as_fn_error $? "conditional \"XVMC\" was never defined.
12175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12176 fi
12177 if test -z "${KMS_ONLY_TRUE}" && test -z "${KMS_ONLY_FALSE}"; then
12178   as_fn_error $? "conditional \"KMS_ONLY\" was never defined.
12179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12180 fi
12181
12182 : ${CONFIG_STATUS=./config.status}
12183 ac_write_fail=0
12184 ac_clean_files_save=$ac_clean_files
12185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12187 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12188 as_write_fail=0
12189 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12190 #! $SHELL
12191 # Generated by $as_me.
12192 # Run this file to recreate the current configuration.
12193 # Compiler output produced by configure, useful for debugging
12194 # configure, is in config.log if it exists.
12195
12196 debug=false
12197 ac_cs_recheck=false
12198 ac_cs_silent=false
12199
12200 SHELL=\${CONFIG_SHELL-$SHELL}
12201 export SHELL
12202 _ASEOF
12203 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12204 ## -------------------- ##
12205 ## M4sh Initialization. ##
12206 ## -------------------- ##
12207
12208 # Be more Bourne compatible
12209 DUALCASE=1; export DUALCASE # for MKS sh
12210 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12211   emulate sh
12212   NULLCMD=:
12213   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12214   # is contrary to our usage.  Disable this feature.
12215   alias -g '${1+"$@"}'='"$@"'
12216   setopt NO_GLOB_SUBST
12217 else
12218   case `(set -o) 2>/dev/null` in #(
12219   *posix*) :
12220     set -o posix ;; #(
12221   *) :
12222      ;;
12223 esac
12224 fi
12225
12226
12227 as_nl='
12228 '
12229 export as_nl
12230 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12231 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12234 # Prefer a ksh shell builtin over an external printf program on Solaris,
12235 # but without wasting forks for bash or zsh.
12236 if test -z "$BASH_VERSION$ZSH_VERSION" \
12237     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12238   as_echo='print -r --'
12239   as_echo_n='print -rn --'
12240 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12241   as_echo='printf %s\n'
12242   as_echo_n='printf %s'
12243 else
12244   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12245     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12246     as_echo_n='/usr/ucb/echo -n'
12247   else
12248     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12249     as_echo_n_body='eval
12250       arg=$1;
12251       case $arg in #(
12252       *"$as_nl"*)
12253         expr "X$arg" : "X\\(.*\\)$as_nl";
12254         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12255       esac;
12256       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12257     '
12258     export as_echo_n_body
12259     as_echo_n='sh -c $as_echo_n_body as_echo'
12260   fi
12261   export as_echo_body
12262   as_echo='sh -c $as_echo_body as_echo'
12263 fi
12264
12265 # The user is always right.
12266 if test "${PATH_SEPARATOR+set}" != set; then
12267   PATH_SEPARATOR=:
12268   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12269     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12270       PATH_SEPARATOR=';'
12271   }
12272 fi
12273
12274
12275 # IFS
12276 # We need space, tab and new line, in precisely that order.  Quoting is
12277 # there to prevent editors from complaining about space-tab.
12278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12279 # splitting by setting IFS to empty value.)
12280 IFS=" ""        $as_nl"
12281
12282 # Find who we are.  Look in the path if we contain no directory separator.
12283 case $0 in #((
12284   *[\\/]* ) as_myself=$0 ;;
12285   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12287 do
12288   IFS=$as_save_IFS
12289   test -z "$as_dir" && as_dir=.
12290     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12291   done
12292 IFS=$as_save_IFS
12293
12294      ;;
12295 esac
12296 # We did not find ourselves, most probably we were run as `sh COMMAND'
12297 # in which case we are not to be found in the path.
12298 if test "x$as_myself" = x; then
12299   as_myself=$0
12300 fi
12301 if test ! -f "$as_myself"; then
12302   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12303   exit 1
12304 fi
12305
12306 # Unset variables that we do not need and which cause bugs (e.g. in
12307 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12308 # suppresses any "Segmentation fault" message there.  '((' could
12309 # trigger a bug in pdksh 5.2.14.
12310 for as_var in BASH_ENV ENV MAIL MAILPATH
12311 do eval test x\${$as_var+set} = xset \
12312   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12313 done
12314 PS1='$ '
12315 PS2='> '
12316 PS4='+ '
12317
12318 # NLS nuisances.
12319 LC_ALL=C
12320 export LC_ALL
12321 LANGUAGE=C
12322 export LANGUAGE
12323
12324 # CDPATH.
12325 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12326
12327
12328 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12329 # ----------------------------------------
12330 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12331 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12332 # script with STATUS, using 1 if that was 0.
12333 as_fn_error ()
12334 {
12335   as_status=$1; test $as_status -eq 0 && as_status=1
12336   if test "$4"; then
12337     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12338     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12339   fi
12340   $as_echo "$as_me: error: $2" >&2
12341   as_fn_exit $as_status
12342 } # as_fn_error
12343
12344
12345 # as_fn_set_status STATUS
12346 # -----------------------
12347 # Set $? to STATUS, without forking.
12348 as_fn_set_status ()
12349 {
12350   return $1
12351 } # as_fn_set_status
12352
12353 # as_fn_exit STATUS
12354 # -----------------
12355 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12356 as_fn_exit ()
12357 {
12358   set +e
12359   as_fn_set_status $1
12360   exit $1
12361 } # as_fn_exit
12362
12363 # as_fn_unset VAR
12364 # ---------------
12365 # Portably unset VAR.
12366 as_fn_unset ()
12367 {
12368   { eval $1=; unset $1;}
12369 }
12370 as_unset=as_fn_unset
12371 # as_fn_append VAR VALUE
12372 # ----------------------
12373 # Append the text in VALUE to the end of the definition contained in VAR. Take
12374 # advantage of any shell optimizations that allow amortized linear growth over
12375 # repeated appends, instead of the typical quadratic growth present in naive
12376 # implementations.
12377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12378   eval 'as_fn_append ()
12379   {
12380     eval $1+=\$2
12381   }'
12382 else
12383   as_fn_append ()
12384   {
12385     eval $1=\$$1\$2
12386   }
12387 fi # as_fn_append
12388
12389 # as_fn_arith ARG...
12390 # ------------------
12391 # Perform arithmetic evaluation on the ARGs, and store the result in the
12392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12393 # must be portable across $(()) and expr.
12394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12395   eval 'as_fn_arith ()
12396   {
12397     as_val=$(( $* ))
12398   }'
12399 else
12400   as_fn_arith ()
12401   {
12402     as_val=`expr "$@" || test $? -eq 1`
12403   }
12404 fi # as_fn_arith
12405
12406
12407 if expr a : '\(a\)' >/dev/null 2>&1 &&
12408    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12409   as_expr=expr
12410 else
12411   as_expr=false
12412 fi
12413
12414 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12415   as_basename=basename
12416 else
12417   as_basename=false
12418 fi
12419
12420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12421   as_dirname=dirname
12422 else
12423   as_dirname=false
12424 fi
12425
12426 as_me=`$as_basename -- "$0" ||
12427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12428          X"$0" : 'X\(//\)$' \| \
12429          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12430 $as_echo X/"$0" |
12431     sed '/^.*\/\([^/][^/]*\)\/*$/{
12432             s//\1/
12433             q
12434           }
12435           /^X\/\(\/\/\)$/{
12436             s//\1/
12437             q
12438           }
12439           /^X\/\(\/\).*/{
12440             s//\1/
12441             q
12442           }
12443           s/.*/./; q'`
12444
12445 # Avoid depending upon Character Ranges.
12446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12449 as_cr_digits='0123456789'
12450 as_cr_alnum=$as_cr_Letters$as_cr_digits
12451
12452 ECHO_C= ECHO_N= ECHO_T=
12453 case `echo -n x` in #(((((
12454 -n*)
12455   case `echo 'xy\c'` in
12456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12457   xy)  ECHO_C='\c';;
12458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12459        ECHO_T=' ';;
12460   esac;;
12461 *)
12462   ECHO_N='-n';;
12463 esac
12464
12465 rm -f conf$$ conf$$.exe conf$$.file
12466 if test -d conf$$.dir; then
12467   rm -f conf$$.dir/conf$$.file
12468 else
12469   rm -f conf$$.dir
12470   mkdir conf$$.dir 2>/dev/null
12471 fi
12472 if (echo >conf$$.file) 2>/dev/null; then
12473   if ln -s conf$$.file conf$$ 2>/dev/null; then
12474     as_ln_s='ln -s'
12475     # ... but there are two gotchas:
12476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12478     # In both cases, we have to default to `cp -p'.
12479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12480       as_ln_s='cp -p'
12481   elif ln conf$$.file conf$$ 2>/dev/null; then
12482     as_ln_s=ln
12483   else
12484     as_ln_s='cp -p'
12485   fi
12486 else
12487   as_ln_s='cp -p'
12488 fi
12489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12490 rmdir conf$$.dir 2>/dev/null
12491
12492
12493 # as_fn_mkdir_p
12494 # -------------
12495 # Create "$as_dir" as a directory, including parents if necessary.
12496 as_fn_mkdir_p ()
12497 {
12498
12499   case $as_dir in #(
12500   -*) as_dir=./$as_dir;;
12501   esac
12502   test -d "$as_dir" || eval $as_mkdir_p || {
12503     as_dirs=
12504     while :; do
12505       case $as_dir in #(
12506       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12507       *) as_qdir=$as_dir;;
12508       esac
12509       as_dirs="'$as_qdir' $as_dirs"
12510       as_dir=`$as_dirname -- "$as_dir" ||
12511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12512          X"$as_dir" : 'X\(//\)[^/]' \| \
12513          X"$as_dir" : 'X\(//\)$' \| \
12514          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12515 $as_echo X"$as_dir" |
12516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12517             s//\1/
12518             q
12519           }
12520           /^X\(\/\/\)[^/].*/{
12521             s//\1/
12522             q
12523           }
12524           /^X\(\/\/\)$/{
12525             s//\1/
12526             q
12527           }
12528           /^X\(\/\).*/{
12529             s//\1/
12530             q
12531           }
12532           s/.*/./; q'`
12533       test -d "$as_dir" && break
12534     done
12535     test -z "$as_dirs" || eval "mkdir $as_dirs"
12536   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12537
12538
12539 } # as_fn_mkdir_p
12540 if mkdir -p . 2>/dev/null; then
12541   as_mkdir_p='mkdir -p "$as_dir"'
12542 else
12543   test -d ./-p && rmdir ./-p
12544   as_mkdir_p=false
12545 fi
12546
12547 if test -x / >/dev/null 2>&1; then
12548   as_test_x='test -x'
12549 else
12550   if ls -dL / >/dev/null 2>&1; then
12551     as_ls_L_option=L
12552   else
12553     as_ls_L_option=
12554   fi
12555   as_test_x='
12556     eval sh -c '\''
12557       if test -d "$1"; then
12558         test -d "$1/.";
12559       else
12560         case $1 in #(
12561         -*)set "./$1";;
12562         esac;
12563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12564         ???[sx]*):;;*)false;;esac;fi
12565     '\'' sh
12566   '
12567 fi
12568 as_executable_p=$as_test_x
12569
12570 # Sed expression to map a string onto a valid CPP name.
12571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12572
12573 # Sed expression to map a string onto a valid variable name.
12574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12575
12576
12577 exec 6>&1
12578 ## ----------------------------------- ##
12579 ## Main body of $CONFIG_STATUS script. ##
12580 ## ----------------------------------- ##
12581 _ASEOF
12582 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12583
12584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585 # Save the log message, to keep $0 and so on meaningful, and to
12586 # report actual input values of CONFIG_FILES etc. instead of their
12587 # values after options handling.
12588 ac_log="
12589 This file was extended by xf86-video-intel $as_me 2.15.0, which was
12590 generated by GNU Autoconf 2.67.  Invocation command line was
12591
12592   CONFIG_FILES    = $CONFIG_FILES
12593   CONFIG_HEADERS  = $CONFIG_HEADERS
12594   CONFIG_LINKS    = $CONFIG_LINKS
12595   CONFIG_COMMANDS = $CONFIG_COMMANDS
12596   $ $0 $@
12597
12598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12599 "
12600
12601 _ACEOF
12602
12603 case $ac_config_files in *"
12604 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12605 esac
12606
12607 case $ac_config_headers in *"
12608 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12609 esac
12610
12611
12612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12613 # Files that config.status was made for.
12614 config_files="$ac_config_files"
12615 config_headers="$ac_config_headers"
12616 config_commands="$ac_config_commands"
12617
12618 _ACEOF
12619
12620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12621 ac_cs_usage="\
12622 \`$as_me' instantiates files and other configuration actions
12623 from templates according to the current configuration.  Unless the files
12624 and actions are specified as TAGs, all are instantiated by default.
12625
12626 Usage: $0 [OPTION]... [TAG]...
12627
12628   -h, --help       print this help, then exit
12629   -V, --version    print version number and configuration settings, then exit
12630       --config     print configuration, then exit
12631   -q, --quiet, --silent
12632                    do not print progress messages
12633   -d, --debug      don't remove temporary files
12634       --recheck    update $as_me by reconfiguring in the same conditions
12635       --file=FILE[:TEMPLATE]
12636                    instantiate the configuration file FILE
12637       --header=FILE[:TEMPLATE]
12638                    instantiate the configuration header FILE
12639
12640 Configuration files:
12641 $config_files
12642
12643 Configuration headers:
12644 $config_headers
12645
12646 Configuration commands:
12647 $config_commands
12648
12649 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12650
12651 _ACEOF
12652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12653 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12654 ac_cs_version="\\
12655 xf86-video-intel config.status 2.15.0
12656 configured by $0, generated by GNU Autoconf 2.67,
12657   with options \\"\$ac_cs_config\\"
12658
12659 Copyright (C) 2010 Free Software Foundation, Inc.
12660 This config.status script is free software; the Free Software Foundation
12661 gives unlimited permission to copy, distribute and modify it."
12662
12663 ac_pwd='$ac_pwd'
12664 srcdir='$srcdir'
12665 INSTALL='$INSTALL'
12666 MKDIR_P='$MKDIR_P'
12667 AWK='$AWK'
12668 test -n "\$AWK" || AWK=awk
12669 _ACEOF
12670
12671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12672 # The default lists apply if the user does not specify any file.
12673 ac_need_defaults=:
12674 while test $# != 0
12675 do
12676   case $1 in
12677   --*=?*)
12678     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12679     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12680     ac_shift=:
12681     ;;
12682   --*=)
12683     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12684     ac_optarg=
12685     ac_shift=:
12686     ;;
12687   *)
12688     ac_option=$1
12689     ac_optarg=$2
12690     ac_shift=shift
12691     ;;
12692   esac
12693
12694   case $ac_option in
12695   # Handling of the options.
12696   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12697     ac_cs_recheck=: ;;
12698   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12699     $as_echo "$ac_cs_version"; exit ;;
12700   --config | --confi | --conf | --con | --co | --c )
12701     $as_echo "$ac_cs_config"; exit ;;
12702   --debug | --debu | --deb | --de | --d | -d )
12703     debug=: ;;
12704   --file | --fil | --fi | --f )
12705     $ac_shift
12706     case $ac_optarg in
12707     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12708     '') as_fn_error $? "missing file argument" ;;
12709     esac
12710     as_fn_append CONFIG_FILES " '$ac_optarg'"
12711     ac_need_defaults=false;;
12712   --header | --heade | --head | --hea )
12713     $ac_shift
12714     case $ac_optarg in
12715     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12716     esac
12717     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12718     ac_need_defaults=false;;
12719   --he | --h)
12720     # Conflict between --help and --header
12721     as_fn_error $? "ambiguous option: \`$1'
12722 Try \`$0 --help' for more information.";;
12723   --help | --hel | -h )
12724     $as_echo "$ac_cs_usage"; exit ;;
12725   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12726   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12727     ac_cs_silent=: ;;
12728
12729   # This is an error.
12730   -*) as_fn_error $? "unrecognized option: \`$1'
12731 Try \`$0 --help' for more information." ;;
12732
12733   *) as_fn_append ac_config_targets " $1"
12734      ac_need_defaults=false ;;
12735
12736   esac
12737   shift
12738 done
12739
12740 ac_configure_extra_args=
12741
12742 if $ac_cs_silent; then
12743   exec 6>/dev/null
12744   ac_configure_extra_args="$ac_configure_extra_args --silent"
12745 fi
12746
12747 _ACEOF
12748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12749 if \$ac_cs_recheck; then
12750   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12751   shift
12752   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12753   CONFIG_SHELL='$SHELL'
12754   export CONFIG_SHELL
12755   exec "\$@"
12756 fi
12757
12758 _ACEOF
12759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12760 exec 5>>config.log
12761 {
12762   echo
12763   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12764 ## Running $as_me. ##
12765 _ASBOX
12766   $as_echo "$ac_log"
12767 } >&5
12768
12769 _ACEOF
12770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12771 #
12772 # INIT-COMMANDS
12773 #
12774 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12775
12776
12777 # The HP-UX ksh and POSIX shell print the target directory to stdout
12778 # if CDPATH is set.
12779 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12780
12781 sed_quote_subst='$sed_quote_subst'
12782 double_quote_subst='$double_quote_subst'
12783 delay_variable_subst='$delay_variable_subst'
12784 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12785 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12786 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12787 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12788 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12789 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12790 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12791 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12792 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12793 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12794 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12795 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12796 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12797 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12798 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12799 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12800 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12801 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12802 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12803 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12804 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12805 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12806 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12807 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12808 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12809 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12810 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12811 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12812 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12813 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12814 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12815 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12816 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12817 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12818 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12819 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12820 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12821 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12822 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12823 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12824 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12825 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12826 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12827 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12828 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"`'
12829 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"`'
12830 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12831 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12832 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12833 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12834 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12835 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12836 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12837 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12838 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12839 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12840 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12841 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12842 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12843 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12844 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12845 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12846 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12847 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12848 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12849 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12850 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12851 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12852 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12853 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12854 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12855 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12856 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12857 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12858 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12859 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12860 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12861 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12862 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12863 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12864 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12865 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12866 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12867 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12868 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12869 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12870 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12871 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12872 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12873 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12874 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12875 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12876 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12877 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12878 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12879 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12880 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12881 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12882 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12883 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12884 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12885 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12886 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12887 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12888 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12889 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12890 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12891 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12892 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12893 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12894 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12895 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12896 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12897 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12898 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12899 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12900 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12901 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12902
12903 LTCC='$LTCC'
12904 LTCFLAGS='$LTCFLAGS'
12905 compiler='$compiler_DEFAULT'
12906
12907 # Quote evaled strings.
12908 for var in SED \
12909 GREP \
12910 EGREP \
12911 FGREP \
12912 LD \
12913 NM \
12914 LN_S \
12915 lt_SP2NL \
12916 lt_NL2SP \
12917 reload_flag \
12918 OBJDUMP \
12919 deplibs_check_method \
12920 file_magic_cmd \
12921 AR \
12922 AR_FLAGS \
12923 STRIP \
12924 RANLIB \
12925 CC \
12926 CFLAGS \
12927 compiler \
12928 lt_cv_sys_global_symbol_pipe \
12929 lt_cv_sys_global_symbol_to_cdecl \
12930 lt_cv_sys_global_symbol_to_c_name_address \
12931 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12932 SHELL \
12933 ECHO \
12934 lt_prog_compiler_no_builtin_flag \
12935 lt_prog_compiler_wl \
12936 lt_prog_compiler_pic \
12937 lt_prog_compiler_static \
12938 lt_cv_prog_compiler_c_o \
12939 need_locks \
12940 DSYMUTIL \
12941 NMEDIT \
12942 LIPO \
12943 OTOOL \
12944 OTOOL64 \
12945 shrext_cmds \
12946 export_dynamic_flag_spec \
12947 whole_archive_flag_spec \
12948 compiler_needs_object \
12949 with_gnu_ld \
12950 allow_undefined_flag \
12951 no_undefined_flag \
12952 hardcode_libdir_flag_spec \
12953 hardcode_libdir_flag_spec_ld \
12954 hardcode_libdir_separator \
12955 fix_srcfile_path \
12956 exclude_expsyms \
12957 include_expsyms \
12958 file_list_spec \
12959 variables_saved_for_relink \
12960 libname_spec \
12961 library_names_spec \
12962 soname_spec \
12963 finish_eval \
12964 old_striplib \
12965 striplib; do
12966     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12967     *[\\\\\\\`\\"\\\$]*)
12968       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12969       ;;
12970     *)
12971       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12972       ;;
12973     esac
12974 done
12975
12976 # Double-quote double-evaled strings.
12977 for var in reload_cmds \
12978 old_postinstall_cmds \
12979 old_postuninstall_cmds \
12980 old_archive_cmds \
12981 extract_expsyms_cmds \
12982 old_archive_from_new_cmds \
12983 old_archive_from_expsyms_cmds \
12984 archive_cmds \
12985 archive_expsym_cmds \
12986 module_cmds \
12987 module_expsym_cmds \
12988 export_symbols_cmds \
12989 prelink_cmds \
12990 postinstall_cmds \
12991 postuninstall_cmds \
12992 finish_cmds \
12993 sys_lib_search_path_spec \
12994 sys_lib_dlsearch_path_spec; do
12995     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12996     *[\\\\\\\`\\"\\\$]*)
12997       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12998       ;;
12999     *)
13000       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13001       ;;
13002     esac
13003 done
13004
13005 # Fix-up fallback echo if it was mangled by the above quoting rules.
13006 case \$lt_ECHO in
13007 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13008   ;;
13009 esac
13010
13011 ac_aux_dir='$ac_aux_dir'
13012 xsi_shell='$xsi_shell'
13013 lt_shell_append='$lt_shell_append'
13014
13015 # See if we are running on zsh, and set the options which allow our
13016 # commands through without removal of \ escapes INIT.
13017 if test -n "\${ZSH_VERSION+set}" ; then
13018    setopt NO_GLOB_SUBST
13019 fi
13020
13021
13022     PACKAGE='$PACKAGE'
13023     VERSION='$VERSION'
13024     TIMESTAMP='$TIMESTAMP'
13025     RM='$RM'
13026     ofile='$ofile'
13027
13028
13029
13030
13031 _ACEOF
13032
13033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13034
13035 # Handling of arguments.
13036 for ac_config_target in $ac_config_targets
13037 do
13038   case $ac_config_target in
13039     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13040     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13041     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13042     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13043     "uxa/Makefile") CONFIG_FILES="$CONFIG_FILES uxa/Makefile" ;;
13044     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13045     "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
13046     "src/xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/Makefile" ;;
13047     "src/xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/mc/Makefile" ;;
13048     "src/xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/vld/Makefile" ;;
13049     "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;;
13050     "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;;
13051     "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;;
13052     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13053     "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
13054
13055   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13056   esac
13057 done
13058
13059
13060 # If the user did not use the arguments to specify the items to instantiate,
13061 # then the envvar interface is used.  Set only those that are not.
13062 # We use the long form for the default assignment because of an extremely
13063 # bizarre bug on SunOS 4.1.3.
13064 if $ac_need_defaults; then
13065   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13066   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13067   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13068 fi
13069
13070 # Have a temporary directory for convenience.  Make it in the build tree
13071 # simply because there is no reason against having it here, and in addition,
13072 # creating and moving files from /tmp can sometimes cause problems.
13073 # Hook for its removal unless debugging.
13074 # Note that there is a small window in which the directory will not be cleaned:
13075 # after its creation but before its name has been assigned to `$tmp'.
13076 $debug ||
13077 {
13078   tmp=
13079   trap 'exit_status=$?
13080   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13081 ' 0
13082   trap 'as_fn_exit 1' 1 2 13 15
13083 }
13084 # Create a (secure) tmp directory for tmp files.
13085
13086 {
13087   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13088   test -n "$tmp" && test -d "$tmp"
13089 }  ||
13090 {
13091   tmp=./conf$$-$RANDOM
13092   (umask 077 && mkdir "$tmp")
13093 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13094
13095 # Set up the scripts for CONFIG_FILES section.
13096 # No need to generate them if there are no CONFIG_FILES.
13097 # This happens for instance with `./config.status config.h'.
13098 if test -n "$CONFIG_FILES"; then
13099
13100
13101 ac_cr=`echo X | tr X '\015'`
13102 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13103 # But we know of no other shell where ac_cr would be empty at this
13104 # point, so we can use a bashism as a fallback.
13105 if test "x$ac_cr" = x; then
13106   eval ac_cr=\$\'\\r\'
13107 fi
13108 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13109 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13110   ac_cs_awk_cr='\\r'
13111 else
13112   ac_cs_awk_cr=$ac_cr
13113 fi
13114
13115 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13116 _ACEOF
13117
13118
13119 {
13120   echo "cat >conf$$subs.awk <<_ACEOF" &&
13121   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13122   echo "_ACEOF"
13123 } >conf$$subs.sh ||
13124   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13125 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13126 ac_delim='%!_!# '
13127 for ac_last_try in false false false false false :; do
13128   . ./conf$$subs.sh ||
13129     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13130
13131   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13132   if test $ac_delim_n = $ac_delim_num; then
13133     break
13134   elif $ac_last_try; then
13135     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13136   else
13137     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13138   fi
13139 done
13140 rm -f conf$$subs.sh
13141
13142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13143 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13144 _ACEOF
13145 sed -n '
13146 h
13147 s/^/S["/; s/!.*/"]=/
13148 p
13149 g
13150 s/^[^!]*!//
13151 :repl
13152 t repl
13153 s/'"$ac_delim"'$//
13154 t delim
13155 :nl
13156 h
13157 s/\(.\{148\}\)..*/\1/
13158 t more1
13159 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13160 p
13161 n
13162 b repl
13163 :more1
13164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13165 p
13166 g
13167 s/.\{148\}//
13168 t nl
13169 :delim
13170 h
13171 s/\(.\{148\}\)..*/\1/
13172 t more2
13173 s/["\\]/\\&/g; s/^/"/; s/$/"/
13174 p
13175 b
13176 :more2
13177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13178 p
13179 g
13180 s/.\{148\}//
13181 t delim
13182 ' <conf$$subs.awk | sed '
13183 /^[^""]/{
13184   N
13185   s/\n//
13186 }
13187 ' >>$CONFIG_STATUS || ac_write_fail=1
13188 rm -f conf$$subs.awk
13189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13190 _ACAWK
13191 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13192   for (key in S) S_is_set[key] = 1
13193   FS = "\a"
13194
13195 }
13196 {
13197   line = $ 0
13198   nfields = split(line, field, "@")
13199   substed = 0
13200   len = length(field[1])
13201   for (i = 2; i < nfields; i++) {
13202     key = field[i]
13203     keylen = length(key)
13204     if (S_is_set[key]) {
13205       value = S[key]
13206       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13207       len += length(value) + length(field[++i])
13208       substed = 1
13209     } else
13210       len += 1 + keylen
13211   }
13212
13213   print line
13214 }
13215
13216 _ACAWK
13217 _ACEOF
13218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13219 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13220   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13221 else
13222   cat
13223 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13224   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13225 _ACEOF
13226
13227 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13228 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13229 # trailing colons and then remove the whole line if VPATH becomes empty
13230 # (actually we leave an empty line to preserve line numbers).
13231 if test "x$srcdir" = x.; then
13232   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13233 h
13234 s///
13235 s/^/:/
13236 s/[      ]*$/:/
13237 s/:\$(srcdir):/:/g
13238 s/:\${srcdir}:/:/g
13239 s/:@srcdir@:/:/g
13240 s/^:*//
13241 s/:*$//
13242 x
13243 s/\(=[   ]*\).*/\1/
13244 G
13245 s/\n//
13246 s/^[^=]*=[       ]*$//
13247 }'
13248 fi
13249
13250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13251 fi # test -n "$CONFIG_FILES"
13252
13253 # Set up the scripts for CONFIG_HEADERS section.
13254 # No need to generate them if there are no CONFIG_HEADERS.
13255 # This happens for instance with `./config.status Makefile'.
13256 if test -n "$CONFIG_HEADERS"; then
13257 cat >"$tmp/defines.awk" <<\_ACAWK ||
13258 BEGIN {
13259 _ACEOF
13260
13261 # Transform confdefs.h into an awk script `defines.awk', embedded as
13262 # here-document in config.status, that substitutes the proper values into
13263 # config.h.in to produce config.h.
13264
13265 # Create a delimiter string that does not exist in confdefs.h, to ease
13266 # handling of long lines.
13267 ac_delim='%!_!# '
13268 for ac_last_try in false false :; do
13269   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13270   if test -z "$ac_t"; then
13271     break
13272   elif $ac_last_try; then
13273     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13274   else
13275     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13276   fi
13277 done
13278
13279 # For the awk script, D is an array of macro values keyed by name,
13280 # likewise P contains macro parameters if any.  Preserve backslash
13281 # newline sequences.
13282
13283 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13284 sed -n '
13285 s/.\{148\}/&'"$ac_delim"'/g
13286 t rset
13287 :rset
13288 s/^[     ]*#[    ]*define[       ][      ]*/ /
13289 t def
13290 d
13291 :def
13292 s/\\$//
13293 t bsnl
13294 s/["\\]/\\&/g
13295 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13296 D["\1"]=" \3"/p
13297 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13298 d
13299 :bsnl
13300 s/["\\]/\\&/g
13301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13302 D["\1"]=" \3\\\\\\n"\\/p
13303 t cont
13304 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13305 t cont
13306 d
13307 :cont
13308 n
13309 s/.\{148\}/&'"$ac_delim"'/g
13310 t clear
13311 :clear
13312 s/\\$//
13313 t bsnlc
13314 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13315 d
13316 :bsnlc
13317 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13318 b cont
13319 ' <confdefs.h | sed '
13320 s/'"$ac_delim"'/"\\\
13321 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13322
13323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13324   for (key in D) D_is_set[key] = 1
13325   FS = "\a"
13326 }
13327 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13328   line = \$ 0
13329   split(line, arg, " ")
13330   if (arg[1] == "#") {
13331     defundef = arg[2]
13332     mac1 = arg[3]
13333   } else {
13334     defundef = substr(arg[1], 2)
13335     mac1 = arg[2]
13336   }
13337   split(mac1, mac2, "(") #)
13338   macro = mac2[1]
13339   prefix = substr(line, 1, index(line, defundef) - 1)
13340   if (D_is_set[macro]) {
13341     # Preserve the white space surrounding the "#".
13342     print prefix "define", macro P[macro] D[macro]
13343     next
13344   } else {
13345     # Replace #undef with comments.  This is necessary, for example,
13346     # in the case of _POSIX_SOURCE, which is predefined and required
13347     # on some systems where configure will not decide to define it.
13348     if (defundef == "undef") {
13349       print "/*", prefix defundef, macro, "*/"
13350       next
13351     }
13352   }
13353 }
13354 { print }
13355 _ACAWK
13356 _ACEOF
13357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13358   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13359 fi # test -n "$CONFIG_HEADERS"
13360
13361
13362 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13363 shift
13364 for ac_tag
13365 do
13366   case $ac_tag in
13367   :[FHLC]) ac_mode=$ac_tag; continue;;
13368   esac
13369   case $ac_mode$ac_tag in
13370   :[FHL]*:*);;
13371   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13372   :[FH]-) ac_tag=-:-;;
13373   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13374   esac
13375   ac_save_IFS=$IFS
13376   IFS=:
13377   set x $ac_tag
13378   IFS=$ac_save_IFS
13379   shift
13380   ac_file=$1
13381   shift
13382
13383   case $ac_mode in
13384   :L) ac_source=$1;;
13385   :[FH])
13386     ac_file_inputs=
13387     for ac_f
13388     do
13389       case $ac_f in
13390       -) ac_f="$tmp/stdin";;
13391       *) # Look for the file first in the build tree, then in the source tree
13392          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13393          # because $ac_f cannot contain `:'.
13394          test -f "$ac_f" ||
13395            case $ac_f in
13396            [\\/$]*) false;;
13397            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13398            esac ||
13399            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13400       esac
13401       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13402       as_fn_append ac_file_inputs " '$ac_f'"
13403     done
13404
13405     # Let's still pretend it is `configure' which instantiates (i.e., don't
13406     # use $as_me), people would be surprised to read:
13407     #    /* config.h.  Generated by config.status.  */
13408     configure_input='Generated from '`
13409           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13410         `' by configure.'
13411     if test x"$ac_file" != x-; then
13412       configure_input="$ac_file.  $configure_input"
13413       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13414 $as_echo "$as_me: creating $ac_file" >&6;}
13415     fi
13416     # Neutralize special characters interpreted by sed in replacement strings.
13417     case $configure_input in #(
13418     *\&* | *\|* | *\\* )
13419        ac_sed_conf_input=`$as_echo "$configure_input" |
13420        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13421     *) ac_sed_conf_input=$configure_input;;
13422     esac
13423
13424     case $ac_tag in
13425     *:-:* | *:-) cat >"$tmp/stdin" \
13426       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
13427     esac
13428     ;;
13429   esac
13430
13431   ac_dir=`$as_dirname -- "$ac_file" ||
13432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13433          X"$ac_file" : 'X\(//\)[^/]' \| \
13434          X"$ac_file" : 'X\(//\)$' \| \
13435          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13436 $as_echo X"$ac_file" |
13437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13438             s//\1/
13439             q
13440           }
13441           /^X\(\/\/\)[^/].*/{
13442             s//\1/
13443             q
13444           }
13445           /^X\(\/\/\)$/{
13446             s//\1/
13447             q
13448           }
13449           /^X\(\/\).*/{
13450             s//\1/
13451             q
13452           }
13453           s/.*/./; q'`
13454   as_dir="$ac_dir"; as_fn_mkdir_p
13455   ac_builddir=.
13456
13457 case "$ac_dir" in
13458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13459 *)
13460   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13461   # A ".." for each directory in $ac_dir_suffix.
13462   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13463   case $ac_top_builddir_sub in
13464   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13465   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13466   esac ;;
13467 esac
13468 ac_abs_top_builddir=$ac_pwd
13469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13470 # for backward compatibility:
13471 ac_top_builddir=$ac_top_build_prefix
13472
13473 case $srcdir in
13474   .)  # We are building in place.
13475     ac_srcdir=.
13476     ac_top_srcdir=$ac_top_builddir_sub
13477     ac_abs_top_srcdir=$ac_pwd ;;
13478   [\\/]* | ?:[\\/]* )  # Absolute name.
13479     ac_srcdir=$srcdir$ac_dir_suffix;
13480     ac_top_srcdir=$srcdir
13481     ac_abs_top_srcdir=$srcdir ;;
13482   *) # Relative name.
13483     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13484     ac_top_srcdir=$ac_top_build_prefix$srcdir
13485     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13486 esac
13487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13488
13489
13490   case $ac_mode in
13491   :F)
13492   #
13493   # CONFIG_FILE
13494   #
13495
13496   case $INSTALL in
13497   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13498   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13499   esac
13500   ac_MKDIR_P=$MKDIR_P
13501   case $MKDIR_P in
13502   [\\/$]* | ?:[\\/]* ) ;;
13503   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13504   esac
13505 _ACEOF
13506
13507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13508 # If the template does not know about datarootdir, expand it.
13509 # FIXME: This hack should be removed a few years after 2.60.
13510 ac_datarootdir_hack=; ac_datarootdir_seen=
13511 ac_sed_dataroot='
13512 /datarootdir/ {
13513   p
13514   q
13515 }
13516 /@datadir@/p
13517 /@docdir@/p
13518 /@infodir@/p
13519 /@localedir@/p
13520 /@mandir@/p'
13521 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13522 *datarootdir*) ac_datarootdir_seen=yes;;
13523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13524   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13525 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13526 _ACEOF
13527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13528   ac_datarootdir_hack='
13529   s&@datadir@&$datadir&g
13530   s&@docdir@&$docdir&g
13531   s&@infodir@&$infodir&g
13532   s&@localedir@&$localedir&g
13533   s&@mandir@&$mandir&g
13534   s&\\\${datarootdir}&$datarootdir&g' ;;
13535 esac
13536 _ACEOF
13537
13538 # Neutralize VPATH when `$srcdir' = `.'.
13539 # Shell code in configure.ac might set extrasub.
13540 # FIXME: do we really want to maintain this feature?
13541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13542 ac_sed_extra="$ac_vpsub
13543 $extrasub
13544 _ACEOF
13545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13546 :t
13547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13548 s|@configure_input@|$ac_sed_conf_input|;t t
13549 s&@top_builddir@&$ac_top_builddir_sub&;t t
13550 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13551 s&@srcdir@&$ac_srcdir&;t t
13552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13553 s&@top_srcdir@&$ac_top_srcdir&;t t
13554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13555 s&@builddir@&$ac_builddir&;t t
13556 s&@abs_builddir@&$ac_abs_builddir&;t t
13557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13558 s&@INSTALL@&$ac_INSTALL&;t t
13559 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13560 $ac_datarootdir_hack
13561 "
13562 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13563   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13564
13565 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13566   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13567   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13568   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13569 which seems to be undefined.  Please make sure it is defined" >&5
13570 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13571 which seems to be undefined.  Please make sure it is defined" >&2;}
13572
13573   rm -f "$tmp/stdin"
13574   case $ac_file in
13575   -) cat "$tmp/out" && rm -f "$tmp/out";;
13576   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13577   esac \
13578   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13579  ;;
13580   :H)
13581   #
13582   # CONFIG_HEADER
13583   #
13584   if test x"$ac_file" != x-; then
13585     {
13586       $as_echo "/* $configure_input  */" \
13587       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13588     } >"$tmp/config.h" \
13589       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13590     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13591       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13592 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13593     else
13594       rm -f "$ac_file"
13595       mv "$tmp/config.h" "$ac_file" \
13596         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13597     fi
13598   else
13599     $as_echo "/* $configure_input  */" \
13600       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13601       || as_fn_error $? "could not create -" "$LINENO" 5
13602   fi
13603 # Compute "$ac_file"'s index in $config_headers.
13604 _am_arg="$ac_file"
13605 _am_stamp_count=1
13606 for _am_header in $config_headers :; do
13607   case $_am_header in
13608     $_am_arg | $_am_arg:* )
13609       break ;;
13610     * )
13611       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13612   esac
13613 done
13614 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13615 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13616          X"$_am_arg" : 'X\(//\)[^/]' \| \
13617          X"$_am_arg" : 'X\(//\)$' \| \
13618          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13619 $as_echo X"$_am_arg" |
13620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13621             s//\1/
13622             q
13623           }
13624           /^X\(\/\/\)[^/].*/{
13625             s//\1/
13626             q
13627           }
13628           /^X\(\/\/\)$/{
13629             s//\1/
13630             q
13631           }
13632           /^X\(\/\).*/{
13633             s//\1/
13634             q
13635           }
13636           s/.*/./; q'`/stamp-h$_am_stamp_count
13637  ;;
13638
13639   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13640 $as_echo "$as_me: executing $ac_file commands" >&6;}
13641  ;;
13642   esac
13643
13644
13645   case $ac_file$ac_mode in
13646     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13647   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13648   # are listed without --file.  Let's play safe and only enable the eval
13649   # if we detect the quoting.
13650   case $CONFIG_FILES in
13651   *\'*) eval set x "$CONFIG_FILES" ;;
13652   *)   set x $CONFIG_FILES ;;
13653   esac
13654   shift
13655   for mf
13656   do
13657     # Strip MF so we end up with the name of the file.
13658     mf=`echo "$mf" | sed -e 's/:.*$//'`
13659     # Check whether this is an Automake generated Makefile or not.
13660     # We used to match only the files named `Makefile.in', but
13661     # some people rename them; so instead we look at the file content.
13662     # Grep'ing the first line is not enough: some people post-process
13663     # each Makefile.in and add a new line on top of each file to say so.
13664     # Grep'ing the whole file is not good either: AIX grep has a line
13665     # limit of 2048, but all sed's we know have understand at least 4000.
13666     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13667       dirpart=`$as_dirname -- "$mf" ||
13668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13669          X"$mf" : 'X\(//\)[^/]' \| \
13670          X"$mf" : 'X\(//\)$' \| \
13671          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13672 $as_echo X"$mf" |
13673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13674             s//\1/
13675             q
13676           }
13677           /^X\(\/\/\)[^/].*/{
13678             s//\1/
13679             q
13680           }
13681           /^X\(\/\/\)$/{
13682             s//\1/
13683             q
13684           }
13685           /^X\(\/\).*/{
13686             s//\1/
13687             q
13688           }
13689           s/.*/./; q'`
13690     else
13691       continue
13692     fi
13693     # Extract the definition of DEPDIR, am__include, and am__quote
13694     # from the Makefile without running `make'.
13695     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13696     test -z "$DEPDIR" && continue
13697     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13698     test -z "am__include" && continue
13699     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13700     # When using ansi2knr, U may be empty or an underscore; expand it
13701     U=`sed -n 's/^U = //p' < "$mf"`
13702     # Find all dependency output files, they are included files with
13703     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13704     # simplest approach to changing $(DEPDIR) to its actual value in the
13705     # expansion.
13706     for file in `sed -n "
13707       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13708          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13709       # Make sure the directory exists.
13710       test -f "$dirpart/$file" && continue
13711       fdir=`$as_dirname -- "$file" ||
13712 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13713          X"$file" : 'X\(//\)[^/]' \| \
13714          X"$file" : 'X\(//\)$' \| \
13715          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13716 $as_echo X"$file" |
13717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13718             s//\1/
13719             q
13720           }
13721           /^X\(\/\/\)[^/].*/{
13722             s//\1/
13723             q
13724           }
13725           /^X\(\/\/\)$/{
13726             s//\1/
13727             q
13728           }
13729           /^X\(\/\).*/{
13730             s//\1/
13731             q
13732           }
13733           s/.*/./; q'`
13734       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13735       # echo "creating $dirpart/$file"
13736       echo '# dummy' > "$dirpart/$file"
13737     done
13738   done
13739 }
13740  ;;
13741     "libtool":C)
13742
13743     # See if we are running on zsh, and set the options which allow our
13744     # commands through without removal of \ escapes.
13745     if test -n "${ZSH_VERSION+set}" ; then
13746       setopt NO_GLOB_SUBST
13747     fi
13748
13749     cfgfile="${ofile}T"
13750     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13751     $RM "$cfgfile"
13752
13753     cat <<_LT_EOF >> "$cfgfile"
13754 #! $SHELL
13755
13756 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13757 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13759 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13760 #
13761 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13762 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13763 #   Written by Gordon Matzigkeit, 1996
13764 #
13765 #   This file is part of GNU Libtool.
13766 #
13767 # GNU Libtool is free software; you can redistribute it and/or
13768 # modify it under the terms of the GNU General Public License as
13769 # published by the Free Software Foundation; either version 2 of
13770 # the License, or (at your option) any later version.
13771 #
13772 # As a special exception to the GNU General Public License,
13773 # if you distribute this file as part of a program or library that
13774 # is built using GNU Libtool, you may include this file under the
13775 # same distribution terms that you use for the rest of that program.
13776 #
13777 # GNU Libtool is distributed in the hope that it will be useful,
13778 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13780 # GNU General Public License for more details.
13781 #
13782 # You should have received a copy of the GNU General Public License
13783 # along with GNU Libtool; see the file COPYING.  If not, a copy
13784 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13785 # obtained by writing to the Free Software Foundation, Inc.,
13786 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13787
13788
13789 # The names of the tagged configurations supported by this script.
13790 available_tags=""
13791
13792 # ### BEGIN LIBTOOL CONFIG
13793
13794 # Which release of libtool.m4 was used?
13795 macro_version=$macro_version
13796 macro_revision=$macro_revision
13797
13798 # Whether or not to build static libraries.
13799 build_old_libs=$enable_static
13800
13801 # Whether or not to build shared libraries.
13802 build_libtool_libs=$enable_shared
13803
13804 # What type of objects to build.
13805 pic_mode=$pic_mode
13806
13807 # Whether or not to optimize for fast installation.
13808 fast_install=$enable_fast_install
13809
13810 # The host system.
13811 host_alias=$host_alias
13812 host=$host
13813 host_os=$host_os
13814
13815 # The build system.
13816 build_alias=$build_alias
13817 build=$build
13818 build_os=$build_os
13819
13820 # A sed program that does not truncate output.
13821 SED=$lt_SED
13822
13823 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13824 Xsed="\$SED -e 1s/^X//"
13825
13826 # A grep program that handles long lines.
13827 GREP=$lt_GREP
13828
13829 # An ERE matcher.
13830 EGREP=$lt_EGREP
13831
13832 # A literal string matcher.
13833 FGREP=$lt_FGREP
13834
13835 # A BSD- or MS-compatible name lister.
13836 NM=$lt_NM
13837
13838 # Whether we need soft or hard links.
13839 LN_S=$lt_LN_S
13840
13841 # What is the maximum length of a command?
13842 max_cmd_len=$max_cmd_len
13843
13844 # Object file suffix (normally "o").
13845 objext=$ac_objext
13846
13847 # Executable file suffix (normally "").
13848 exeext=$exeext
13849
13850 # whether the shell understands "unset".
13851 lt_unset=$lt_unset
13852
13853 # turn spaces into newlines.
13854 SP2NL=$lt_lt_SP2NL
13855
13856 # turn newlines into spaces.
13857 NL2SP=$lt_lt_NL2SP
13858
13859 # How to create reloadable object files.
13860 reload_flag=$lt_reload_flag
13861 reload_cmds=$lt_reload_cmds
13862
13863 # An object symbol dumper.
13864 OBJDUMP=$lt_OBJDUMP
13865
13866 # Method to check whether dependent libraries are shared objects.
13867 deplibs_check_method=$lt_deplibs_check_method
13868
13869 # Command to use when deplibs_check_method == "file_magic".
13870 file_magic_cmd=$lt_file_magic_cmd
13871
13872 # The archiver.
13873 AR=$lt_AR
13874 AR_FLAGS=$lt_AR_FLAGS
13875
13876 # A symbol stripping program.
13877 STRIP=$lt_STRIP
13878
13879 # Commands used to install an old-style archive.
13880 RANLIB=$lt_RANLIB
13881 old_postinstall_cmds=$lt_old_postinstall_cmds
13882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13883
13884 # A C compiler.
13885 LTCC=$lt_CC
13886
13887 # LTCC compiler flags.
13888 LTCFLAGS=$lt_CFLAGS
13889
13890 # Take the output of nm and produce a listing of raw symbols and C names.
13891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13892
13893 # Transform the output of nm in a proper C declaration.
13894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13895
13896 # Transform the output of nm in a C name address pair.
13897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13898
13899 # Transform the output of nm in a C name address pair when lib prefix is needed.
13900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13901
13902 # The name of the directory that contains temporary libtool files.
13903 objdir=$objdir
13904
13905 # Shell to use when invoking shell scripts.
13906 SHELL=$lt_SHELL
13907
13908 # An echo program that does not interpret backslashes.
13909 ECHO=$lt_ECHO
13910
13911 # Used to examine libraries when file_magic_cmd begins with "file".
13912 MAGIC_CMD=$MAGIC_CMD
13913
13914 # Must we lock files when doing compilation?
13915 need_locks=$lt_need_locks
13916
13917 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13918 DSYMUTIL=$lt_DSYMUTIL
13919
13920 # Tool to change global to local symbols on Mac OS X.
13921 NMEDIT=$lt_NMEDIT
13922
13923 # Tool to manipulate fat objects and archives on Mac OS X.
13924 LIPO=$lt_LIPO
13925
13926 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13927 OTOOL=$lt_OTOOL
13928
13929 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13930 OTOOL64=$lt_OTOOL64
13931
13932 # Old archive suffix (normally "a").
13933 libext=$libext
13934
13935 # Shared library suffix (normally ".so").
13936 shrext_cmds=$lt_shrext_cmds
13937
13938 # The commands to extract the exported symbol list from a shared archive.
13939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13940
13941 # Variables whose values should be saved in libtool wrapper scripts and
13942 # restored at link time.
13943 variables_saved_for_relink=$lt_variables_saved_for_relink
13944
13945 # Do we need the "lib" prefix for modules?
13946 need_lib_prefix=$need_lib_prefix
13947
13948 # Do we need a version for libraries?
13949 need_version=$need_version
13950
13951 # Library versioning type.
13952 version_type=$version_type
13953
13954 # Shared library runtime path variable.
13955 runpath_var=$runpath_var
13956
13957 # Shared library path variable.
13958 shlibpath_var=$shlibpath_var
13959
13960 # Is shlibpath searched before the hard-coded library search path?
13961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13962
13963 # Format of library name prefix.
13964 libname_spec=$lt_libname_spec
13965
13966 # List of archive names.  First name is the real one, the rest are links.
13967 # The last name is the one that the linker finds with -lNAME
13968 library_names_spec=$lt_library_names_spec
13969
13970 # The coded name of the library, if different from the real name.
13971 soname_spec=$lt_soname_spec
13972
13973 # Command to use after installation of a shared archive.
13974 postinstall_cmds=$lt_postinstall_cmds
13975
13976 # Command to use after uninstallation of a shared archive.
13977 postuninstall_cmds=$lt_postuninstall_cmds
13978
13979 # Commands used to finish a libtool library installation in a directory.
13980 finish_cmds=$lt_finish_cmds
13981
13982 # As "finish_cmds", except a single script fragment to be evaled but
13983 # not shown.
13984 finish_eval=$lt_finish_eval
13985
13986 # Whether we should hardcode library paths into libraries.
13987 hardcode_into_libs=$hardcode_into_libs
13988
13989 # Compile-time system search path for libraries.
13990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13991
13992 # Run-time system search path for libraries.
13993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13994
13995 # Whether dlopen is supported.
13996 dlopen_support=$enable_dlopen
13997
13998 # Whether dlopen of programs is supported.
13999 dlopen_self=$enable_dlopen_self
14000
14001 # Whether dlopen of statically linked programs is supported.
14002 dlopen_self_static=$enable_dlopen_self_static
14003
14004 # Commands to strip libraries.
14005 old_striplib=$lt_old_striplib
14006 striplib=$lt_striplib
14007
14008
14009 # The linker used to build libraries.
14010 LD=$lt_LD
14011
14012 # Commands used to build an old-style archive.
14013 old_archive_cmds=$lt_old_archive_cmds
14014
14015 # A language specific compiler.
14016 CC=$lt_compiler
14017
14018 # Is the compiler the GNU compiler?
14019 with_gcc=$GCC
14020
14021 # Compiler flag to turn off builtin functions.
14022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14023
14024 # How to pass a linker flag through the compiler.
14025 wl=$lt_lt_prog_compiler_wl
14026
14027 # Additional compiler flags for building library objects.
14028 pic_flag=$lt_lt_prog_compiler_pic
14029
14030 # Compiler flag to prevent dynamic linking.
14031 link_static_flag=$lt_lt_prog_compiler_static
14032
14033 # Does compiler simultaneously support -c and -o options?
14034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14035
14036 # Whether or not to add -lc for building shared libraries.
14037 build_libtool_need_lc=$archive_cmds_need_lc
14038
14039 # Whether or not to disallow shared libs when runtime libs are static.
14040 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14041
14042 # Compiler flag to allow reflexive dlopens.
14043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14044
14045 # Compiler flag to generate shared objects directly from archives.
14046 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14047
14048 # Whether the compiler copes with passing no objects directly.
14049 compiler_needs_object=$lt_compiler_needs_object
14050
14051 # Create an old-style archive from a shared archive.
14052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14053
14054 # Create a temporary old-style archive to link instead of a shared archive.
14055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14056
14057 # Commands used to build a shared archive.
14058 archive_cmds=$lt_archive_cmds
14059 archive_expsym_cmds=$lt_archive_expsym_cmds
14060
14061 # Commands used to build a loadable module if different from building
14062 # a shared archive.
14063 module_cmds=$lt_module_cmds
14064 module_expsym_cmds=$lt_module_expsym_cmds
14065
14066 # Whether we are building with GNU ld or not.
14067 with_gnu_ld=$lt_with_gnu_ld
14068
14069 # Flag that allows shared libraries with undefined symbols to be built.
14070 allow_undefined_flag=$lt_allow_undefined_flag
14071
14072 # Flag that enforces no undefined symbols.
14073 no_undefined_flag=$lt_no_undefined_flag
14074
14075 # Flag to hardcode \$libdir into a binary during linking.
14076 # This must work even if \$libdir does not exist
14077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14078
14079 # If ld is used when linking, flag to hardcode \$libdir into a binary
14080 # during linking.  This must work even if \$libdir does not exist.
14081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14082
14083 # Whether we need a single "-rpath" flag with a separated argument.
14084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14085
14086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14087 # DIR into the resulting binary.
14088 hardcode_direct=$hardcode_direct
14089
14090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14091 # DIR into the resulting binary and the resulting library dependency is
14092 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14093 # library is relocated.
14094 hardcode_direct_absolute=$hardcode_direct_absolute
14095
14096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14097 # into the resulting binary.
14098 hardcode_minus_L=$hardcode_minus_L
14099
14100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14101 # into the resulting binary.
14102 hardcode_shlibpath_var=$hardcode_shlibpath_var
14103
14104 # Set to "yes" if building a shared library automatically hardcodes DIR
14105 # into the library and all subsequent libraries and executables linked
14106 # against it.
14107 hardcode_automatic=$hardcode_automatic
14108
14109 # Set to yes if linker adds runtime paths of dependent libraries
14110 # to runtime path list.
14111 inherit_rpath=$inherit_rpath
14112
14113 # Whether libtool must link a program against all its dependency libraries.
14114 link_all_deplibs=$link_all_deplibs
14115
14116 # Fix the shell variable \$srcfile for the compiler.
14117 fix_srcfile_path=$lt_fix_srcfile_path
14118
14119 # Set to "yes" if exported symbols are required.
14120 always_export_symbols=$always_export_symbols
14121
14122 # The commands to list exported symbols.
14123 export_symbols_cmds=$lt_export_symbols_cmds
14124
14125 # Symbols that should not be listed in the preloaded symbols.
14126 exclude_expsyms=$lt_exclude_expsyms
14127
14128 # Symbols that must always be exported.
14129 include_expsyms=$lt_include_expsyms
14130
14131 # Commands necessary for linking programs (against libraries) with templates.
14132 prelink_cmds=$lt_prelink_cmds
14133
14134 # Specify filename containing input files.
14135 file_list_spec=$lt_file_list_spec
14136
14137 # How to hardcode a shared library path into an executable.
14138 hardcode_action=$hardcode_action
14139
14140 # ### END LIBTOOL CONFIG
14141
14142 _LT_EOF
14143
14144   case $host_os in
14145   aix3*)
14146     cat <<\_LT_EOF >> "$cfgfile"
14147 # AIX sometimes has problems with the GCC collect2 program.  For some
14148 # reason, if we set the COLLECT_NAMES environment variable, the problems
14149 # vanish in a puff of smoke.
14150 if test "X${COLLECT_NAMES+set}" != Xset; then
14151   COLLECT_NAMES=
14152   export COLLECT_NAMES
14153 fi
14154 _LT_EOF
14155     ;;
14156   esac
14157
14158
14159 ltmain="$ac_aux_dir/ltmain.sh"
14160
14161
14162   # We use sed instead of cat because bash on DJGPP gets confused if
14163   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14164   # text mode, it properly converts lines to CR/LF.  This bash problem
14165   # is reportedly fixed, but why not run on old versions too?
14166   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14167     || (rm -f "$cfgfile"; exit 1)
14168
14169   case $xsi_shell in
14170   yes)
14171     cat << \_LT_EOF >> "$cfgfile"
14172
14173 # func_dirname file append nondir_replacement
14174 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14175 # otherwise set result to NONDIR_REPLACEMENT.
14176 func_dirname ()
14177 {
14178   case ${1} in
14179     */*) func_dirname_result="${1%/*}${2}" ;;
14180     *  ) func_dirname_result="${3}" ;;
14181   esac
14182 }
14183
14184 # func_basename file
14185 func_basename ()
14186 {
14187   func_basename_result="${1##*/}"
14188 }
14189
14190 # func_dirname_and_basename file append nondir_replacement
14191 # perform func_basename and func_dirname in a single function
14192 # call:
14193 #   dirname:  Compute the dirname of FILE.  If nonempty,
14194 #             add APPEND to the result, otherwise set result
14195 #             to NONDIR_REPLACEMENT.
14196 #             value returned in "$func_dirname_result"
14197 #   basename: Compute filename of FILE.
14198 #             value retuned in "$func_basename_result"
14199 # Implementation must be kept synchronized with func_dirname
14200 # and func_basename. For efficiency, we do not delegate to
14201 # those functions but instead duplicate the functionality here.
14202 func_dirname_and_basename ()
14203 {
14204   case ${1} in
14205     */*) func_dirname_result="${1%/*}${2}" ;;
14206     *  ) func_dirname_result="${3}" ;;
14207   esac
14208   func_basename_result="${1##*/}"
14209 }
14210
14211 # func_stripname prefix suffix name
14212 # strip PREFIX and SUFFIX off of NAME.
14213 # PREFIX and SUFFIX must not contain globbing or regex special
14214 # characters, hashes, percent signs, but SUFFIX may contain a leading
14215 # dot (in which case that matches only a dot).
14216 func_stripname ()
14217 {
14218   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14219   # positional parameters, so assign one to ordinary parameter first.
14220   func_stripname_result=${3}
14221   func_stripname_result=${func_stripname_result#"${1}"}
14222   func_stripname_result=${func_stripname_result%"${2}"}
14223 }
14224
14225 # func_opt_split
14226 func_opt_split ()
14227 {
14228   func_opt_split_opt=${1%%=*}
14229   func_opt_split_arg=${1#*=}
14230 }
14231
14232 # func_lo2o object
14233 func_lo2o ()
14234 {
14235   case ${1} in
14236     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14237     *)    func_lo2o_result=${1} ;;
14238   esac
14239 }
14240
14241 # func_xform libobj-or-source
14242 func_xform ()
14243 {
14244   func_xform_result=${1%.*}.lo
14245 }
14246
14247 # func_arith arithmetic-term...
14248 func_arith ()
14249 {
14250   func_arith_result=$(( $* ))
14251 }
14252
14253 # func_len string
14254 # STRING may not start with a hyphen.
14255 func_len ()
14256 {
14257   func_len_result=${#1}
14258 }
14259
14260 _LT_EOF
14261     ;;
14262   *) # Bourne compatible functions.
14263     cat << \_LT_EOF >> "$cfgfile"
14264
14265 # func_dirname file append nondir_replacement
14266 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14267 # otherwise set result to NONDIR_REPLACEMENT.
14268 func_dirname ()
14269 {
14270   # Extract subdirectory from the argument.
14271   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14272   if test "X$func_dirname_result" = "X${1}"; then
14273     func_dirname_result="${3}"
14274   else
14275     func_dirname_result="$func_dirname_result${2}"
14276   fi
14277 }
14278
14279 # func_basename file
14280 func_basename ()
14281 {
14282   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14283 }
14284
14285
14286 # func_stripname prefix suffix name
14287 # strip PREFIX and SUFFIX off of NAME.
14288 # PREFIX and SUFFIX must not contain globbing or regex special
14289 # characters, hashes, percent signs, but SUFFIX may contain a leading
14290 # dot (in which case that matches only a dot).
14291 # func_strip_suffix prefix name
14292 func_stripname ()
14293 {
14294   case ${2} in
14295     .*) func_stripname_result=`$ECHO "X${3}" \
14296            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14297     *)  func_stripname_result=`$ECHO "X${3}" \
14298            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14299   esac
14300 }
14301
14302 # sed scripts:
14303 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14304 my_sed_long_arg='1s/^-[^=]*=//'
14305
14306 # func_opt_split
14307 func_opt_split ()
14308 {
14309   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14310   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14311 }
14312
14313 # func_lo2o object
14314 func_lo2o ()
14315 {
14316   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14317 }
14318
14319 # func_xform libobj-or-source
14320 func_xform ()
14321 {
14322   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14323 }
14324
14325 # func_arith arithmetic-term...
14326 func_arith ()
14327 {
14328   func_arith_result=`expr "$@"`
14329 }
14330
14331 # func_len string
14332 # STRING may not start with a hyphen.
14333 func_len ()
14334 {
14335   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14336 }
14337
14338 _LT_EOF
14339 esac
14340
14341 case $lt_shell_append in
14342   yes)
14343     cat << \_LT_EOF >> "$cfgfile"
14344
14345 # func_append var value
14346 # Append VALUE to the end of shell variable VAR.
14347 func_append ()
14348 {
14349   eval "$1+=\$2"
14350 }
14351 _LT_EOF
14352     ;;
14353   *)
14354     cat << \_LT_EOF >> "$cfgfile"
14355
14356 # func_append var value
14357 # Append VALUE to the end of shell variable VAR.
14358 func_append ()
14359 {
14360   eval "$1=\$$1\$2"
14361 }
14362
14363 _LT_EOF
14364     ;;
14365   esac
14366
14367
14368   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14369     || (rm -f "$cfgfile"; exit 1)
14370
14371   mv -f "$cfgfile" "$ofile" ||
14372     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14373   chmod +x "$ofile"
14374
14375  ;;
14376
14377   esac
14378 done # for ac_tag
14379
14380
14381 as_fn_exit 0
14382 _ACEOF
14383 ac_clean_files=$ac_clean_files_save
14384
14385 test $ac_write_fail = 0 ||
14386   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14387
14388
14389 # configure is writing to config.log, and then calls config.status.
14390 # config.status does its own redirection, appending to config.log.
14391 # Unfortunately, on DOS this fails, as config.log is still kept open
14392 # by configure, so config.status won't be able to write to it; its
14393 # output is simply discarded.  So we exec the FD to /dev/null,
14394 # effectively closing config.log, so it can be properly (re)opened and
14395 # appended to by config.status.  When coming back to configure, we
14396 # need to make the FD available again.
14397 if test "$no_create" != yes; then
14398   ac_cs_success=:
14399   ac_config_status_args=
14400   test "$silent" = yes &&
14401     ac_config_status_args="$ac_config_status_args --quiet"
14402   exec 5>/dev/null
14403   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14404   exec 5>>config.log
14405   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14406   # would make configure fail if this is the last instruction.
14407   $ac_cs_success || as_fn_exit 1
14408 fi
14409 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14411 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14412 fi
14413