enable additional options from sysconfig
[base/xorg-launch-helper.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xorg-launch-helper 3.
4 #
5 # Report bugs to <auke-jan.h.kok@intel.com>.
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 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: auke-jan.h.kok@intel.com about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='xorg-launch-helper'
562 PACKAGE_TARNAME='xorg-launch-helper'
563 PACKAGE_VERSION='3'
564 PACKAGE_STRING='xorg-launch-helper 3'
565 PACKAGE_BUGREPORT='auke-jan.h.kok@intel.com'
566 PACKAGE_URL=''
567
568 ac_unique_file="src/main.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 EGREP
610 GREP
611 CPP
612 SYSTEMD_FALSE
613 SYSTEMD_TRUE
614 SYSTEMD_USERUNITDIR
615 SYSTEMD_LIBS
616 SYSTEMD_CFLAGS
617 PKG_CONFIG_LIBDIR
618 PKG_CONFIG_PATH
619 PKG_CONFIG
620 am__fastdepCC_FALSE
621 am__fastdepCC_TRUE
622 CCDEPMODE
623 AMDEPBACKSLASH
624 AMDEP_FALSE
625 AMDEP_TRUE
626 am__quote
627 am__include
628 DEPDIR
629 OBJEXT
630 EXEEXT
631 ac_ct_CC
632 CPPFLAGS
633 LDFLAGS
634 CFLAGS
635 CC
636 am__untar
637 am__tar
638 AMTAR
639 am__leading_dot
640 SET_MAKE
641 AWK
642 mkdir_p
643 MKDIR_P
644 INSTALL_STRIP_PROGRAM
645 STRIP
646 install_sh
647 MAKEINFO
648 AUTOHEADER
649 AUTOMAKE
650 AUTOCONF
651 ACLOCAL
652 VERSION
653 PACKAGE
654 CYGPATH_W
655 am__isrc
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 target_alias
660 host_alias
661 build_alias
662 LIBS
663 ECHO_T
664 ECHO_N
665 ECHO_C
666 DEFS
667 mandir
668 localedir
669 libdir
670 psdir
671 pdfdir
672 dvidir
673 htmldir
674 infodir
675 docdir
676 oldincludedir
677 includedir
678 localstatedir
679 sharedstatedir
680 sysconfdir
681 datadir
682 datarootdir
683 libexecdir
684 sbindir
685 bindir
686 program_transform_name
687 prefix
688 exec_prefix
689 PACKAGE_URL
690 PACKAGE_BUGREPORT
691 PACKAGE_STRING
692 PACKAGE_VERSION
693 PACKAGE_TARNAME
694 PACKAGE_NAME
695 PATH_SEPARATOR
696 SHELL'
697 ac_subst_files=''
698 ac_user_opts='
699 enable_option_checking
700 enable_dependency_tracking
701 with_systemduserunitdir
702 '
703       ac_precious_vars='build_alias
704 host_alias
705 target_alias
706 CC
707 CFLAGS
708 LDFLAGS
709 LIBS
710 CPPFLAGS
711 PKG_CONFIG
712 PKG_CONFIG_PATH
713 PKG_CONFIG_LIBDIR
714 SYSTEMD_CFLAGS
715 SYSTEMD_LIBS
716 CPP'
717
718
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 ac_unrecognized_opts=
723 ac_unrecognized_sep=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
726 cache_file=/dev/null
727 exec_prefix=NONE
728 no_create=
729 no_recursion=
730 prefix=NONE
731 program_prefix=NONE
732 program_suffix=NONE
733 program_transform_name=s,x,x,
734 silent=
735 site=
736 srcdir=
737 verbose=
738 x_includes=NONE
739 x_libraries=NONE
740
741 # Installation directory options.
742 # These are left unexpanded so users can "make install exec_prefix=/foo"
743 # and all the variables that are supposed to be based on exec_prefix
744 # by default will actually change.
745 # Use braces instead of parens because sh, perl, etc. also accept them.
746 # (The list follows the same order as the GNU Coding Standards.)
747 bindir='${exec_prefix}/bin'
748 sbindir='${exec_prefix}/sbin'
749 libexecdir='${exec_prefix}/libexec'
750 datarootdir='${prefix}/share'
751 datadir='${datarootdir}'
752 sysconfdir='${prefix}/etc'
753 sharedstatedir='${prefix}/com'
754 localstatedir='${prefix}/var'
755 includedir='${prefix}/include'
756 oldincludedir='/usr/include'
757 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
758 infodir='${datarootdir}/info'
759 htmldir='${docdir}'
760 dvidir='${docdir}'
761 pdfdir='${docdir}'
762 psdir='${docdir}'
763 libdir='${exec_prefix}/lib'
764 localedir='${datarootdir}/locale'
765 mandir='${datarootdir}/man'
766
767 ac_prev=
768 ac_dashdash=
769 for ac_option
770 do
771   # If the previous option needs an argument, assign it.
772   if test -n "$ac_prev"; then
773     eval $ac_prev=\$ac_option
774     ac_prev=
775     continue
776   fi
777
778   case $ac_option in
779   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780   *=)   ac_optarg= ;;
781   *)    ac_optarg=yes ;;
782   esac
783
784   # Accept the important Cygnus configure options, so we can diagnose typos.
785
786   case $ac_dashdash$ac_option in
787   --)
788     ac_dashdash=yes ;;
789
790   -bindir | --bindir | --bindi | --bind | --bin | --bi)
791     ac_prev=bindir ;;
792   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793     bindir=$ac_optarg ;;
794
795   -build | --build | --buil | --bui | --bu)
796     ac_prev=build_alias ;;
797   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798     build_alias=$ac_optarg ;;
799
800   -cache-file | --cache-file | --cache-fil | --cache-fi \
801   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802     ac_prev=cache_file ;;
803   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805     cache_file=$ac_optarg ;;
806
807   --config-cache | -C)
808     cache_file=config.cache ;;
809
810   -datadir | --datadir | --datadi | --datad)
811     ac_prev=datadir ;;
812   -datadir=* | --datadir=* | --datadi=* | --datad=*)
813     datadir=$ac_optarg ;;
814
815   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816   | --dataroo | --dataro | --datar)
817     ac_prev=datarootdir ;;
818   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820     datarootdir=$ac_optarg ;;
821
822   -disable-* | --disable-*)
823     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824     # Reject names that are not valid shell variable names.
825     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826       as_fn_error $? "invalid feature name: $ac_useropt"
827     ac_useropt_orig=$ac_useropt
828     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829     case $ac_user_opts in
830       *"
831 "enable_$ac_useropt"
832 "*) ;;
833       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834          ac_unrecognized_sep=', ';;
835     esac
836     eval enable_$ac_useropt=no ;;
837
838   -docdir | --docdir | --docdi | --doc | --do)
839     ac_prev=docdir ;;
840   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841     docdir=$ac_optarg ;;
842
843   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844     ac_prev=dvidir ;;
845   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846     dvidir=$ac_optarg ;;
847
848   -enable-* | --enable-*)
849     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850     # Reject names that are not valid shell variable names.
851     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852       as_fn_error $? "invalid feature name: $ac_useropt"
853     ac_useropt_orig=$ac_useropt
854     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855     case $ac_user_opts in
856       *"
857 "enable_$ac_useropt"
858 "*) ;;
859       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860          ac_unrecognized_sep=', ';;
861     esac
862     eval enable_$ac_useropt=\$ac_optarg ;;
863
864   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866   | --exec | --exe | --ex)
867     ac_prev=exec_prefix ;;
868   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870   | --exec=* | --exe=* | --ex=*)
871     exec_prefix=$ac_optarg ;;
872
873   -gas | --gas | --ga | --g)
874     # Obsolete; use --with-gas.
875     with_gas=yes ;;
876
877   -help | --help | --hel | --he | -h)
878     ac_init_help=long ;;
879   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880     ac_init_help=recursive ;;
881   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882     ac_init_help=short ;;
883
884   -host | --host | --hos | --ho)
885     ac_prev=host_alias ;;
886   -host=* | --host=* | --hos=* | --ho=*)
887     host_alias=$ac_optarg ;;
888
889   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890     ac_prev=htmldir ;;
891   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892   | --ht=*)
893     htmldir=$ac_optarg ;;
894
895   -includedir | --includedir | --includedi | --included | --include \
896   | --includ | --inclu | --incl | --inc)
897     ac_prev=includedir ;;
898   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899   | --includ=* | --inclu=* | --incl=* | --inc=*)
900     includedir=$ac_optarg ;;
901
902   -infodir | --infodir | --infodi | --infod | --info | --inf)
903     ac_prev=infodir ;;
904   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905     infodir=$ac_optarg ;;
906
907   -libdir | --libdir | --libdi | --libd)
908     ac_prev=libdir ;;
909   -libdir=* | --libdir=* | --libdi=* | --libd=*)
910     libdir=$ac_optarg ;;
911
912   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913   | --libexe | --libex | --libe)
914     ac_prev=libexecdir ;;
915   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916   | --libexe=* | --libex=* | --libe=*)
917     libexecdir=$ac_optarg ;;
918
919   -localedir | --localedir | --localedi | --localed | --locale)
920     ac_prev=localedir ;;
921   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922     localedir=$ac_optarg ;;
923
924   -localstatedir | --localstatedir | --localstatedi | --localstated \
925   | --localstate | --localstat | --localsta | --localst | --locals)
926     ac_prev=localstatedir ;;
927   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929     localstatedir=$ac_optarg ;;
930
931   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932     ac_prev=mandir ;;
933   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934     mandir=$ac_optarg ;;
935
936   -nfp | --nfp | --nf)
937     # Obsolete; use --without-fp.
938     with_fp=no ;;
939
940   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941   | --no-cr | --no-c | -n)
942     no_create=yes ;;
943
944   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946     no_recursion=yes ;;
947
948   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950   | --oldin | --oldi | --old | --ol | --o)
951     ac_prev=oldincludedir ;;
952   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955     oldincludedir=$ac_optarg ;;
956
957   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958     ac_prev=prefix ;;
959   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960     prefix=$ac_optarg ;;
961
962   -program-prefix | --program-prefix | --program-prefi | --program-pref \
963   | --program-pre | --program-pr | --program-p)
964     ac_prev=program_prefix ;;
965   -program-prefix=* | --program-prefix=* | --program-prefi=* \
966   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967     program_prefix=$ac_optarg ;;
968
969   -program-suffix | --program-suffix | --program-suffi | --program-suff \
970   | --program-suf | --program-su | --program-s)
971     ac_prev=program_suffix ;;
972   -program-suffix=* | --program-suffix=* | --program-suffi=* \
973   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974     program_suffix=$ac_optarg ;;
975
976   -program-transform-name | --program-transform-name \
977   | --program-transform-nam | --program-transform-na \
978   | --program-transform-n | --program-transform- \
979   | --program-transform | --program-transfor \
980   | --program-transfo | --program-transf \
981   | --program-trans | --program-tran \
982   | --progr-tra | --program-tr | --program-t)
983     ac_prev=program_transform_name ;;
984   -program-transform-name=* | --program-transform-name=* \
985   | --program-transform-nam=* | --program-transform-na=* \
986   | --program-transform-n=* | --program-transform-=* \
987   | --program-transform=* | --program-transfor=* \
988   | --program-transfo=* | --program-transf=* \
989   | --program-trans=* | --program-tran=* \
990   | --progr-tra=* | --program-tr=* | --program-t=*)
991     program_transform_name=$ac_optarg ;;
992
993   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994     ac_prev=pdfdir ;;
995   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996     pdfdir=$ac_optarg ;;
997
998   -psdir | --psdir | --psdi | --psd | --ps)
999     ac_prev=psdir ;;
1000   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001     psdir=$ac_optarg ;;
1002
1003   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004   | -silent | --silent | --silen | --sile | --sil)
1005     silent=yes ;;
1006
1007   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008     ac_prev=sbindir ;;
1009   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010   | --sbi=* | --sb=*)
1011     sbindir=$ac_optarg ;;
1012
1013   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015   | --sharedst | --shareds | --shared | --share | --shar \
1016   | --sha | --sh)
1017     ac_prev=sharedstatedir ;;
1018   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021   | --sha=* | --sh=*)
1022     sharedstatedir=$ac_optarg ;;
1023
1024   -site | --site | --sit)
1025     ac_prev=site ;;
1026   -site=* | --site=* | --sit=*)
1027     site=$ac_optarg ;;
1028
1029   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030     ac_prev=srcdir ;;
1031   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032     srcdir=$ac_optarg ;;
1033
1034   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035   | --syscon | --sysco | --sysc | --sys | --sy)
1036     ac_prev=sysconfdir ;;
1037   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039     sysconfdir=$ac_optarg ;;
1040
1041   -target | --target | --targe | --targ | --tar | --ta | --t)
1042     ac_prev=target_alias ;;
1043   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044     target_alias=$ac_optarg ;;
1045
1046   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047     verbose=yes ;;
1048
1049   -version | --version | --versio | --versi | --vers | -V)
1050     ac_init_version=: ;;
1051
1052   -with-* | --with-*)
1053     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056       as_fn_error $? "invalid package name: $ac_useropt"
1057     ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060       *"
1061 "with_$ac_useropt"
1062 "*) ;;
1063       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064          ac_unrecognized_sep=', ';;
1065     esac
1066     eval with_$ac_useropt=\$ac_optarg ;;
1067
1068   -without-* | --without-*)
1069     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072       as_fn_error $? "invalid package name: $ac_useropt"
1073     ac_useropt_orig=$ac_useropt
1074     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075     case $ac_user_opts in
1076       *"
1077 "with_$ac_useropt"
1078 "*) ;;
1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080          ac_unrecognized_sep=', ';;
1081     esac
1082     eval with_$ac_useropt=no ;;
1083
1084   --x)
1085     # Obsolete; use --with-x.
1086     with_x=yes ;;
1087
1088   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089   | --x-incl | --x-inc | --x-in | --x-i)
1090     ac_prev=x_includes ;;
1091   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093     x_includes=$ac_optarg ;;
1094
1095   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097     ac_prev=x_libraries ;;
1098   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100     x_libraries=$ac_optarg ;;
1101
1102   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1103 Try \`$0 --help' for more information"
1104     ;;
1105
1106   *=*)
1107     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108     # Reject names that are not valid shell variable names.
1109     case $ac_envvar in #(
1110       '' | [0-9]* | *[!_$as_cr_alnum]* )
1111       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1112     esac
1113     eval $ac_envvar=\$ac_optarg
1114     export $ac_envvar ;;
1115
1116   *)
1117     # FIXME: should be removed in autoconf 3.0.
1118     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1122     ;;
1123
1124   esac
1125 done
1126
1127 if test -n "$ac_prev"; then
1128   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129   as_fn_error $? "missing argument to $ac_option"
1130 fi
1131
1132 if test -n "$ac_unrecognized_opts"; then
1133   case $enable_option_checking in
1134     no) ;;
1135     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1136     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1137   esac
1138 fi
1139
1140 # Check all directory arguments for consistency.
1141 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142                 datadir sysconfdir sharedstatedir localstatedir includedir \
1143                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144                 libdir localedir mandir
1145 do
1146   eval ac_val=\$$ac_var
1147   # Remove trailing slashes.
1148   case $ac_val in
1149     */ )
1150       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151       eval $ac_var=\$ac_val;;
1152   esac
1153   # Be sure to have absolute directory names.
1154   case $ac_val in
1155     [\\/$]* | ?:[\\/]* )  continue;;
1156     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157   esac
1158   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1159 done
1160
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1164 build=$build_alias
1165 host=$host_alias
1166 target=$target_alias
1167
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170   if test "x$build_alias" = x; then
1171     cross_compiling=maybe
1172     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1173     If a cross compiler is detected then cross compile mode will be used" >&2
1174   elif test "x$build_alias" != "x$host_alias"; then
1175     cross_compiling=yes
1176   fi
1177 fi
1178
1179 ac_tool_prefix=
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1181
1182 test "$silent" = yes && exec 6>/dev/null
1183
1184
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188   as_fn_error $? "working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190   as_fn_error $? "pwd does not report name of working directory"
1191
1192
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195   ac_srcdir_defaulted=yes
1196   # Try the directory containing this script, then the parent directory.
1197   ac_confdir=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199          X"$as_myself" : 'X\(//\)[^/]' \| \
1200          X"$as_myself" : 'X\(//\)$' \| \
1201          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204             s//\1/
1205             q
1206           }
1207           /^X\(\/\/\)[^/].*/{
1208             s//\1/
1209             q
1210           }
1211           /^X\(\/\/\)$/{
1212             s//\1/
1213             q
1214           }
1215           /^X\(\/\).*/{
1216             s//\1/
1217             q
1218           }
1219           s/.*/./; q'`
1220   srcdir=$ac_confdir
1221   if test ! -r "$srcdir/$ac_unique_file"; then
1222     srcdir=..
1223   fi
1224 else
1225   ac_srcdir_defaulted=no
1226 fi
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1229   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1230 fi
1231 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 ac_abs_confdir=`(
1233         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1234         pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237   srcdir=.
1238 fi
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247   eval ac_env_${ac_var}_value=\$${ac_var}
1248   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1251
1252 #
1253 # Report the --help message.
1254 #
1255 if test "$ac_init_help" = "long"; then
1256   # Omit some internal or obsolete options to make the list less imposing.
1257   # This message is too long to be a string in the A/UX 3.1 sh.
1258   cat <<_ACEOF
1259 \`configure' configures xorg-launch-helper 3 to adapt to many kinds of systems.
1260
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1262
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE.  See below for descriptions of some of the useful variables.
1265
1266 Defaults for the options are specified in brackets.
1267
1268 Configuration:
1269   -h, --help              display this help and exit
1270       --help=short        display options specific to this package
1271       --help=recursive    display the short help of all the included packages
1272   -V, --version           display version information and exit
1273   -q, --quiet, --silent   do not print \`checking ...' messages
1274       --cache-file=FILE   cache test results in FILE [disabled]
1275   -C, --config-cache      alias for \`--cache-file=config.cache'
1276   -n, --no-create         do not create output files
1277       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1278
1279 Installation directories:
1280   --prefix=PREFIX         install architecture-independent files in PREFIX
1281                           [$ac_default_prefix]
1282   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1283                           [PREFIX]
1284
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1289
1290 For better control, use the options below.
1291
1292 Fine tuning of the installation directories:
1293   --bindir=DIR            user executables [EPREFIX/bin]
1294   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1295   --libexecdir=DIR        program executables [EPREFIX/libexec]
1296   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1297   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1298   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1299   --libdir=DIR            object code libraries [EPREFIX/lib]
1300   --includedir=DIR        C header files [PREFIX/include]
1301   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1302   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1303   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1304   --infodir=DIR           info documentation [DATAROOTDIR/info]
1305   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1306   --mandir=DIR            man documentation [DATAROOTDIR/man]
1307   --docdir=DIR            documentation root
1308                           [DATAROOTDIR/doc/xorg-launch-helper]
1309   --htmldir=DIR           html documentation [DOCDIR]
1310   --dvidir=DIR            dvi documentation [DOCDIR]
1311   --pdfdir=DIR            pdf documentation [DOCDIR]
1312   --psdir=DIR             ps documentation [DOCDIR]
1313 _ACEOF
1314
1315   cat <<\_ACEOF
1316
1317 Program names:
1318   --program-prefix=PREFIX            prepend PREFIX to installed program names
1319   --program-suffix=SUFFIX            append SUFFIX to installed program names
1320   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1321 _ACEOF
1322 fi
1323
1324 if test -n "$ac_init_help"; then
1325   case $ac_init_help in
1326      short | recursive ) echo "Configuration of xorg-launch-helper 3:";;
1327    esac
1328   cat <<\_ACEOF
1329
1330 Optional Features:
1331   --disable-option-checking  ignore unrecognized --enable/--with options
1332   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1333   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1334   --disable-dependency-tracking  speeds up one-time build
1335   --enable-dependency-tracking   do not reject slow dependency extractors
1336
1337 Optional Packages:
1338   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1339   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1340   --with-systemduserunitdir=DIR
1341                           path to systemd user service directory
1342
1343 Some influential environment variables:
1344   CC          C compiler command
1345   CFLAGS      C compiler flags
1346   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1347               nonstandard directory <lib dir>
1348   LIBS        libraries to pass to the linker, e.g. -l<library>
1349   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1350               you have headers in a nonstandard directory <include dir>
1351   PKG_CONFIG  path to pkg-config utility
1352   PKG_CONFIG_PATH
1353               directories to add to pkg-config's search path
1354   PKG_CONFIG_LIBDIR
1355               path overriding pkg-config's built-in search path
1356   SYSTEMD_CFLAGS
1357               C compiler flags for SYSTEMD, overriding pkg-config
1358   SYSTEMD_LIBS
1359               linker flags for SYSTEMD, overriding pkg-config
1360   CPP         C preprocessor
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 Report bugs to <auke-jan.h.kok@intel.com>.
1366 _ACEOF
1367 ac_status=$?
1368 fi
1369
1370 if test "$ac_init_help" = "recursive"; then
1371   # If there are subdirs, report their specific --help.
1372   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373     test -d "$ac_dir" ||
1374       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1375       continue
1376     ac_builddir=.
1377
1378 case "$ac_dir" in
1379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *)
1381   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1382   # A ".." for each directory in $ac_dir_suffix.
1383   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1384   case $ac_top_builddir_sub in
1385   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387   esac ;;
1388 esac
1389 ac_abs_top_builddir=$ac_pwd
1390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1391 # for backward compatibility:
1392 ac_top_builddir=$ac_top_build_prefix
1393
1394 case $srcdir in
1395   .)  # We are building in place.
1396     ac_srcdir=.
1397     ac_top_srcdir=$ac_top_builddir_sub
1398     ac_abs_top_srcdir=$ac_pwd ;;
1399   [\\/]* | ?:[\\/]* )  # Absolute name.
1400     ac_srcdir=$srcdir$ac_dir_suffix;
1401     ac_top_srcdir=$srcdir
1402     ac_abs_top_srcdir=$srcdir ;;
1403   *) # Relative name.
1404     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1405     ac_top_srcdir=$ac_top_build_prefix$srcdir
1406     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1407 esac
1408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409
1410     cd "$ac_dir" || { ac_status=$?; continue; }
1411     # Check for guested configure.
1412     if test -f "$ac_srcdir/configure.gnu"; then
1413       echo &&
1414       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1415     elif test -f "$ac_srcdir/configure"; then
1416       echo &&
1417       $SHELL "$ac_srcdir/configure" --help=recursive
1418     else
1419       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1420     fi || ac_status=$?
1421     cd "$ac_pwd" || { ac_status=$?; break; }
1422   done
1423 fi
1424
1425 test -n "$ac_init_help" && exit $ac_status
1426 if $ac_init_version; then
1427   cat <<\_ACEOF
1428 xorg-launch-helper configure 3
1429 generated by GNU Autoconf 2.68
1430
1431 Copyright (C) 2010 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1434 _ACEOF
1435   exit
1436 fi
1437
1438 ## ------------------------ ##
1439 ## Autoconf initialization. ##
1440 ## ------------------------ ##
1441
1442 # ac_fn_c_try_compile LINENO
1443 # --------------------------
1444 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1445 ac_fn_c_try_compile ()
1446 {
1447   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1448   rm -f conftest.$ac_objext
1449   if { { ac_try="$ac_compile"
1450 case "(($ac_try" in
1451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1452   *) ac_try_echo=$ac_try;;
1453 esac
1454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1455 $as_echo "$ac_try_echo"; } >&5
1456   (eval "$ac_compile") 2>conftest.err
1457   ac_status=$?
1458   if test -s conftest.err; then
1459     grep -v '^ *+' conftest.err >conftest.er1
1460     cat conftest.er1 >&5
1461     mv -f conftest.er1 conftest.err
1462   fi
1463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1464   test $ac_status = 0; } && {
1465          test -z "$ac_c_werror_flag" ||
1466          test ! -s conftest.err
1467        } && test -s conftest.$ac_objext; then :
1468   ac_retval=0
1469 else
1470   $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1472
1473         ac_retval=1
1474 fi
1475   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1476   as_fn_set_status $ac_retval
1477
1478 } # ac_fn_c_try_compile
1479
1480 # ac_fn_c_try_link LINENO
1481 # -----------------------
1482 # Try to link conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_link ()
1484 {
1485   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486   rm -f conftest.$ac_objext conftest$ac_exeext
1487   if { { ac_try="$ac_link"
1488 case "(($ac_try" in
1489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490   *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494   (eval "$ac_link") 2>conftest.err
1495   ac_status=$?
1496   if test -s conftest.err; then
1497     grep -v '^ *+' conftest.err >conftest.er1
1498     cat conftest.er1 >&5
1499     mv -f conftest.er1 conftest.err
1500   fi
1501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502   test $ac_status = 0; } && {
1503          test -z "$ac_c_werror_flag" ||
1504          test ! -s conftest.err
1505        } && test -s conftest$ac_exeext && {
1506          test "$cross_compiling" = yes ||
1507          $as_test_x conftest$ac_exeext
1508        }; then :
1509   ac_retval=0
1510 else
1511   $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1513
1514         ac_retval=1
1515 fi
1516   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1517   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1518   # interfere with the next link command; also delete a directory that is
1519   # left behind by Apple's compiler.  We do this before executing the actions.
1520   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1521   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522   as_fn_set_status $ac_retval
1523
1524 } # ac_fn_c_try_link
1525
1526 # ac_fn_c_try_cpp LINENO
1527 # ----------------------
1528 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_cpp ()
1530 {
1531   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532   if { { ac_try="$ac_cpp conftest.$ac_ext"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } > conftest.i && {
1548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1549          test ! -s conftest.err
1550        }; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556     ac_retval=1
1557 fi
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_cpp
1562
1563 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1566 # the include files in INCLUDES and setting the cache variable VAR
1567 # accordingly.
1568 ac_fn_c_check_header_mongrel ()
1569 {
1570   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571   if eval \${$3+:} false; then :
1572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573 $as_echo_n "checking for $2... " >&6; }
1574 if eval \${$3+:} false; then :
1575   $as_echo_n "(cached) " >&6
1576 fi
1577 eval ac_res=\$$3
1578                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579 $as_echo "$ac_res" >&6; }
1580 else
1581   # Is the header compilable?
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1583 $as_echo_n "checking $2 usability... " >&6; }
1584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585 /* end confdefs.h.  */
1586 $4
1587 #include <$2>
1588 _ACEOF
1589 if ac_fn_c_try_compile "$LINENO"; then :
1590   ac_header_compiler=yes
1591 else
1592   ac_header_compiler=no
1593 fi
1594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1596 $as_echo "$ac_header_compiler" >&6; }
1597
1598 # Is the header present?
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1600 $as_echo_n "checking $2 presence... " >&6; }
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h.  */
1603 #include <$2>
1604 _ACEOF
1605 if ac_fn_c_try_cpp "$LINENO"; then :
1606   ac_header_preproc=yes
1607 else
1608   ac_header_preproc=no
1609 fi
1610 rm -f conftest.err conftest.i conftest.$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1612 $as_echo "$ac_header_preproc" >&6; }
1613
1614 # So?  What about this header?
1615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1616   yes:no: )
1617     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1618 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1619     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1620 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1621     ;;
1622   no:yes:* )
1623     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1624 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1625     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1626 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1627     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1628 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1629     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1630 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1631     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633 ( $as_echo "## --------------------------------------- ##
1634 ## Report this to auke-jan.h.kok@intel.com ##
1635 ## --------------------------------------- ##"
1636      ) | sed "s/^/$as_me: WARNING:     /" >&2
1637     ;;
1638 esac
1639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642   $as_echo_n "(cached) " >&6
1643 else
1644   eval "$3=\$ac_header_compiler"
1645 fi
1646 eval ac_res=\$$3
1647                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 fi
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652 } # ac_fn_c_check_header_mongrel
1653
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1658 ac_fn_c_try_run ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_link") 2>&5
1669   ac_status=$?
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672   { { case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_try") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; }; }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: program exited with status $ac_status" >&5
1685        $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688        ac_retval=$ac_status
1689 fi
1690   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_run
1695
1696 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists and can be compiled using the include files in
1699 # INCLUDES, setting the cache variable VAR accordingly.
1700 ac_fn_c_check_header_compile ()
1701 {
1702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if eval \${$3+:} false; then :
1706   $as_echo_n "(cached) " >&6
1707 else
1708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h.  */
1710 $4
1711 #include <$2>
1712 _ACEOF
1713 if ac_fn_c_try_compile "$LINENO"; then :
1714   eval "$3=yes"
1715 else
1716   eval "$3=no"
1717 fi
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 fi
1720 eval ac_res=\$$3
1721                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724
1725 } # ac_fn_c_check_header_compile
1726
1727 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1728 # -------------------------------------------
1729 # Tests whether TYPE exists after having included INCLUDES, setting cache
1730 # variable VAR accordingly.
1731 ac_fn_c_check_type ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737   $as_echo_n "(cached) " >&6
1738 else
1739   eval "$3=no"
1740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h.  */
1742 $4
1743 int
1744 main ()
1745 {
1746 if (sizeof ($2))
1747          return 0;
1748   ;
1749   return 0;
1750 }
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h.  */
1755 $4
1756 int
1757 main ()
1758 {
1759 if (sizeof (($2)))
1760             return 0;
1761   ;
1762   return 0;
1763 }
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766
1767 else
1768   eval "$3=yes"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 fi
1774 eval ac_res=\$$3
1775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779 } # ac_fn_c_check_type
1780
1781 # ac_fn_c_check_func LINENO FUNC VAR
1782 # ----------------------------------
1783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1784 ac_fn_c_check_func ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790   $as_echo_n "(cached) " >&6
1791 else
1792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h.  */
1794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1796 #define $2 innocuous_$2
1797
1798 /* System header to define __stub macros and hopefully few prototypes,
1799     which can conflict with char $2 (); below.
1800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801     <limits.h> exists even on freestanding compilers.  */
1802
1803 #ifdef __STDC__
1804 # include <limits.h>
1805 #else
1806 # include <assert.h>
1807 #endif
1808
1809 #undef $2
1810
1811 /* Override any GCC internal prototype to avoid an error.
1812    Use char because int might match the return type of a GCC
1813    builtin and then its argument prototype would still apply.  */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 ();
1818 /* The GNU C library defines this for functions which it implements
1819     to always fail with ENOSYS.  Some functions are actually named
1820     something starting with __ and the normal name is an alias.  */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1824
1825 int
1826 main ()
1827 {
1828 return $2 ();
1829   ;
1830   return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_link "$LINENO"; then :
1834   eval "$3=yes"
1835 else
1836   eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext \
1839     conftest$ac_exeext conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_func
1847 cat >config.log <<_ACEOF
1848 This file contains any messages produced by compilers while
1849 running configure, to aid debugging if configure makes a mistake.
1850
1851 It was created by xorg-launch-helper $as_me 3, which was
1852 generated by GNU Autoconf 2.68.  Invocation command line was
1853
1854   $ $0 $@
1855
1856 _ACEOF
1857 exec 5>>config.log
1858 {
1859 cat <<_ASUNAME
1860 ## --------- ##
1861 ## Platform. ##
1862 ## --------- ##
1863
1864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1872
1873 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1874 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1877 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1878 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1879 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1880
1881 _ASUNAME
1882
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888     $as_echo "PATH: $as_dir"
1889   done
1890 IFS=$as_save_IFS
1891
1892 } >&5
1893
1894 cat >&5 <<_ACEOF
1895
1896
1897 ## ----------- ##
1898 ## Core tests. ##
1899 ## ----------- ##
1900
1901 _ACEOF
1902
1903
1904 # Keep a trace of the command line.
1905 # Strip out --no-create and --no-recursion so they do not pile up.
1906 # Strip out --silent because we don't want to record it for future runs.
1907 # Also quote any args containing shell meta-characters.
1908 # Make two passes to allow for proper duplicate-argument suppression.
1909 ac_configure_args=
1910 ac_configure_args0=
1911 ac_configure_args1=
1912 ac_must_keep_next=false
1913 for ac_pass in 1 2
1914 do
1915   for ac_arg
1916   do
1917     case $ac_arg in
1918     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920     | -silent | --silent | --silen | --sile | --sil)
1921       continue ;;
1922     *\'*)
1923       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924     esac
1925     case $ac_pass in
1926     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927     2)
1928       as_fn_append ac_configure_args1 " '$ac_arg'"
1929       if test $ac_must_keep_next = true; then
1930         ac_must_keep_next=false # Got value, back to normal.
1931       else
1932         case $ac_arg in
1933           *=* | --config-cache | -C | -disable-* | --disable-* \
1934           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936           | -with-* | --with-* | -without-* | --without-* | --x)
1937             case "$ac_configure_args0 " in
1938               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939             esac
1940             ;;
1941           -* ) ac_must_keep_next=true ;;
1942         esac
1943       fi
1944       as_fn_append ac_configure_args " '$ac_arg'"
1945       ;;
1946     esac
1947   done
1948 done
1949 { ac_configure_args0=; unset ac_configure_args0;}
1950 { ac_configure_args1=; unset ac_configure_args1;}
1951
1952 # When interrupted or exit'd, cleanup temporary files, and complete
1953 # config.log.  We remove comments because anyway the quotes in there
1954 # would cause problems or look ugly.
1955 # WARNING: Use '\'' to represent an apostrophe within the trap.
1956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957 trap 'exit_status=$?
1958   # Save into config.log some information that might help in debugging.
1959   {
1960     echo
1961
1962     $as_echo "## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##"
1965     echo
1966     # The following way of writing the cache mishandles newlines in values,
1967 (
1968   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969     eval ac_val=\$$ac_var
1970     case $ac_val in #(
1971     *${as_nl}*)
1972       case $ac_var in #(
1973       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1974 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1975       esac
1976       case $ac_var in #(
1977       _ | IFS | as_nl) ;; #(
1978       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1979       *) { eval $ac_var=; unset $ac_var;} ;;
1980       esac ;;
1981     esac
1982   done
1983   (set) 2>&1 |
1984     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985     *${as_nl}ac_space=\ *)
1986       sed -n \
1987         "s/'\''/'\''\\\\'\'''\''/g;
1988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989       ;; #(
1990     *)
1991       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992       ;;
1993     esac |
1994     sort
1995 )
1996     echo
1997
1998     $as_echo "## ----------------- ##
1999 ## Output variables. ##
2000 ## ----------------- ##"
2001     echo
2002     for ac_var in $ac_subst_vars
2003     do
2004       eval ac_val=\$$ac_var
2005       case $ac_val in
2006       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007       esac
2008       $as_echo "$ac_var='\''$ac_val'\''"
2009     done | sort
2010     echo
2011
2012     if test -n "$ac_subst_files"; then
2013       $as_echo "## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##"
2016       echo
2017       for ac_var in $ac_subst_files
2018       do
2019         eval ac_val=\$$ac_var
2020         case $ac_val in
2021         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022         esac
2023         $as_echo "$ac_var='\''$ac_val'\''"
2024       done | sort
2025       echo
2026     fi
2027
2028     if test -s confdefs.h; then
2029       $as_echo "## ----------- ##
2030 ## confdefs.h. ##
2031 ## ----------- ##"
2032       echo
2033       cat confdefs.h
2034       echo
2035     fi
2036     test "$ac_signal" != 0 &&
2037       $as_echo "$as_me: caught signal $ac_signal"
2038     $as_echo "$as_me: exit $exit_status"
2039   } >&5
2040   rm -f core *.core core.conftest.* &&
2041     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042     exit $exit_status
2043 ' 0
2044 for ac_signal in 1 2 13 15; do
2045   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046 done
2047 ac_signal=0
2048
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest* confdefs.h
2051
2052 $as_echo "/* confdefs.h */" > confdefs.h
2053
2054 # Predefined preprocessor variables.
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_NAME "$PACKAGE_NAME"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2066 _ACEOF
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_URL "$PACKAGE_URL"
2078 _ACEOF
2079
2080
2081 # Let the site file select an alternate cache file if it wants to.
2082 # Prefer an explicitly selected file to automatically selected ones.
2083 ac_site_file1=NONE
2084 ac_site_file2=NONE
2085 if test -n "$CONFIG_SITE"; then
2086   # We do not want a PATH search for config.site.
2087   case $CONFIG_SITE in #((
2088     -*)  ac_site_file1=./$CONFIG_SITE;;
2089     */*) ac_site_file1=$CONFIG_SITE;;
2090     *)   ac_site_file1=./$CONFIG_SITE;;
2091   esac
2092 elif test "x$prefix" != xNONE; then
2093   ac_site_file1=$prefix/share/config.site
2094   ac_site_file2=$prefix/etc/config.site
2095 else
2096   ac_site_file1=$ac_default_prefix/share/config.site
2097   ac_site_file2=$ac_default_prefix/etc/config.site
2098 fi
2099 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2100 do
2101   test "x$ac_site_file" = xNONE && continue
2102   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2103     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2104 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2105     sed 's/^/| /' "$ac_site_file" >&5
2106     . "$ac_site_file" \
2107       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2109 as_fn_error $? "failed to load site script $ac_site_file
2110 See \`config.log' for more details" "$LINENO" 5; }
2111   fi
2112 done
2113
2114 if test -r "$cache_file"; then
2115   # Some versions of bash will fail to source /dev/null (special files
2116   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2117   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2118     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2119 $as_echo "$as_me: loading cache $cache_file" >&6;}
2120     case $cache_file in
2121       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2122       *)                      . "./$cache_file";;
2123     esac
2124   fi
2125 else
2126   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2127 $as_echo "$as_me: creating cache $cache_file" >&6;}
2128   >$cache_file
2129 fi
2130
2131 # Check that the precious variables saved in the cache have kept the same
2132 # value.
2133 ac_cache_corrupted=false
2134 for ac_var in $ac_precious_vars; do
2135   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2136   eval ac_new_set=\$ac_env_${ac_var}_set
2137   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2138   eval ac_new_val=\$ac_env_${ac_var}_value
2139   case $ac_old_set,$ac_new_set in
2140     set,)
2141       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2142 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2143       ac_cache_corrupted=: ;;
2144     ,set)
2145       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2146 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2147       ac_cache_corrupted=: ;;
2148     ,);;
2149     *)
2150       if test "x$ac_old_val" != "x$ac_new_val"; then
2151         # differences in whitespace do not lead to failure.
2152         ac_old_val_w=`echo x $ac_old_val`
2153         ac_new_val_w=`echo x $ac_new_val`
2154         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2155           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2156 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2157           ac_cache_corrupted=:
2158         else
2159           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2160 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2161           eval $ac_var=\$ac_old_val
2162         fi
2163         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2164 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2165         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2166 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2167       fi;;
2168   esac
2169   # Pass precious variables to config.status.
2170   if test "$ac_new_set" = set; then
2171     case $ac_new_val in
2172     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2173     *) ac_arg=$ac_var=$ac_new_val ;;
2174     esac
2175     case " $ac_configure_args " in
2176       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2177       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2178     esac
2179   fi
2180 done
2181 if $ac_cache_corrupted; then
2182   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2185 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2186   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2187 fi
2188 ## -------------------- ##
2189 ## Main body of script. ##
2190 ## -------------------- ##
2191
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197
2198
2199 am__api_version='1.11'
2200
2201 ac_aux_dir=
2202 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2203   if test -f "$ac_dir/install-sh"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/install-sh -c"
2206     break
2207   elif test -f "$ac_dir/install.sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install.sh -c"
2210     break
2211   elif test -f "$ac_dir/shtool"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/shtool install -c"
2214     break
2215   fi
2216 done
2217 if test -z "$ac_aux_dir"; then
2218   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2219 fi
2220
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2228
2229
2230 # Find a good install program.  We prefer a C program (faster),
2231 # so one script is as good as another.  But avoid the broken or
2232 # incompatible versions:
2233 # SysV /etc/install, /usr/sbin/install
2234 # SunOS /usr/etc/install
2235 # IRIX /sbin/install
2236 # AIX /bin/install
2237 # AmigaOS /C/install, which installs bootblocks on floppy discs
2238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2241 # OS/2's system install, which has a completely different semantic
2242 # ./install, which can be erroneously created by make from ./install.sh.
2243 # Reject install programs that cannot install multiple files.
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2245 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2246 if test -z "$INSTALL"; then
2247 if ${ac_cv_path_install+:} false; then :
2248   $as_echo_n "(cached) " >&6
2249 else
2250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255     # Account for people who put trailing slashes in PATH elements.
2256 case $as_dir/ in #((
2257   ./ | .// | /[cC]/* | \
2258   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2259   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2260   /usr/ucb/* ) ;;
2261   *)
2262     # OSF1 and SCO ODT 3.0 have their own names for install.
2263     # Don't use installbsd from OSF since it installs stuff as root
2264     # by default.
2265     for ac_prog in ginstall scoinst install; do
2266       for ac_exec_ext in '' $ac_executable_extensions; do
2267         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2268           if test $ac_prog = install &&
2269             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2270             # AIX install.  It has an incompatible calling convention.
2271             :
2272           elif test $ac_prog = install &&
2273             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274             # program-specific install script used by HP pwplus--don't use.
2275             :
2276           else
2277             rm -rf conftest.one conftest.two conftest.dir
2278             echo one > conftest.one
2279             echo two > conftest.two
2280             mkdir conftest.dir
2281             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2282               test -s conftest.one && test -s conftest.two &&
2283               test -s conftest.dir/conftest.one &&
2284               test -s conftest.dir/conftest.two
2285             then
2286               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287               break 3
2288             fi
2289           fi
2290         fi
2291       done
2292     done
2293     ;;
2294 esac
2295
2296   done
2297 IFS=$as_save_IFS
2298
2299 rm -rf conftest.one conftest.two conftest.dir
2300
2301 fi
2302   if test "${ac_cv_path_install+set}" = set; then
2303     INSTALL=$ac_cv_path_install
2304   else
2305     # As a last resort, use the slow shell script.  Don't cache a
2306     # value for INSTALL within a source directory, because that will
2307     # break other packages using the cache if that directory is
2308     # removed, or if the value is a relative name.
2309     INSTALL=$ac_install_sh
2310   fi
2311 fi
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2313 $as_echo "$INSTALL" >&6; }
2314
2315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2316 # It thinks the first close brace ends the variable substitution.
2317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2318
2319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2320
2321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2322
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2324 $as_echo_n "checking whether build environment is sane... " >&6; }
2325 # Just in case
2326 sleep 1
2327 echo timestamp > conftest.file
2328 # Reject unsafe characters in $srcdir or the absolute working directory
2329 # name.  Accept space and tab only in the latter.
2330 am_lf='
2331 '
2332 case `pwd` in
2333   *[\\\"\#\$\&\'\`$am_lf]*)
2334     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2335 esac
2336 case $srcdir in
2337   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2338     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2339 esac
2340
2341 # Do `set' in a subshell so we don't clobber the current shell's
2342 # arguments.  Must try -L first in case configure is actually a
2343 # symlink; some systems play weird games with the mod time of symlinks
2344 # (eg FreeBSD returns the mod time of the symlink's containing
2345 # directory).
2346 if (
2347    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2348    if test "$*" = "X"; then
2349       # -L didn't work.
2350       set X `ls -t "$srcdir/configure" conftest.file`
2351    fi
2352    rm -f conftest.file
2353    if test "$*" != "X $srcdir/configure conftest.file" \
2354       && test "$*" != "X conftest.file $srcdir/configure"; then
2355
2356       # If neither matched, then we have a broken ls.  This can happen
2357       # if, for instance, CONFIG_SHELL is bash and it inherits a
2358       # broken ls alias from the environment.  This has actually
2359       # happened.  Such a system could not be considered "sane".
2360       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2361 alias in your environment" "$LINENO" 5
2362    fi
2363
2364    test "$2" = conftest.file
2365    )
2366 then
2367    # Ok.
2368    :
2369 else
2370    as_fn_error $? "newly created file is older than distributed files!
2371 Check your system clock" "$LINENO" 5
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2374 $as_echo "yes" >&6; }
2375 test "$program_prefix" != NONE &&
2376   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2377 # Use a double $ so make ignores it.
2378 test "$program_suffix" != NONE &&
2379   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2380 # Double any \ or $.
2381 # By default was `s,x,x', remove it if useless.
2382 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2383 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2384
2385 # expand $ac_aux_dir to an absolute path
2386 am_aux_dir=`cd $ac_aux_dir && pwd`
2387
2388 if test x"${MISSING+set}" != xset; then
2389   case $am_aux_dir in
2390   *\ * | *\     *)
2391     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2392   *)
2393     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2394   esac
2395 fi
2396 # Use eval to expand $SHELL
2397 if eval "$MISSING --run true"; then
2398   am_missing_run="$MISSING --run "
2399 else
2400   am_missing_run=
2401   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2402 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2403 fi
2404
2405 if test x"${install_sh}" != xset; then
2406   case $am_aux_dir in
2407   *\ * | *\     *)
2408     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2409   *)
2410     install_sh="\${SHELL} $am_aux_dir/install-sh"
2411   esac
2412 fi
2413
2414 # Installed binaries are usually stripped using `strip' when the user
2415 # run `make install-strip'.  However `strip' might not be the right
2416 # tool to use in cross-compilation environments, therefore Automake
2417 # will honor the `STRIP' environment variable to overrule this program.
2418 if test "$cross_compiling" != no; then
2419   if test -n "$ac_tool_prefix"; then
2420   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}strip; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if ${ac_cv_prog_STRIP+:} false; then :
2425   $as_echo_n "(cached) " >&6
2426 else
2427   if test -n "$STRIP"; then
2428   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
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     for ac_exec_ext in '' $ac_executable_extensions; do
2436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440   fi
2441 done
2442   done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 STRIP=$ac_cv_prog_STRIP
2448 if test -n "$STRIP"; then
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2450 $as_echo "$STRIP" >&6; }
2451 else
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455
2456
2457 fi
2458 if test -z "$ac_cv_prog_STRIP"; then
2459   ac_ct_STRIP=$STRIP
2460   # Extract the first word of "strip", so it can be a program name with args.
2461 set dummy strip; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   if test -n "$ac_ct_STRIP"; then
2468   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475     for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     ac_cv_prog_ac_ct_STRIP="strip"
2478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482   done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2488 if test -n "$ac_ct_STRIP"; then
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2490 $as_echo "$ac_ct_STRIP" >&6; }
2491 else
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496   if test "x$ac_ct_STRIP" = x; then
2497     STRIP=":"
2498   else
2499     case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505     STRIP=$ac_ct_STRIP
2506   fi
2507 else
2508   STRIP="$ac_cv_prog_STRIP"
2509 fi
2510
2511 fi
2512 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2513
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2515 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2516 if test -z "$MKDIR_P"; then
2517   if ${ac_cv_path_mkdir+:} false; then :
2518   $as_echo_n "(cached) " >&6
2519 else
2520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525     for ac_prog in mkdir gmkdir; do
2526          for ac_exec_ext in '' $ac_executable_extensions; do
2527            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2528            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2529              'mkdir (GNU coreutils) '* | \
2530              'mkdir (coreutils) '* | \
2531              'mkdir (fileutils) '4.1*)
2532                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2533                break 3;;
2534            esac
2535          done
2536        done
2537   done
2538 IFS=$as_save_IFS
2539
2540 fi
2541
2542   test -d ./--version && rmdir ./--version
2543   if test "${ac_cv_path_mkdir+set}" = set; then
2544     MKDIR_P="$ac_cv_path_mkdir -p"
2545   else
2546     # As a last resort, use the slow shell script.  Don't cache a
2547     # value for MKDIR_P within a source directory, because that will
2548     # break other packages using the cache if that directory is
2549     # removed, or if the value is a relative name.
2550     MKDIR_P="$ac_install_sh -d"
2551   fi
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2554 $as_echo "$MKDIR_P" >&6; }
2555
2556 mkdir_p="$MKDIR_P"
2557 case $mkdir_p in
2558   [\\/$]* | ?:[\\/]*) ;;
2559   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2560 esac
2561
2562 for ac_prog in gawk mawk nawk awk
2563 do
2564   # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_AWK+:} false; then :
2569   $as_echo_n "(cached) " >&6
2570 else
2571   if test -n "$AWK"; then
2572   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579     for ac_exec_ext in '' $ac_executable_extensions; do
2580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581     ac_cv_prog_AWK="$ac_prog"
2582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586   done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 AWK=$ac_cv_prog_AWK
2592 if test -n "$AWK"; then
2593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2594 $as_echo "$AWK" >&6; }
2595 else
2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600
2601   test -n "$AWK" && break
2602 done
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2606 set x ${MAKE-make}
2607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2608 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   cat >conftest.make <<\_ACEOF
2612 SHELL = /bin/sh
2613 all:
2614         @echo '@@@%%%=$(MAKE)=@@@%%%'
2615 _ACEOF
2616 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2618   *@@@%%%=?*=@@@%%%*)
2619     eval ac_cv_prog_make_${ac_make}_set=yes;;
2620   *)
2621     eval ac_cv_prog_make_${ac_make}_set=no;;
2622 esac
2623 rm -f conftest.make
2624 fi
2625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628   SET_MAKE=
2629 else
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632   SET_MAKE="MAKE=${MAKE-make}"
2633 fi
2634
2635 rm -rf .tst 2>/dev/null
2636 mkdir .tst 2>/dev/null
2637 if test -d .tst; then
2638   am__leading_dot=.
2639 else
2640   am__leading_dot=_
2641 fi
2642 rmdir .tst 2>/dev/null
2643
2644 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2645   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2646   # is not polluted with repeated "-I."
2647   am__isrc=' -I$(srcdir)'
2648   # test to see if srcdir already configured
2649   if test -f $srcdir/config.status; then
2650     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2651   fi
2652 fi
2653
2654 # test whether we have cygpath
2655 if test -z "$CYGPATH_W"; then
2656   if (cygpath --version) >/dev/null 2>/dev/null; then
2657     CYGPATH_W='cygpath -w'
2658   else
2659     CYGPATH_W=echo
2660   fi
2661 fi
2662
2663
2664 # Define the identity of the package.
2665  PACKAGE='xorg-launch-helper'
2666  VERSION='3'
2667
2668
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE "$PACKAGE"
2671 _ACEOF
2672
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define VERSION "$VERSION"
2676 _ACEOF
2677
2678 # Some tools Automake needs.
2679
2680 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2681
2682
2683 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2684
2685
2686 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2687
2688
2689 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2690
2691
2692 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2693
2694 # We need awk for the "check" target.  The system "awk" is bad on
2695 # some platforms.
2696 # Always define AMTAR for backward compatibility.
2697
2698 AMTAR=${AMTAR-"${am_missing_run}tar"}
2699
2700 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2701
2702
2703
2704
2705
2706 ac_config_files="$ac_config_files Makefile src/Makefile"
2707
2708
2709 ac_config_headers="$ac_config_headers config.h"
2710
2711
2712 # Checks for programs.
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_CC+:} false; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   if test -n "$CC"; then
2727   ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732   IFS=$as_save_IFS
2733   test -z "$as_dir" && as_dir=.
2734     for ac_exec_ext in '' $ac_executable_extensions; do
2735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738     break 2
2739   fi
2740 done
2741   done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2750 else
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755
2756 fi
2757 if test -z "$ac_cv_prog_CC"; then
2758   ac_ct_CC=$CC
2759   # Extract the first word of "gcc", so it can be a program name with args.
2760 set dummy gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   if test -n "$ac_ct_CC"; then
2767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772   IFS=$as_save_IFS
2773   test -z "$as_dir" && as_dir=.
2774     for ac_exec_ext in '' $ac_executable_extensions; do
2775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776     ac_cv_prog_ac_ct_CC="gcc"
2777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778     break 2
2779   fi
2780 done
2781   done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2789 $as_echo "$ac_ct_CC" >&6; }
2790 else
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794
2795   if test "x$ac_ct_CC" = x; then
2796     CC=""
2797   else
2798     case $cross_compiling:$ac_tool_warned in
2799 yes:)
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804     CC=$ac_ct_CC
2805   fi
2806 else
2807   CC="$ac_cv_prog_CC"
2808 fi
2809
2810 if test -z "$CC"; then
2811           if test -n "$ac_tool_prefix"; then
2812     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}cc; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_CC+:} false; then :
2817   $as_echo_n "(cached) " >&6
2818 else
2819   if test -n "$CC"; then
2820   ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827     for ac_exec_ext in '' $ac_executable_extensions; do
2828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829     ac_cv_prog_CC="${ac_tool_prefix}cc"
2830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834   done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2843 else
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847
2848
2849   fi
2850 fi
2851 if test -z "$CC"; then
2852   # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   if test -n "$CC"; then
2860   ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862   ac_prog_rejected=no
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868     for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871        ac_prog_rejected=yes
2872        continue
2873      fi
2874     ac_cv_prog_CC="cc"
2875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879   done
2880 IFS=$as_save_IFS
2881
2882 if test $ac_prog_rejected = yes; then
2883   # We found a bogon in the path, so make sure we never use it.
2884   set dummy $ac_cv_prog_CC
2885   shift
2886   if test $# != 0; then
2887     # We chose a different compiler from the bogus one.
2888     # However, it has the same basename, so the bogon will be chosen
2889     # first if we set CC to just the basename; use the full file name.
2890     shift
2891     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892   fi
2893 fi
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$CC"; then
2908   if test -n "$ac_tool_prefix"; then
2909   for ac_prog in cl.exe
2910   do
2911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916   $as_echo_n "(cached) " >&6
2917 else
2918   if test -n "$CC"; then
2919   ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926     for ac_exec_ext in '' $ac_executable_extensions; do
2927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933   done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948     test -n "$CC" && break
2949   done
2950 fi
2951 if test -z "$CC"; then
2952   ac_ct_CC=$CC
2953   for ac_prog in cl.exe
2954 do
2955   # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test -n "$ac_ct_CC"; then
2963   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     for ac_exec_ext in '' $ac_executable_extensions; do
2971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972     ac_cv_prog_ac_ct_CC="$ac_prog"
2973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977   done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2985 $as_echo "$ac_ct_CC" >&6; }
2986 else
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992   test -n "$ac_ct_CC" && break
2993 done
2994
2995   if test "x$ac_ct_CC" = x; then
2996     CC=""
2997   else
2998     case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004     CC=$ac_ct_CC
3005   fi
3006 fi
3007
3008 fi
3009
3010
3011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 as_fn_error $? "no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details" "$LINENO" 5; }
3015
3016 # Provide some information about the compiler.
3017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3018 set X $ac_compile
3019 ac_compiler=$2
3020 for ac_option in --version -v -V -qversion; do
3021   { { ac_try="$ac_compiler $ac_option >&5"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3029   ac_status=$?
3030   if test -s conftest.err; then
3031     sed '10a\
3032 ... rest of stderr output deleted ...
3033          10q' conftest.err >conftest.er1
3034     cat conftest.er1 >&5
3035   fi
3036   rm -f conftest.er1 conftest.err
3037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038   test $ac_status = 0; }
3039 done
3040
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h.  */
3043
3044 int
3045 main ()
3046 {
3047
3048   ;
3049   return 0;
3050 }
3051 _ACEOF
3052 ac_clean_files_save=$ac_clean_files
3053 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3054 # Try to create an executable without -o first, disregard a.out.
3055 # It will help us diagnose broken compilers, and finding out an intuition
3056 # of exeext.
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3058 $as_echo_n "checking whether the C compiler works... " >&6; }
3059 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060
3061 # The possible output files:
3062 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3063
3064 ac_rmfiles=
3065 for ac_file in $ac_files
3066 do
3067   case $ac_file in
3068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3069     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3070   esac
3071 done
3072 rm -f $ac_rmfiles
3073
3074 if { { ac_try="$ac_link_default"
3075 case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081   (eval "$ac_link_default") 2>&5
3082   ac_status=$?
3083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084   test $ac_status = 0; }; then :
3085   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3086 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3087 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3088 # so that the user can short-circuit this test for compilers unknown to
3089 # Autoconf.
3090 for ac_file in $ac_files ''
3091 do
3092   test -f "$ac_file" || continue
3093   case $ac_file in
3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3095         ;;
3096     [ab].out )
3097         # We found the default executable, but exeext='' is most
3098         # certainly right.
3099         break;;
3100     *.* )
3101         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3102         then :; else
3103            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104         fi
3105         # We set ac_cv_exeext here because the later test for it is not
3106         # safe: cross compilers may not add the suffix if given an `-o'
3107         # argument, so we may need to know it at that point already.
3108         # Even if this section looks crufty: it has the advantage of
3109         # actually working.
3110         break;;
3111     * )
3112         break;;
3113   esac
3114 done
3115 test "$ac_cv_exeext" = no && ac_cv_exeext=
3116
3117 else
3118   ac_file=''
3119 fi
3120 if test -z "$ac_file"; then :
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 $as_echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error 77 "C compiler cannot create executables
3129 See \`config.log' for more details" "$LINENO" 5; }
3130 else
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 $as_echo "yes" >&6; }
3133 fi
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3135 $as_echo_n "checking for C compiler default output file name... " >&6; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3137 $as_echo "$ac_file" >&6; }
3138 ac_exeext=$ac_cv_exeext
3139
3140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3141 ac_clean_files=$ac_clean_files_save
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3143 $as_echo_n "checking for suffix of executables... " >&6; }
3144 if { { ac_try="$ac_link"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151   (eval "$ac_link") 2>&5
3152   ac_status=$?
3153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154   test $ac_status = 0; }; then :
3155   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3156 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3157 # work properly (i.e., refer to `conftest.exe'), while it won't with
3158 # `rm'.
3159 for ac_file in conftest.exe conftest conftest.*; do
3160   test -f "$ac_file" || continue
3161   case $ac_file in
3162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3163     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3164           break;;
3165     * ) break;;
3166   esac
3167 done
3168 else
3169   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3172 See \`config.log' for more details" "$LINENO" 5; }
3173 fi
3174 rm -f conftest conftest$ac_cv_exeext
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3176 $as_echo "$ac_cv_exeext" >&6; }
3177
3178 rm -f conftest.$ac_ext
3179 EXEEXT=$ac_cv_exeext
3180 ac_exeext=$EXEEXT
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h.  */
3183 #include <stdio.h>
3184 int
3185 main ()
3186 {
3187 FILE *f = fopen ("conftest.out", "w");
3188  return ferror (f) || fclose (f) != 0;
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 ac_clean_files="$ac_clean_files conftest.out"
3195 # Check that the compiler produces executables we can run.  If not, either
3196 # the compiler is broken, or we cross compile.
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3198 $as_echo_n "checking whether we are cross compiling... " >&6; }
3199 if test "$cross_compiling" != yes; then
3200   { { ac_try="$ac_link"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207   (eval "$ac_link") 2>&5
3208   ac_status=$?
3209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210   test $ac_status = 0; }
3211   if { ac_try='./conftest$ac_cv_exeext'
3212   { { case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218   (eval "$ac_try") 2>&5
3219   ac_status=$?
3220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221   test $ac_status = 0; }; }; then
3222     cross_compiling=no
3223   else
3224     if test "$cross_compiling" = maybe; then
3225         cross_compiling=yes
3226     else
3227         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error $? "cannot run C compiled programs.
3230 If you meant to cross compile, use \`--host'.
3231 See \`config.log' for more details" "$LINENO" 5; }
3232     fi
3233   fi
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3236 $as_echo "$cross_compiling" >&6; }
3237
3238 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3239 ac_clean_files=$ac_clean_files_save
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3241 $as_echo_n "checking for suffix of object files... " >&6; }
3242 if ${ac_cv_objext+:} false; then :
3243   $as_echo_n "(cached) " >&6
3244 else
3245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.o conftest.obj
3257 if { { ac_try="$ac_compile"
3258 case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264   (eval "$ac_compile") 2>&5
3265   ac_status=$?
3266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267   test $ac_status = 0; }; then :
3268   for ac_file in conftest.o conftest.obj conftest.*; do
3269   test -f "$ac_file" || continue;
3270   case $ac_file in
3271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3272     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3273        break;;
3274   esac
3275 done
3276 else
3277   $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "cannot compute suffix of object files: cannot compile
3283 See \`config.log' for more details" "$LINENO" 5; }
3284 fi
3285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3288 $as_echo "$ac_cv_objext" >&6; }
3289 OBJEXT=$ac_cv_objext
3290 ac_objext=$OBJEXT
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3292 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3293 if ${ac_cv_c_compiler_gnu+:} false; then :
3294   $as_echo_n "(cached) " >&6
3295 else
3296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h.  */
3298
3299 int
3300 main ()
3301 {
3302 #ifndef __GNUC__
3303        choke me
3304 #endif
3305
3306   ;
3307   return 0;
3308 }
3309 _ACEOF
3310 if ac_fn_c_try_compile "$LINENO"; then :
3311   ac_compiler_gnu=yes
3312 else
3313   ac_compiler_gnu=no
3314 fi
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3317
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3320 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3321 if test $ac_compiler_gnu = yes; then
3322   GCC=yes
3323 else
3324   GCC=
3325 fi
3326 ac_test_CFLAGS=${CFLAGS+set}
3327 ac_save_CFLAGS=$CFLAGS
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3329 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3330 if ${ac_cv_prog_cc_g+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   ac_save_c_werror_flag=$ac_c_werror_flag
3334    ac_c_werror_flag=yes
3335    ac_cv_prog_cc_g=no
3336    CFLAGS="-g"
3337    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h.  */
3339
3340 int
3341 main ()
3342 {
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 if ac_fn_c_try_compile "$LINENO"; then :
3349   ac_cv_prog_cc_g=yes
3350 else
3351   CFLAGS=""
3352       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h.  */
3354
3355 int
3356 main ()
3357 {
3358
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 if ac_fn_c_try_compile "$LINENO"; then :
3364
3365 else
3366   ac_c_werror_flag=$ac_save_c_werror_flag
3367          CFLAGS="-g"
3368          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h.  */
3370
3371 int
3372 main ()
3373 {
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380   ac_cv_prog_cc_g=yes
3381 fi
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 fi
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 fi
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387    ac_c_werror_flag=$ac_save_c_werror_flag
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3390 $as_echo "$ac_cv_prog_cc_g" >&6; }
3391 if test "$ac_test_CFLAGS" = set; then
3392   CFLAGS=$ac_save_CFLAGS
3393 elif test $ac_cv_prog_cc_g = yes; then
3394   if test "$GCC" = yes; then
3395     CFLAGS="-g -O2"
3396   else
3397     CFLAGS="-g"
3398   fi
3399 else
3400   if test "$GCC" = yes; then
3401     CFLAGS="-O2"
3402   else
3403     CFLAGS=
3404   fi
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3408 if ${ac_cv_prog_cc_c89+:} false; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   ac_cv_prog_cc_c89=no
3412 ac_save_CC=$CC
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h.  */
3415 #include <stdarg.h>
3416 #include <stdio.h>
3417 #include <sys/types.h>
3418 #include <sys/stat.h>
3419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3420 struct buf { int x; };
3421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3422 static char *e (p, i)
3423      char **p;
3424      int i;
3425 {
3426   return p[i];
3427 }
3428 static char *f (char * (*g) (char **, int), char **p, ...)
3429 {
3430   char *s;
3431   va_list v;
3432   va_start (v,p);
3433   s = g (p, va_arg (v,int));
3434   va_end (v);
3435   return s;
3436 }
3437
3438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3439    function prototypes and stuff, but not '\xHH' hex character constants.
3440    These don't provoke an error unfortunately, instead are silently treated
3441    as 'x'.  The following induces an error, until -std is added to get
3442    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3443    array size at least.  It's necessary to write '\x00'==0 to get something
3444    that's true only with -std.  */
3445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3446
3447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3448    inside strings and character constants.  */
3449 #define FOO(x) 'x'
3450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3451
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456 int argc;
3457 char **argv;
3458 int
3459 main ()
3460 {
3461 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3467         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3468 do
3469   CC="$ac_save_CC $ac_arg"
3470   if ac_fn_c_try_compile "$LINENO"; then :
3471   ac_cv_prog_cc_c89=$ac_arg
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext
3474   test "x$ac_cv_prog_cc_c89" != "xno" && break
3475 done
3476 rm -f conftest.$ac_ext
3477 CC=$ac_save_CC
3478
3479 fi
3480 # AC_CACHE_VAL
3481 case "x$ac_cv_prog_cc_c89" in
3482   x)
3483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3484 $as_echo "none needed" >&6; } ;;
3485   xno)
3486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3487 $as_echo "unsupported" >&6; } ;;
3488   *)
3489     CC="$CC $ac_cv_prog_cc_c89"
3490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3491 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3492 esac
3493 if test "x$ac_cv_prog_cc_c89" != xno; then :
3494
3495 fi
3496
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 DEPDIR="${am__leading_dot}deps"
3503
3504 ac_config_commands="$ac_config_commands depfiles"
3505
3506
3507 am_make=${MAKE-make}
3508 cat > confinc << 'END'
3509 am__doit:
3510         @echo this is the am__doit target
3511 .PHONY: am__doit
3512 END
3513 # If we don't find an include directive, just comment out the code.
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3515 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3516 am__include="#"
3517 am__quote=
3518 _am_result=none
3519 # First try GNU make style include.
3520 echo "include confinc" > confmf
3521 # Ignore all kinds of additional output from `make'.
3522 case `$am_make -s -f confmf 2> /dev/null` in #(
3523 *the\ am__doit\ target*)
3524   am__include=include
3525   am__quote=
3526   _am_result=GNU
3527   ;;
3528 esac
3529 # Now try BSD make style include.
3530 if test "$am__include" = "#"; then
3531    echo '.include "confinc"' > confmf
3532    case `$am_make -s -f confmf 2> /dev/null` in #(
3533    *the\ am__doit\ target*)
3534      am__include=.include
3535      am__quote="\""
3536      _am_result=BSD
3537      ;;
3538    esac
3539 fi
3540
3541
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3543 $as_echo "$_am_result" >&6; }
3544 rm -f confinc confmf
3545
3546 # Check whether --enable-dependency-tracking was given.
3547 if test "${enable_dependency_tracking+set}" = set; then :
3548   enableval=$enable_dependency_tracking;
3549 fi
3550
3551 if test "x$enable_dependency_tracking" != xno; then
3552   am_depcomp="$ac_aux_dir/depcomp"
3553   AMDEPBACKSLASH='\'
3554 fi
3555  if test "x$enable_dependency_tracking" != xno; then
3556   AMDEP_TRUE=
3557   AMDEP_FALSE='#'
3558 else
3559   AMDEP_TRUE='#'
3560   AMDEP_FALSE=
3561 fi
3562
3563
3564
3565 depcc="$CC"   am_compiler_list=
3566
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3568 $as_echo_n "checking dependency style of $depcc... " >&6; }
3569 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573   # We make a subdir and do the tests there.  Otherwise we can end up
3574   # making bogus files that we don't know about and never remove.  For
3575   # instance it was reported that on HP-UX the gcc test will end up
3576   # making a dummy file named `D' -- because `-MD' means `put the output
3577   # in D'.
3578   mkdir conftest.dir
3579   # Copy depcomp to subdir because otherwise we won't find it if we're
3580   # using a relative directory.
3581   cp "$am_depcomp" conftest.dir
3582   cd conftest.dir
3583   # We will build objects and dependencies in a subdirectory because
3584   # it helps to detect inapplicable dependency modes.  For instance
3585   # both Tru64's cc and ICC support -MD to output dependencies as a
3586   # side effect of compilation, but ICC will put the dependencies in
3587   # the current directory while Tru64 will put them in the object
3588   # directory.
3589   mkdir sub
3590
3591   am_cv_CC_dependencies_compiler_type=none
3592   if test "$am_compiler_list" = ""; then
3593      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594   fi
3595   am__universal=false
3596   case " $depcc " in #(
3597      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3598      esac
3599
3600   for depmode in $am_compiler_list; do
3601     # Setup a source with many dependencies, because some compilers
3602     # like to wrap large dependency lists on column 80 (with \), and
3603     # we should not choose a depcomp mode which is confused by this.
3604     #
3605     # We need to recreate these files for each test, as the compiler may
3606     # overwrite some of them when testing with obscure command lines.
3607     # This happens at least with the AIX C compiler.
3608     : > sub/conftest.c
3609     for i in 1 2 3 4 5 6; do
3610       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3611       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3612       # Solaris 8's {/usr,}/bin/sh.
3613       touch sub/conftst$i.h
3614     done
3615     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3616
3617     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3618     # mode.  It turns out that the SunPro C++ compiler does not properly
3619     # handle `-M -o', and we need to detect this.  Also, some Intel
3620     # versions had trouble with output in subdirs
3621     am__obj=sub/conftest.${OBJEXT-o}
3622     am__minus_obj="-o $am__obj"
3623     case $depmode in
3624     gcc)
3625       # This depmode causes a compiler race in universal mode.
3626       test "$am__universal" = false || continue
3627       ;;
3628     nosideeffect)
3629       # after this tag, mechanisms are not by side-effect, so they'll
3630       # only be used when explicitly requested
3631       if test "x$enable_dependency_tracking" = xyes; then
3632         continue
3633       else
3634         break
3635       fi
3636       ;;
3637     msvisualcpp | msvcmsys)
3638       # This compiler won't grok `-c -o', but also, the minuso test has
3639       # not run yet.  These depmodes are late enough in the game, and
3640       # so weak that their functioning should not be impacted.
3641       am__obj=conftest.${OBJEXT-o}
3642       am__minus_obj=
3643       ;;
3644     none) break ;;
3645     esac
3646     if depmode=$depmode \
3647        source=sub/conftest.c object=$am__obj \
3648        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3649        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3650          >/dev/null 2>conftest.err &&
3651        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3652        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3653        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3654        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3655       # icc doesn't choke on unknown options, it will just issue warnings
3656       # or remarks (even with -Werror).  So we grep stderr for any message
3657       # that says an option was ignored or not supported.
3658       # When given -MP, icc 7.0 and 7.1 complain thusly:
3659       #   icc: Command line warning: ignoring option '-M'; no argument required
3660       # The diagnosis changed in icc 8.0:
3661       #   icc: Command line remark: option '-MP' not supported
3662       if (grep 'ignoring option' conftest.err ||
3663           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3664         am_cv_CC_dependencies_compiler_type=$depmode
3665         break
3666       fi
3667     fi
3668   done
3669
3670   cd ..
3671   rm -rf conftest.dir
3672 else
3673   am_cv_CC_dependencies_compiler_type=none
3674 fi
3675
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3678 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3679 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3680
3681  if
3682   test "x$enable_dependency_tracking" != xno \
3683   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3684   am__fastdepCC_TRUE=
3685   am__fastdepCC_FALSE='#'
3686 else
3687   am__fastdepCC_TRUE='#'
3688   am__fastdepCC_FALSE=
3689 fi
3690
3691
3692
3693
3694 # FIXME: Replace `main' with a function in `-lpthread':
3695
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
3697 $as_echo_n "checking for main in -lpthread... " >&6; }
3698 if ${ac_cv_lib_pthread_main+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   ac_check_lib_save_LIBS=$LIBS
3702 LIBS="-lpthread  $LIBS"
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h.  */
3705
3706
3707 int
3708 main ()
3709 {
3710 return main ();
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_link "$LINENO"; then :
3716   ac_cv_lib_pthread_main=yes
3717 else
3718   ac_cv_lib_pthread_main=no
3719 fi
3720 rm -f core conftest.err conftest.$ac_objext \
3721     conftest$ac_exeext conftest.$ac_ext
3722 LIBS=$ac_check_lib_save_LIBS
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
3725 $as_echo "$ac_cv_lib_pthread_main" >&6; }
3726 if test "x$ac_cv_lib_pthread_main" = xyes; then :
3727   cat >>confdefs.h <<_ACEOF
3728 #define HAVE_LIBPTHREAD 1
3729 _ACEOF
3730
3731   LIBS="-lpthread $LIBS"
3732
3733 else
3734   as_fn_error $? "libpthread is required but was not found" "$LINENO" 5
3735 fi
3736
3737 # FIXME: Replace `main' with a function in `-lrt':
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
3739 $as_echo_n "checking for main in -lrt... " >&6; }
3740 if ${ac_cv_lib_rt_main+:} false; then :
3741   $as_echo_n "(cached) " >&6
3742 else
3743   ac_check_lib_save_LIBS=$LIBS
3744 LIBS="-lrt  $LIBS"
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h.  */
3747
3748
3749 int
3750 main ()
3751 {
3752 return main ();
3753   ;
3754   return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_link "$LINENO"; then :
3758   ac_cv_lib_rt_main=yes
3759 else
3760   ac_cv_lib_rt_main=no
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext \
3763     conftest$ac_exeext conftest.$ac_ext
3764 LIBS=$ac_check_lib_save_LIBS
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
3767 $as_echo "$ac_cv_lib_rt_main" >&6; }
3768 if test "x$ac_cv_lib_rt_main" = xyes; then :
3769   cat >>confdefs.h <<_ACEOF
3770 #define HAVE_LIBRT 1
3771 _ACEOF
3772
3773   LIBS="-lrt $LIBS"
3774
3775 else
3776   as_fn_error $? "librt is required but was not found" "$LINENO" 5
3777 fi
3778
3779
3780
3781
3782
3783
3784
3785
3786 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3787         if test -n "$ac_tool_prefix"; then
3788   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   case $PKG_CONFIG in
3796   [\\/]* | ?:[\\/]*)
3797   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3798   ;;
3799   *)
3800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812   done
3813 IFS=$as_save_IFS
3814
3815   ;;
3816 esac
3817 fi
3818 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3819 if test -n "$PKG_CONFIG"; then
3820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3821 $as_echo "$PKG_CONFIG" >&6; }
3822 else
3823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3825 fi
3826
3827
3828 fi
3829 if test -z "$ac_cv_path_PKG_CONFIG"; then
3830   ac_pt_PKG_CONFIG=$PKG_CONFIG
3831   # Extract the first word of "pkg-config", so it can be a program name with args.
3832 set dummy pkg-config; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   case $ac_pt_PKG_CONFIG in
3839   [\\/]* | ?:[\\/]*)
3840   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3841   ;;
3842   *)
3843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848     for ac_exec_ext in '' $ac_executable_extensions; do
3849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852     break 2
3853   fi
3854 done
3855   done
3856 IFS=$as_save_IFS
3857
3858   ;;
3859 esac
3860 fi
3861 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3862 if test -n "$ac_pt_PKG_CONFIG"; then
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3864 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3865 else
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3870   if test "x$ac_pt_PKG_CONFIG" = x; then
3871     PKG_CONFIG=""
3872   else
3873     case $cross_compiling:$ac_tool_warned in
3874 yes:)
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3877 ac_tool_warned=yes ;;
3878 esac
3879     PKG_CONFIG=$ac_pt_PKG_CONFIG
3880   fi
3881 else
3882   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3883 fi
3884
3885 fi
3886 if test -n "$PKG_CONFIG"; then
3887         _pkg_min_version=0.9.0
3888         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3889 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3890         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3891                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892 $as_echo "yes" >&6; }
3893         else
3894                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3896                 PKG_CONFIG=""
3897         fi
3898 fi
3899
3900 pkg_failed=no
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
3902 $as_echo_n "checking for SYSTEMD... " >&6; }
3903
3904 if test -n "$SYSTEMD_CFLAGS"; then
3905     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
3906  elif test -n "$PKG_CONFIG"; then
3907     if test -n "$PKG_CONFIG" && \
3908     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
3909   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
3910   ac_status=$?
3911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912   test $ac_status = 0; }; then
3913   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
3914 else
3915   pkg_failed=yes
3916 fi
3917  else
3918     pkg_failed=untried
3919 fi
3920 if test -n "$SYSTEMD_LIBS"; then
3921     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
3922  elif test -n "$PKG_CONFIG"; then
3923     if test -n "$PKG_CONFIG" && \
3924     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
3925   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
3926   ac_status=$?
3927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928   test $ac_status = 0; }; then
3929   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
3930 else
3931   pkg_failed=yes
3932 fi
3933  else
3934     pkg_failed=untried
3935 fi
3936
3937
3938
3939 if test $pkg_failed = yes; then
3940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942
3943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3944         _pkg_short_errors_supported=yes
3945 else
3946         _pkg_short_errors_supported=no
3947 fi
3948         if test $_pkg_short_errors_supported = yes; then
3949                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "systemd" 2>&1`
3950         else
3951                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors "systemd" 2>&1`
3952         fi
3953         # Put the nasty error message in config.log where it belongs
3954         echo "$SYSTEMD_PKG_ERRORS" >&5
3955
3956         as_fn_error $? "Package requirements (systemd) were not met:
3957
3958 $SYSTEMD_PKG_ERRORS
3959
3960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3961 installed software in a non-standard prefix.
3962
3963 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
3964 and SYSTEMD_LIBS to avoid the need to call pkg-config.
3965 See the pkg-config man page for more details." "$LINENO" 5
3966
3967 elif test $pkg_failed = untried; then
3968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
3973 is in your PATH or set the PKG_CONFIG environment variable to the full
3974 path to pkg-config.
3975
3976 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
3977 and SYSTEMD_LIBS to avoid the need to call pkg-config.
3978 See the pkg-config man page for more details.
3979
3980 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3981 See \`config.log' for more details" "$LINENO" 5; }
3982
3983 else
3984         SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
3985         SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
3986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3988
3989 fi
3990
3991
3992 # Check whether --with-systemduserunitdir was given.
3993 if test "${with_systemduserunitdir+set}" = set; then :
3994   withval=$with_systemduserunitdir; path_systemduserunit=${withval}
3995 else
3996   path_systemduserunit="`$PKG_CONFIG --variable=systemduserunitdir systemd`"
3997 fi
3998
3999 if (test -n "${path_systemduserunit}"); then
4000 SYSTEMD_USERUNITDIR="${path_systemduserunit}"
4001
4002  if test -n "${path_systemduserunit}"; then
4003   SYSTEMD_TRUE=
4004   SYSTEMD_FALSE='#'
4005 else
4006   SYSTEMD_TRUE='#'
4007   SYSTEMD_FALSE=
4008 fi
4009
4010 fi
4011
4012 # Checks for header files.
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4019 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4020 # On Suns, sometimes $CPP names a directory.
4021 if test -n "$CPP" && test -d "$CPP"; then
4022   CPP=
4023 fi
4024 if test -z "$CPP"; then
4025   if ${ac_cv_prog_CPP+:} false; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028       # Double quotes because CPP needs to be expanded
4029     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4030     do
4031       ac_preproc_ok=false
4032 for ac_c_preproc_warn_flag in '' yes
4033 do
4034   # Use a header file that comes with gcc, so configuring glibc
4035   # with a fresh cross-compiler works.
4036   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037   # <limits.h> exists even on freestanding compilers.
4038   # On the NeXT, cc -E runs the code through the compiler's parser,
4039   # not just through cpp. "Syntax error" is here to catch this case.
4040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h.  */
4042 #ifdef __STDC__
4043 # include <limits.h>
4044 #else
4045 # include <assert.h>
4046 #endif
4047                      Syntax error
4048 _ACEOF
4049 if ac_fn_c_try_cpp "$LINENO"; then :
4050
4051 else
4052   # Broken: fails on valid input.
4053 continue
4054 fi
4055 rm -f conftest.err conftest.i conftest.$ac_ext
4056
4057   # OK, works on sane cases.  Now check whether nonexistent headers
4058   # can be detected and how.
4059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h.  */
4061 #include <ac_nonexistent.h>
4062 _ACEOF
4063 if ac_fn_c_try_cpp "$LINENO"; then :
4064   # Broken: success on invalid input.
4065 continue
4066 else
4067   # Passes both tests.
4068 ac_preproc_ok=:
4069 break
4070 fi
4071 rm -f conftest.err conftest.i conftest.$ac_ext
4072
4073 done
4074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 rm -f conftest.i conftest.err conftest.$ac_ext
4076 if $ac_preproc_ok; then :
4077   break
4078 fi
4079
4080     done
4081     ac_cv_prog_CPP=$CPP
4082
4083 fi
4084   CPP=$ac_cv_prog_CPP
4085 else
4086   ac_cv_prog_CPP=$CPP
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4089 $as_echo "$CPP" >&6; }
4090 ac_preproc_ok=false
4091 for ac_c_preproc_warn_flag in '' yes
4092 do
4093   # Use a header file that comes with gcc, so configuring glibc
4094   # with a fresh cross-compiler works.
4095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096   # <limits.h> exists even on freestanding compilers.
4097   # On the NeXT, cc -E runs the code through the compiler's parser,
4098   # not just through cpp. "Syntax error" is here to catch this case.
4099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101 #ifdef __STDC__
4102 # include <limits.h>
4103 #else
4104 # include <assert.h>
4105 #endif
4106                      Syntax error
4107 _ACEOF
4108 if ac_fn_c_try_cpp "$LINENO"; then :
4109
4110 else
4111   # Broken: fails on valid input.
4112 continue
4113 fi
4114 rm -f conftest.err conftest.i conftest.$ac_ext
4115
4116   # OK, works on sane cases.  Now check whether nonexistent headers
4117   # can be detected and how.
4118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h.  */
4120 #include <ac_nonexistent.h>
4121 _ACEOF
4122 if ac_fn_c_try_cpp "$LINENO"; then :
4123   # Broken: success on invalid input.
4124 continue
4125 else
4126   # Passes both tests.
4127 ac_preproc_ok=:
4128 break
4129 fi
4130 rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132 done
4133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4134 rm -f conftest.i conftest.err conftest.$ac_ext
4135 if $ac_preproc_ok; then :
4136
4137 else
4138   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4141 See \`config.log' for more details" "$LINENO" 5; }
4142 fi
4143
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4152 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4153 if ${ac_cv_path_GREP+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   if test -z "$GREP"; then
4157   ac_path_GREP_found=false
4158   # Loop through the user's path and test for each of PROGNAME-LIST
4159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164     for ac_prog in grep ggrep; do
4165     for ac_exec_ext in '' $ac_executable_extensions; do
4166       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4167       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4168 # Check for GNU ac_path_GREP and select it if it is found.
4169   # Check for GNU $ac_path_GREP
4170 case `"$ac_path_GREP" --version 2>&1` in
4171 *GNU*)
4172   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4173 *)
4174   ac_count=0
4175   $as_echo_n 0123456789 >"conftest.in"
4176   while :
4177   do
4178     cat "conftest.in" "conftest.in" >"conftest.tmp"
4179     mv "conftest.tmp" "conftest.in"
4180     cp "conftest.in" "conftest.nl"
4181     $as_echo 'GREP' >> "conftest.nl"
4182     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184     as_fn_arith $ac_count + 1 && ac_count=$as_val
4185     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4186       # Best one so far, save it but keep looking for a better one
4187       ac_cv_path_GREP="$ac_path_GREP"
4188       ac_path_GREP_max=$ac_count
4189     fi
4190     # 10*(2^10) chars as input seems more than enough
4191     test $ac_count -gt 10 && break
4192   done
4193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4195
4196       $ac_path_GREP_found && break 3
4197     done
4198   done
4199   done
4200 IFS=$as_save_IFS
4201   if test -z "$ac_cv_path_GREP"; then
4202     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203   fi
4204 else
4205   ac_cv_path_GREP=$GREP
4206 fi
4207
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4210 $as_echo "$ac_cv_path_GREP" >&6; }
4211  GREP="$ac_cv_path_GREP"
4212
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4215 $as_echo_n "checking for egrep... " >&6; }
4216 if ${ac_cv_path_EGREP+:} false; then :
4217   $as_echo_n "(cached) " >&6
4218 else
4219   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4220    then ac_cv_path_EGREP="$GREP -E"
4221    else
4222      if test -z "$EGREP"; then
4223   ac_path_EGREP_found=false
4224   # Loop through the user's path and test for each of PROGNAME-LIST
4225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_prog in egrep; do
4231     for ac_exec_ext in '' $ac_executable_extensions; do
4232       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4233       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4234 # Check for GNU ac_path_EGREP and select it if it is found.
4235   # Check for GNU $ac_path_EGREP
4236 case `"$ac_path_EGREP" --version 2>&1` in
4237 *GNU*)
4238   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4239 *)
4240   ac_count=0
4241   $as_echo_n 0123456789 >"conftest.in"
4242   while :
4243   do
4244     cat "conftest.in" "conftest.in" >"conftest.tmp"
4245     mv "conftest.tmp" "conftest.in"
4246     cp "conftest.in" "conftest.nl"
4247     $as_echo 'EGREP' >> "conftest.nl"
4248     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250     as_fn_arith $ac_count + 1 && ac_count=$as_val
4251     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4252       # Best one so far, save it but keep looking for a better one
4253       ac_cv_path_EGREP="$ac_path_EGREP"
4254       ac_path_EGREP_max=$ac_count
4255     fi
4256     # 10*(2^10) chars as input seems more than enough
4257     test $ac_count -gt 10 && break
4258   done
4259   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 esac
4261
4262       $ac_path_EGREP_found && break 3
4263     done
4264   done
4265   done
4266 IFS=$as_save_IFS
4267   if test -z "$ac_cv_path_EGREP"; then
4268     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269   fi
4270 else
4271   ac_cv_path_EGREP=$EGREP
4272 fi
4273
4274    fi
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4277 $as_echo "$ac_cv_path_EGREP" >&6; }
4278  EGREP="$ac_cv_path_EGREP"
4279
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4282 $as_echo_n "checking for ANSI C header files... " >&6; }
4283 if ${ac_cv_header_stdc+:} false; then :
4284   $as_echo_n "(cached) " >&6
4285 else
4286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h.  */
4288 #include <stdlib.h>
4289 #include <stdarg.h>
4290 #include <string.h>
4291 #include <float.h>
4292
4293 int
4294 main ()
4295 {
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302   ac_cv_header_stdc=yes
4303 else
4304   ac_cv_header_stdc=no
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307
4308 if test $ac_cv_header_stdc = yes; then
4309   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h.  */
4312 #include <string.h>
4313
4314 _ACEOF
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316   $EGREP "memchr" >/dev/null 2>&1; then :
4317
4318 else
4319   ac_cv_header_stdc=no
4320 fi
4321 rm -f conftest*
4322
4323 fi
4324
4325 if test $ac_cv_header_stdc = yes; then
4326   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329 #include <stdlib.h>
4330
4331 _ACEOF
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333   $EGREP "free" >/dev/null 2>&1; then :
4334
4335 else
4336   ac_cv_header_stdc=no
4337 fi
4338 rm -f conftest*
4339
4340 fi
4341
4342 if test $ac_cv_header_stdc = yes; then
4343   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4344   if test "$cross_compiling" = yes; then :
4345   :
4346 else
4347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h.  */
4349 #include <ctype.h>
4350 #include <stdlib.h>
4351 #if ((' ' & 0x0FF) == 0x020)
4352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4354 #else
4355 # define ISLOWER(c) \
4356                    (('a' <= (c) && (c) <= 'i') \
4357                      || ('j' <= (c) && (c) <= 'r') \
4358                      || ('s' <= (c) && (c) <= 'z'))
4359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4360 #endif
4361
4362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4363 int
4364 main ()
4365 {
4366   int i;
4367   for (i = 0; i < 256; i++)
4368     if (XOR (islower (i), ISLOWER (i))
4369         || toupper (i) != TOUPPER (i))
4370       return 2;
4371   return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_run "$LINENO"; then :
4375
4376 else
4377   ac_cv_header_stdc=no
4378 fi
4379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4380   conftest.$ac_objext conftest.beam conftest.$ac_ext
4381 fi
4382
4383 fi
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4386 $as_echo "$ac_cv_header_stdc" >&6; }
4387 if test $ac_cv_header_stdc = yes; then
4388
4389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4390
4391 fi
4392
4393 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4394 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4395                   inttypes.h stdint.h unistd.h
4396 do :
4397   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4399 "
4400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4401   cat >>confdefs.h <<_ACEOF
4402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4403 _ACEOF
4404
4405 fi
4406
4407 done
4408
4409
4410 for ac_header in fcntl.h stdlib.h string.h sys/ioctl.h unistd.h
4411 do :
4412   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4415   cat >>confdefs.h <<_ACEOF
4416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4417 _ACEOF
4418
4419 fi
4420
4421 done
4422
4423
4424 # Checks for library functions.
4425 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4426 if test "x$ac_cv_type_pid_t" = xyes; then :
4427
4428 else
4429
4430 cat >>confdefs.h <<_ACEOF
4431 #define pid_t int
4432 _ACEOF
4433
4434 fi
4435
4436 for ac_header in vfork.h
4437 do :
4438   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4439 if test "x$ac_cv_header_vfork_h" = xyes; then :
4440   cat >>confdefs.h <<_ACEOF
4441 #define HAVE_VFORK_H 1
4442 _ACEOF
4443
4444 fi
4445
4446 done
4447
4448 for ac_func in fork vfork
4449 do :
4450   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4453   cat >>confdefs.h <<_ACEOF
4454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4455 _ACEOF
4456
4457 fi
4458 done
4459
4460 if test "x$ac_cv_func_fork" = xyes; then
4461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4462 $as_echo_n "checking for working fork... " >&6; }
4463 if ${ac_cv_func_fork_works+:} false; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466   if test "$cross_compiling" = yes; then :
4467   ac_cv_func_fork_works=cross
4468 else
4469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h.  */
4471 $ac_includes_default
4472 int
4473 main ()
4474 {
4475
4476           /* By Ruediger Kuhlmann. */
4477           return fork () < 0;
4478
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 if ac_fn_c_try_run "$LINENO"; then :
4484   ac_cv_func_fork_works=yes
4485 else
4486   ac_cv_func_fork_works=no
4487 fi
4488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4489   conftest.$ac_objext conftest.beam conftest.$ac_ext
4490 fi
4491
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4494 $as_echo "$ac_cv_func_fork_works" >&6; }
4495
4496 else
4497   ac_cv_func_fork_works=$ac_cv_func_fork
4498 fi
4499 if test "x$ac_cv_func_fork_works" = xcross; then
4500   case $host in
4501     *-*-amigaos* | *-*-msdosdjgpp*)
4502       # Override, as these systems have only a dummy fork() stub
4503       ac_cv_func_fork_works=no
4504       ;;
4505     *)
4506       ac_cv_func_fork_works=yes
4507       ;;
4508   esac
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4510 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4511 fi
4512 ac_cv_func_vfork_works=$ac_cv_func_vfork
4513 if test "x$ac_cv_func_vfork" = xyes; then
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4515 $as_echo_n "checking for working vfork... " >&6; }
4516 if ${ac_cv_func_vfork_works+:} false; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   if test "$cross_compiling" = yes; then :
4520   ac_cv_func_vfork_works=cross
4521 else
4522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524 /* Thanks to Paul Eggert for this test.  */
4525 $ac_includes_default
4526 #include <sys/wait.h>
4527 #ifdef HAVE_VFORK_H
4528 # include <vfork.h>
4529 #endif
4530 /* On some sparc systems, changes by the child to local and incoming
4531    argument registers are propagated back to the parent.  The compiler
4532    is told about this with #include <vfork.h>, but some compilers
4533    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
4534    static variable whose address is put into a register that is
4535    clobbered by the vfork.  */
4536 static void
4537 #ifdef __cplusplus
4538 sparc_address_test (int arg)
4539 # else
4540 sparc_address_test (arg) int arg;
4541 #endif
4542 {
4543   static pid_t child;
4544   if (!child) {
4545     child = vfork ();
4546     if (child < 0) {
4547       perror ("vfork");
4548       _exit(2);
4549     }
4550     if (!child) {
4551       arg = getpid();
4552       write(-1, "", 0);
4553       _exit (arg);
4554     }
4555   }
4556 }
4557
4558 int
4559 main ()
4560 {
4561   pid_t parent = getpid ();
4562   pid_t child;
4563
4564   sparc_address_test (0);
4565
4566   child = vfork ();
4567
4568   if (child == 0) {
4569     /* Here is another test for sparc vfork register problems.  This
4570        test uses lots of local variables, at least as many local
4571        variables as main has allocated so far including compiler
4572        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
4573        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
4574        reuse the register of parent for one of the local variables,
4575        since it will think that parent can't possibly be used any more
4576        in this routine.  Assigning to the local variable will thus
4577        munge parent in the parent process.  */
4578     pid_t
4579       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4580       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4581     /* Convince the compiler that p..p7 are live; otherwise, it might
4582        use the same hardware register for all 8 local variables.  */
4583     if (p != p1 || p != p2 || p != p3 || p != p4
4584         || p != p5 || p != p6 || p != p7)
4585       _exit(1);
4586
4587     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4588        from child file descriptors.  If the child closes a descriptor
4589        before it execs or exits, this munges the parent's descriptor
4590        as well.  Test for this by closing stdout in the child.  */
4591     _exit(close(fileno(stdout)) != 0);
4592   } else {
4593     int status;
4594     struct stat st;
4595
4596     while (wait(&status) != child)
4597       ;
4598     return (
4599          /* Was there some problem with vforking?  */
4600          child < 0
4601
4602          /* Did the child fail?  (This shouldn't happen.)  */
4603          || status
4604
4605          /* Did the vfork/compiler bug occur?  */
4606          || parent != getpid()
4607
4608          /* Did the file descriptor bug occur?  */
4609          || fstat(fileno(stdout), &st) != 0
4610          );
4611   }
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_run "$LINENO"; then :
4615   ac_cv_func_vfork_works=yes
4616 else
4617   ac_cv_func_vfork_works=no
4618 fi
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4620   conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 fi
4622
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4625 $as_echo "$ac_cv_func_vfork_works" >&6; }
4626
4627 fi;
4628 if test "x$ac_cv_func_fork_works" = xcross; then
4629   ac_cv_func_vfork_works=$ac_cv_func_vfork
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4631 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4632 fi
4633
4634 if test "x$ac_cv_func_vfork_works" = xyes; then
4635
4636 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4637
4638 else
4639
4640 $as_echo "#define vfork fork" >>confdefs.h
4641
4642 fi
4643 if test "x$ac_cv_func_fork_works" = xyes; then
4644
4645 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
4646
4647 fi
4648
4649 for ac_func in clock_gettime memset strdup
4650 do :
4651   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4654   cat >>confdefs.h <<_ACEOF
4655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4656 _ACEOF
4657
4658 fi
4659 done
4660
4661
4662 ac_config_files="$ac_config_files xorg.service xorg.target"
4663
4664 cat >confcache <<\_ACEOF
4665 # This file is a shell script that caches the results of configure
4666 # tests run on this system so they can be shared between configure
4667 # scripts and configure runs, see configure's option --config-cache.
4668 # It is not useful on other systems.  If it contains results you don't
4669 # want to keep, you may remove or edit it.
4670 #
4671 # config.status only pays attention to the cache file if you give it
4672 # the --recheck option to rerun configure.
4673 #
4674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4676 # following values.
4677
4678 _ACEOF
4679
4680 # The following way of writing the cache mishandles newlines in values,
4681 # but we know of no workaround that is simple, portable, and efficient.
4682 # So, we kill variables containing newlines.
4683 # Ultrix sh set writes to stderr and can't be redirected directly,
4684 # and sets the high bit in the cache file unless we assign to the vars.
4685 (
4686   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4687     eval ac_val=\$$ac_var
4688     case $ac_val in #(
4689     *${as_nl}*)
4690       case $ac_var in #(
4691       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4693       esac
4694       case $ac_var in #(
4695       _ | IFS | as_nl) ;; #(
4696       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4697       *) { eval $ac_var=; unset $ac_var;} ;;
4698       esac ;;
4699     esac
4700   done
4701
4702   (set) 2>&1 |
4703     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4704     *${as_nl}ac_space=\ *)
4705       # `set' does not quote correctly, so add quotes: double-quote
4706       # substitution turns \\\\ into \\, and sed turns \\ into \.
4707       sed -n \
4708         "s/'/'\\\\''/g;
4709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4710       ;; #(
4711     *)
4712       # `set' quotes correctly as required by POSIX, so do not add quotes.
4713       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4714       ;;
4715     esac |
4716     sort
4717 ) |
4718   sed '
4719      /^ac_cv_env_/b end
4720      t clear
4721      :clear
4722      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4723      t end
4724      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4725      :end' >>confcache
4726 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4727   if test -w "$cache_file"; then
4728     if test "x$cache_file" != "x/dev/null"; then
4729       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4730 $as_echo "$as_me: updating cache $cache_file" >&6;}
4731       if test ! -f "$cache_file" || test -h "$cache_file"; then
4732         cat confcache >"$cache_file"
4733       else
4734         case $cache_file in #(
4735         */* | ?:*)
4736           mv -f confcache "$cache_file"$$ &&
4737           mv -f "$cache_file"$$ "$cache_file" ;; #(
4738         *)
4739           mv -f confcache "$cache_file" ;;
4740         esac
4741       fi
4742     fi
4743   else
4744     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4745 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4746   fi
4747 fi
4748 rm -f confcache
4749
4750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4751 # Let make expand exec_prefix.
4752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4753
4754 DEFS=-DHAVE_CONFIG_H
4755
4756 ac_libobjs=
4757 ac_ltlibobjs=
4758 U=
4759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4760   # 1. Remove the extension, and $U if already installed.
4761   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4762   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4763   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4764   #    will be set to the directory where LIBOBJS objects are built.
4765   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4766   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4767 done
4768 LIBOBJS=$ac_libobjs
4769
4770 LTLIBOBJS=$ac_ltlibobjs
4771
4772
4773  if test -n "$EXEEXT"; then
4774   am__EXEEXT_TRUE=
4775   am__EXEEXT_FALSE='#'
4776 else
4777   am__EXEEXT_TRUE='#'
4778   am__EXEEXT_FALSE=
4779 fi
4780
4781 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4782   as_fn_error $? "conditional \"AMDEP\" was never defined.
4783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4784 fi
4785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4786   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4788 fi
4789 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
4790   as_fn_error $? "conditional \"SYSTEMD\" was never defined.
4791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4792 fi
4793
4794 : "${CONFIG_STATUS=./config.status}"
4795 ac_write_fail=0
4796 ac_clean_files_save=$ac_clean_files
4797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4799 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4800 as_write_fail=0
4801 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4802 #! $SHELL
4803 # Generated by $as_me.
4804 # Run this file to recreate the current configuration.
4805 # Compiler output produced by configure, useful for debugging
4806 # configure, is in config.log if it exists.
4807
4808 debug=false
4809 ac_cs_recheck=false
4810 ac_cs_silent=false
4811
4812 SHELL=\${CONFIG_SHELL-$SHELL}
4813 export SHELL
4814 _ASEOF
4815 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4816 ## -------------------- ##
4817 ## M4sh Initialization. ##
4818 ## -------------------- ##
4819
4820 # Be more Bourne compatible
4821 DUALCASE=1; export DUALCASE # for MKS sh
4822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4823   emulate sh
4824   NULLCMD=:
4825   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4826   # is contrary to our usage.  Disable this feature.
4827   alias -g '${1+"$@"}'='"$@"'
4828   setopt NO_GLOB_SUBST
4829 else
4830   case `(set -o) 2>/dev/null` in #(
4831   *posix*) :
4832     set -o posix ;; #(
4833   *) :
4834      ;;
4835 esac
4836 fi
4837
4838
4839 as_nl='
4840 '
4841 export as_nl
4842 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4843 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4844 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4846 # Prefer a ksh shell builtin over an external printf program on Solaris,
4847 # but without wasting forks for bash or zsh.
4848 if test -z "$BASH_VERSION$ZSH_VERSION" \
4849     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4850   as_echo='print -r --'
4851   as_echo_n='print -rn --'
4852 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4853   as_echo='printf %s\n'
4854   as_echo_n='printf %s'
4855 else
4856   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4857     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4858     as_echo_n='/usr/ucb/echo -n'
4859   else
4860     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4861     as_echo_n_body='eval
4862       arg=$1;
4863       case $arg in #(
4864       *"$as_nl"*)
4865         expr "X$arg" : "X\\(.*\\)$as_nl";
4866         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4867       esac;
4868       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4869     '
4870     export as_echo_n_body
4871     as_echo_n='sh -c $as_echo_n_body as_echo'
4872   fi
4873   export as_echo_body
4874   as_echo='sh -c $as_echo_body as_echo'
4875 fi
4876
4877 # The user is always right.
4878 if test "${PATH_SEPARATOR+set}" != set; then
4879   PATH_SEPARATOR=:
4880   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4881     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4882       PATH_SEPARATOR=';'
4883   }
4884 fi
4885
4886
4887 # IFS
4888 # We need space, tab and new line, in precisely that order.  Quoting is
4889 # there to prevent editors from complaining about space-tab.
4890 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4891 # splitting by setting IFS to empty value.)
4892 IFS=" ""        $as_nl"
4893
4894 # Find who we are.  Look in the path if we contain no directory separator.
4895 as_myself=
4896 case $0 in #((
4897   *[\\/]* ) as_myself=$0 ;;
4898   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4904   done
4905 IFS=$as_save_IFS
4906
4907      ;;
4908 esac
4909 # We did not find ourselves, most probably we were run as `sh COMMAND'
4910 # in which case we are not to be found in the path.
4911 if test "x$as_myself" = x; then
4912   as_myself=$0
4913 fi
4914 if test ! -f "$as_myself"; then
4915   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4916   exit 1
4917 fi
4918
4919 # Unset variables that we do not need and which cause bugs (e.g. in
4920 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4921 # suppresses any "Segmentation fault" message there.  '((' could
4922 # trigger a bug in pdksh 5.2.14.
4923 for as_var in BASH_ENV ENV MAIL MAILPATH
4924 do eval test x\${$as_var+set} = xset \
4925   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4926 done
4927 PS1='$ '
4928 PS2='> '
4929 PS4='+ '
4930
4931 # NLS nuisances.
4932 LC_ALL=C
4933 export LC_ALL
4934 LANGUAGE=C
4935 export LANGUAGE
4936
4937 # CDPATH.
4938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4939
4940
4941 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4942 # ----------------------------------------
4943 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4944 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4945 # script with STATUS, using 1 if that was 0.
4946 as_fn_error ()
4947 {
4948   as_status=$1; test $as_status -eq 0 && as_status=1
4949   if test "$4"; then
4950     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4951     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4952   fi
4953   $as_echo "$as_me: error: $2" >&2
4954   as_fn_exit $as_status
4955 } # as_fn_error
4956
4957
4958 # as_fn_set_status STATUS
4959 # -----------------------
4960 # Set $? to STATUS, without forking.
4961 as_fn_set_status ()
4962 {
4963   return $1
4964 } # as_fn_set_status
4965
4966 # as_fn_exit STATUS
4967 # -----------------
4968 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4969 as_fn_exit ()
4970 {
4971   set +e
4972   as_fn_set_status $1
4973   exit $1
4974 } # as_fn_exit
4975
4976 # as_fn_unset VAR
4977 # ---------------
4978 # Portably unset VAR.
4979 as_fn_unset ()
4980 {
4981   { eval $1=; unset $1;}
4982 }
4983 as_unset=as_fn_unset
4984 # as_fn_append VAR VALUE
4985 # ----------------------
4986 # Append the text in VALUE to the end of the definition contained in VAR. Take
4987 # advantage of any shell optimizations that allow amortized linear growth over
4988 # repeated appends, instead of the typical quadratic growth present in naive
4989 # implementations.
4990 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4991   eval 'as_fn_append ()
4992   {
4993     eval $1+=\$2
4994   }'
4995 else
4996   as_fn_append ()
4997   {
4998     eval $1=\$$1\$2
4999   }
5000 fi # as_fn_append
5001
5002 # as_fn_arith ARG...
5003 # ------------------
5004 # Perform arithmetic evaluation on the ARGs, and store the result in the
5005 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5006 # must be portable across $(()) and expr.
5007 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5008   eval 'as_fn_arith ()
5009   {
5010     as_val=$(( $* ))
5011   }'
5012 else
5013   as_fn_arith ()
5014   {
5015     as_val=`expr "$@" || test $? -eq 1`
5016   }
5017 fi # as_fn_arith
5018
5019
5020 if expr a : '\(a\)' >/dev/null 2>&1 &&
5021    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5022   as_expr=expr
5023 else
5024   as_expr=false
5025 fi
5026
5027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5028   as_basename=basename
5029 else
5030   as_basename=false
5031 fi
5032
5033 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5034   as_dirname=dirname
5035 else
5036   as_dirname=false
5037 fi
5038
5039 as_me=`$as_basename -- "$0" ||
5040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5041          X"$0" : 'X\(//\)$' \| \
5042          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5043 $as_echo X/"$0" |
5044     sed '/^.*\/\([^/][^/]*\)\/*$/{
5045             s//\1/
5046             q
5047           }
5048           /^X\/\(\/\/\)$/{
5049             s//\1/
5050             q
5051           }
5052           /^X\/\(\/\).*/{
5053             s//\1/
5054             q
5055           }
5056           s/.*/./; q'`
5057
5058 # Avoid depending upon Character Ranges.
5059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5062 as_cr_digits='0123456789'
5063 as_cr_alnum=$as_cr_Letters$as_cr_digits
5064
5065 ECHO_C= ECHO_N= ECHO_T=
5066 case `echo -n x` in #(((((
5067 -n*)
5068   case `echo 'xy\c'` in
5069   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5070   xy)  ECHO_C='\c';;
5071   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5072        ECHO_T=' ';;
5073   esac;;
5074 *)
5075   ECHO_N='-n';;
5076 esac
5077
5078 rm -f conf$$ conf$$.exe conf$$.file
5079 if test -d conf$$.dir; then
5080   rm -f conf$$.dir/conf$$.file
5081 else
5082   rm -f conf$$.dir
5083   mkdir conf$$.dir 2>/dev/null
5084 fi
5085 if (echo >conf$$.file) 2>/dev/null; then
5086   if ln -s conf$$.file conf$$ 2>/dev/null; then
5087     as_ln_s='ln -s'
5088     # ... but there are two gotchas:
5089     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5090     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5091     # In both cases, we have to default to `cp -p'.
5092     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5093       as_ln_s='cp -p'
5094   elif ln conf$$.file conf$$ 2>/dev/null; then
5095     as_ln_s=ln
5096   else
5097     as_ln_s='cp -p'
5098   fi
5099 else
5100   as_ln_s='cp -p'
5101 fi
5102 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5103 rmdir conf$$.dir 2>/dev/null
5104
5105
5106 # as_fn_mkdir_p
5107 # -------------
5108 # Create "$as_dir" as a directory, including parents if necessary.
5109 as_fn_mkdir_p ()
5110 {
5111
5112   case $as_dir in #(
5113   -*) as_dir=./$as_dir;;
5114   esac
5115   test -d "$as_dir" || eval $as_mkdir_p || {
5116     as_dirs=
5117     while :; do
5118       case $as_dir in #(
5119       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5120       *) as_qdir=$as_dir;;
5121       esac
5122       as_dirs="'$as_qdir' $as_dirs"
5123       as_dir=`$as_dirname -- "$as_dir" ||
5124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5125          X"$as_dir" : 'X\(//\)[^/]' \| \
5126          X"$as_dir" : 'X\(//\)$' \| \
5127          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5128 $as_echo X"$as_dir" |
5129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5130             s//\1/
5131             q
5132           }
5133           /^X\(\/\/\)[^/].*/{
5134             s//\1/
5135             q
5136           }
5137           /^X\(\/\/\)$/{
5138             s//\1/
5139             q
5140           }
5141           /^X\(\/\).*/{
5142             s//\1/
5143             q
5144           }
5145           s/.*/./; q'`
5146       test -d "$as_dir" && break
5147     done
5148     test -z "$as_dirs" || eval "mkdir $as_dirs"
5149   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5150
5151
5152 } # as_fn_mkdir_p
5153 if mkdir -p . 2>/dev/null; then
5154   as_mkdir_p='mkdir -p "$as_dir"'
5155 else
5156   test -d ./-p && rmdir ./-p
5157   as_mkdir_p=false
5158 fi
5159
5160 if test -x / >/dev/null 2>&1; then
5161   as_test_x='test -x'
5162 else
5163   if ls -dL / >/dev/null 2>&1; then
5164     as_ls_L_option=L
5165   else
5166     as_ls_L_option=
5167   fi
5168   as_test_x='
5169     eval sh -c '\''
5170       if test -d "$1"; then
5171         test -d "$1/.";
5172       else
5173         case $1 in #(
5174         -*)set "./$1";;
5175         esac;
5176         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5177         ???[sx]*):;;*)false;;esac;fi
5178     '\'' sh
5179   '
5180 fi
5181 as_executable_p=$as_test_x
5182
5183 # Sed expression to map a string onto a valid CPP name.
5184 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5185
5186 # Sed expression to map a string onto a valid variable name.
5187 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5188
5189
5190 exec 6>&1
5191 ## ----------------------------------- ##
5192 ## Main body of $CONFIG_STATUS script. ##
5193 ## ----------------------------------- ##
5194 _ASEOF
5195 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5196
5197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5198 # Save the log message, to keep $0 and so on meaningful, and to
5199 # report actual input values of CONFIG_FILES etc. instead of their
5200 # values after options handling.
5201 ac_log="
5202 This file was extended by xorg-launch-helper $as_me 3, which was
5203 generated by GNU Autoconf 2.68.  Invocation command line was
5204
5205   CONFIG_FILES    = $CONFIG_FILES
5206   CONFIG_HEADERS  = $CONFIG_HEADERS
5207   CONFIG_LINKS    = $CONFIG_LINKS
5208   CONFIG_COMMANDS = $CONFIG_COMMANDS
5209   $ $0 $@
5210
5211 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5212 "
5213
5214 _ACEOF
5215
5216 case $ac_config_files in *"
5217 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5218 esac
5219
5220 case $ac_config_headers in *"
5221 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5222 esac
5223
5224
5225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5226 # Files that config.status was made for.
5227 config_files="$ac_config_files"
5228 config_headers="$ac_config_headers"
5229 config_commands="$ac_config_commands"
5230
5231 _ACEOF
5232
5233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5234 ac_cs_usage="\
5235 \`$as_me' instantiates files and other configuration actions
5236 from templates according to the current configuration.  Unless the files
5237 and actions are specified as TAGs, all are instantiated by default.
5238
5239 Usage: $0 [OPTION]... [TAG]...
5240
5241   -h, --help       print this help, then exit
5242   -V, --version    print version number and configuration settings, then exit
5243       --config     print configuration, then exit
5244   -q, --quiet, --silent
5245                    do not print progress messages
5246   -d, --debug      don't remove temporary files
5247       --recheck    update $as_me by reconfiguring in the same conditions
5248       --file=FILE[:TEMPLATE]
5249                    instantiate the configuration file FILE
5250       --header=FILE[:TEMPLATE]
5251                    instantiate the configuration header FILE
5252
5253 Configuration files:
5254 $config_files
5255
5256 Configuration headers:
5257 $config_headers
5258
5259 Configuration commands:
5260 $config_commands
5261
5262 Report bugs to <auke-jan.h.kok@intel.com>."
5263
5264 _ACEOF
5265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5266 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5267 ac_cs_version="\\
5268 xorg-launch-helper config.status 3
5269 configured by $0, generated by GNU Autoconf 2.68,
5270   with options \\"\$ac_cs_config\\"
5271
5272 Copyright (C) 2010 Free Software Foundation, Inc.
5273 This config.status script is free software; the Free Software Foundation
5274 gives unlimited permission to copy, distribute and modify it."
5275
5276 ac_pwd='$ac_pwd'
5277 srcdir='$srcdir'
5278 INSTALL='$INSTALL'
5279 MKDIR_P='$MKDIR_P'
5280 AWK='$AWK'
5281 test -n "\$AWK" || AWK=awk
5282 _ACEOF
5283
5284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5285 # The default lists apply if the user does not specify any file.
5286 ac_need_defaults=:
5287 while test $# != 0
5288 do
5289   case $1 in
5290   --*=?*)
5291     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5292     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5293     ac_shift=:
5294     ;;
5295   --*=)
5296     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5297     ac_optarg=
5298     ac_shift=:
5299     ;;
5300   *)
5301     ac_option=$1
5302     ac_optarg=$2
5303     ac_shift=shift
5304     ;;
5305   esac
5306
5307   case $ac_option in
5308   # Handling of the options.
5309   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5310     ac_cs_recheck=: ;;
5311   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5312     $as_echo "$ac_cs_version"; exit ;;
5313   --config | --confi | --conf | --con | --co | --c )
5314     $as_echo "$ac_cs_config"; exit ;;
5315   --debug | --debu | --deb | --de | --d | -d )
5316     debug=: ;;
5317   --file | --fil | --fi | --f )
5318     $ac_shift
5319     case $ac_optarg in
5320     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5321     '') as_fn_error $? "missing file argument" ;;
5322     esac
5323     as_fn_append CONFIG_FILES " '$ac_optarg'"
5324     ac_need_defaults=false;;
5325   --header | --heade | --head | --hea )
5326     $ac_shift
5327     case $ac_optarg in
5328     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5329     esac
5330     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5331     ac_need_defaults=false;;
5332   --he | --h)
5333     # Conflict between --help and --header
5334     as_fn_error $? "ambiguous option: \`$1'
5335 Try \`$0 --help' for more information.";;
5336   --help | --hel | -h )
5337     $as_echo "$ac_cs_usage"; exit ;;
5338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5339   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5340     ac_cs_silent=: ;;
5341
5342   # This is an error.
5343   -*) as_fn_error $? "unrecognized option: \`$1'
5344 Try \`$0 --help' for more information." ;;
5345
5346   *) as_fn_append ac_config_targets " $1"
5347      ac_need_defaults=false ;;
5348
5349   esac
5350   shift
5351 done
5352
5353 ac_configure_extra_args=
5354
5355 if $ac_cs_silent; then
5356   exec 6>/dev/null
5357   ac_configure_extra_args="$ac_configure_extra_args --silent"
5358 fi
5359
5360 _ACEOF
5361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5362 if \$ac_cs_recheck; then
5363   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5364   shift
5365   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5366   CONFIG_SHELL='$SHELL'
5367   export CONFIG_SHELL
5368   exec "\$@"
5369 fi
5370
5371 _ACEOF
5372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5373 exec 5>>config.log
5374 {
5375   echo
5376   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5377 ## Running $as_me. ##
5378 _ASBOX
5379   $as_echo "$ac_log"
5380 } >&5
5381
5382 _ACEOF
5383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5384 #
5385 # INIT-COMMANDS
5386 #
5387 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5388
5389 _ACEOF
5390
5391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5392
5393 # Handling of arguments.
5394 for ac_config_target in $ac_config_targets
5395 do
5396   case $ac_config_target in
5397     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5398     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5399     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5400     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5401     "xorg.service") CONFIG_FILES="$CONFIG_FILES xorg.service" ;;
5402     "xorg.target") CONFIG_FILES="$CONFIG_FILES xorg.target" ;;
5403
5404   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5405   esac
5406 done
5407
5408
5409 # If the user did not use the arguments to specify the items to instantiate,
5410 # then the envvar interface is used.  Set only those that are not.
5411 # We use the long form for the default assignment because of an extremely
5412 # bizarre bug on SunOS 4.1.3.
5413 if $ac_need_defaults; then
5414   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5415   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5416   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5417 fi
5418
5419 # Have a temporary directory for convenience.  Make it in the build tree
5420 # simply because there is no reason against having it here, and in addition,
5421 # creating and moving files from /tmp can sometimes cause problems.
5422 # Hook for its removal unless debugging.
5423 # Note that there is a small window in which the directory will not be cleaned:
5424 # after its creation but before its name has been assigned to `$tmp'.
5425 $debug ||
5426 {
5427   tmp= ac_tmp=
5428   trap 'exit_status=$?
5429   : "${ac_tmp:=$tmp}"
5430   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5431 ' 0
5432   trap 'as_fn_exit 1' 1 2 13 15
5433 }
5434 # Create a (secure) tmp directory for tmp files.
5435
5436 {
5437   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5438   test -d "$tmp"
5439 }  ||
5440 {
5441   tmp=./conf$$-$RANDOM
5442   (umask 077 && mkdir "$tmp")
5443 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5444 ac_tmp=$tmp
5445
5446 # Set up the scripts for CONFIG_FILES section.
5447 # No need to generate them if there are no CONFIG_FILES.
5448 # This happens for instance with `./config.status config.h'.
5449 if test -n "$CONFIG_FILES"; then
5450
5451
5452 ac_cr=`echo X | tr X '\015'`
5453 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5454 # But we know of no other shell where ac_cr would be empty at this
5455 # point, so we can use a bashism as a fallback.
5456 if test "x$ac_cr" = x; then
5457   eval ac_cr=\$\'\\r\'
5458 fi
5459 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5460 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5461   ac_cs_awk_cr='\\r'
5462 else
5463   ac_cs_awk_cr=$ac_cr
5464 fi
5465
5466 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5467 _ACEOF
5468
5469
5470 {
5471   echo "cat >conf$$subs.awk <<_ACEOF" &&
5472   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5473   echo "_ACEOF"
5474 } >conf$$subs.sh ||
5475   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5476 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5477 ac_delim='%!_!# '
5478 for ac_last_try in false false false false false :; do
5479   . ./conf$$subs.sh ||
5480     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5481
5482   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5483   if test $ac_delim_n = $ac_delim_num; then
5484     break
5485   elif $ac_last_try; then
5486     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5487   else
5488     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5489   fi
5490 done
5491 rm -f conf$$subs.sh
5492
5493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5494 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5495 _ACEOF
5496 sed -n '
5497 h
5498 s/^/S["/; s/!.*/"]=/
5499 p
5500 g
5501 s/^[^!]*!//
5502 :repl
5503 t repl
5504 s/'"$ac_delim"'$//
5505 t delim
5506 :nl
5507 h
5508 s/\(.\{148\}\)..*/\1/
5509 t more1
5510 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5511 p
5512 n
5513 b repl
5514 :more1
5515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5516 p
5517 g
5518 s/.\{148\}//
5519 t nl
5520 :delim
5521 h
5522 s/\(.\{148\}\)..*/\1/
5523 t more2
5524 s/["\\]/\\&/g; s/^/"/; s/$/"/
5525 p
5526 b
5527 :more2
5528 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5529 p
5530 g
5531 s/.\{148\}//
5532 t delim
5533 ' <conf$$subs.awk | sed '
5534 /^[^""]/{
5535   N
5536   s/\n//
5537 }
5538 ' >>$CONFIG_STATUS || ac_write_fail=1
5539 rm -f conf$$subs.awk
5540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5541 _ACAWK
5542 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5543   for (key in S) S_is_set[key] = 1
5544   FS = "\a"
5545
5546 }
5547 {
5548   line = $ 0
5549   nfields = split(line, field, "@")
5550   substed = 0
5551   len = length(field[1])
5552   for (i = 2; i < nfields; i++) {
5553     key = field[i]
5554     keylen = length(key)
5555     if (S_is_set[key]) {
5556       value = S[key]
5557       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5558       len += length(value) + length(field[++i])
5559       substed = 1
5560     } else
5561       len += 1 + keylen
5562   }
5563
5564   print line
5565 }
5566
5567 _ACAWK
5568 _ACEOF
5569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5570 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5571   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5572 else
5573   cat
5574 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5575   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5576 _ACEOF
5577
5578 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5579 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5580 # trailing colons and then remove the whole line if VPATH becomes empty
5581 # (actually we leave an empty line to preserve line numbers).
5582 if test "x$srcdir" = x.; then
5583   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5584 h
5585 s///
5586 s/^/:/
5587 s/[      ]*$/:/
5588 s/:\$(srcdir):/:/g
5589 s/:\${srcdir}:/:/g
5590 s/:@srcdir@:/:/g
5591 s/^:*//
5592 s/:*$//
5593 x
5594 s/\(=[   ]*\).*/\1/
5595 G
5596 s/\n//
5597 s/^[^=]*=[       ]*$//
5598 }'
5599 fi
5600
5601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5602 fi # test -n "$CONFIG_FILES"
5603
5604 # Set up the scripts for CONFIG_HEADERS section.
5605 # No need to generate them if there are no CONFIG_HEADERS.
5606 # This happens for instance with `./config.status Makefile'.
5607 if test -n "$CONFIG_HEADERS"; then
5608 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5609 BEGIN {
5610 _ACEOF
5611
5612 # Transform confdefs.h into an awk script `defines.awk', embedded as
5613 # here-document in config.status, that substitutes the proper values into
5614 # config.h.in to produce config.h.
5615
5616 # Create a delimiter string that does not exist in confdefs.h, to ease
5617 # handling of long lines.
5618 ac_delim='%!_!# '
5619 for ac_last_try in false false :; do
5620   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5621   if test -z "$ac_tt"; then
5622     break
5623   elif $ac_last_try; then
5624     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5625   else
5626     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5627   fi
5628 done
5629
5630 # For the awk script, D is an array of macro values keyed by name,
5631 # likewise P contains macro parameters if any.  Preserve backslash
5632 # newline sequences.
5633
5634 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5635 sed -n '
5636 s/.\{148\}/&'"$ac_delim"'/g
5637 t rset
5638 :rset
5639 s/^[     ]*#[    ]*define[       ][      ]*/ /
5640 t def
5641 d
5642 :def
5643 s/\\$//
5644 t bsnl
5645 s/["\\]/\\&/g
5646 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5647 D["\1"]=" \3"/p
5648 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
5649 d
5650 :bsnl
5651 s/["\\]/\\&/g
5652 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5653 D["\1"]=" \3\\\\\\n"\\/p
5654 t cont
5655 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5656 t cont
5657 d
5658 :cont
5659 n
5660 s/.\{148\}/&'"$ac_delim"'/g
5661 t clear
5662 :clear
5663 s/\\$//
5664 t bsnlc
5665 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5666 d
5667 :bsnlc
5668 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5669 b cont
5670 ' <confdefs.h | sed '
5671 s/'"$ac_delim"'/"\\\
5672 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5673
5674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5675   for (key in D) D_is_set[key] = 1
5676   FS = "\a"
5677 }
5678 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5679   line = \$ 0
5680   split(line, arg, " ")
5681   if (arg[1] == "#") {
5682     defundef = arg[2]
5683     mac1 = arg[3]
5684   } else {
5685     defundef = substr(arg[1], 2)
5686     mac1 = arg[2]
5687   }
5688   split(mac1, mac2, "(") #)
5689   macro = mac2[1]
5690   prefix = substr(line, 1, index(line, defundef) - 1)
5691   if (D_is_set[macro]) {
5692     # Preserve the white space surrounding the "#".
5693     print prefix "define", macro P[macro] D[macro]
5694     next
5695   } else {
5696     # Replace #undef with comments.  This is necessary, for example,
5697     # in the case of _POSIX_SOURCE, which is predefined and required
5698     # on some systems where configure will not decide to define it.
5699     if (defundef == "undef") {
5700       print "/*", prefix defundef, macro, "*/"
5701       next
5702     }
5703   }
5704 }
5705 { print }
5706 _ACAWK
5707 _ACEOF
5708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5709   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5710 fi # test -n "$CONFIG_HEADERS"
5711
5712
5713 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5714 shift
5715 for ac_tag
5716 do
5717   case $ac_tag in
5718   :[FHLC]) ac_mode=$ac_tag; continue;;
5719   esac
5720   case $ac_mode$ac_tag in
5721   :[FHL]*:*);;
5722   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5723   :[FH]-) ac_tag=-:-;;
5724   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5725   esac
5726   ac_save_IFS=$IFS
5727   IFS=:
5728   set x $ac_tag
5729   IFS=$ac_save_IFS
5730   shift
5731   ac_file=$1
5732   shift
5733
5734   case $ac_mode in
5735   :L) ac_source=$1;;
5736   :[FH])
5737     ac_file_inputs=
5738     for ac_f
5739     do
5740       case $ac_f in
5741       -) ac_f="$ac_tmp/stdin";;
5742       *) # Look for the file first in the build tree, then in the source tree
5743          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5744          # because $ac_f cannot contain `:'.
5745          test -f "$ac_f" ||
5746            case $ac_f in
5747            [\\/$]*) false;;
5748            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5749            esac ||
5750            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5751       esac
5752       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5753       as_fn_append ac_file_inputs " '$ac_f'"
5754     done
5755
5756     # Let's still pretend it is `configure' which instantiates (i.e., don't
5757     # use $as_me), people would be surprised to read:
5758     #    /* config.h.  Generated by config.status.  */
5759     configure_input='Generated from '`
5760           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5761         `' by configure.'
5762     if test x"$ac_file" != x-; then
5763       configure_input="$ac_file.  $configure_input"
5764       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5765 $as_echo "$as_me: creating $ac_file" >&6;}
5766     fi
5767     # Neutralize special characters interpreted by sed in replacement strings.
5768     case $configure_input in #(
5769     *\&* | *\|* | *\\* )
5770        ac_sed_conf_input=`$as_echo "$configure_input" |
5771        sed 's/[\\\\&|]/\\\\&/g'`;; #(
5772     *) ac_sed_conf_input=$configure_input;;
5773     esac
5774
5775     case $ac_tag in
5776     *:-:* | *:-) cat >"$ac_tmp/stdin" \
5777       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5778     esac
5779     ;;
5780   esac
5781
5782   ac_dir=`$as_dirname -- "$ac_file" ||
5783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5784          X"$ac_file" : 'X\(//\)[^/]' \| \
5785          X"$ac_file" : 'X\(//\)$' \| \
5786          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5787 $as_echo X"$ac_file" |
5788     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5789             s//\1/
5790             q
5791           }
5792           /^X\(\/\/\)[^/].*/{
5793             s//\1/
5794             q
5795           }
5796           /^X\(\/\/\)$/{
5797             s//\1/
5798             q
5799           }
5800           /^X\(\/\).*/{
5801             s//\1/
5802             q
5803           }
5804           s/.*/./; q'`
5805   as_dir="$ac_dir"; as_fn_mkdir_p
5806   ac_builddir=.
5807
5808 case "$ac_dir" in
5809 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5810 *)
5811   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5812   # A ".." for each directory in $ac_dir_suffix.
5813   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5814   case $ac_top_builddir_sub in
5815   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5816   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5817   esac ;;
5818 esac
5819 ac_abs_top_builddir=$ac_pwd
5820 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5821 # for backward compatibility:
5822 ac_top_builddir=$ac_top_build_prefix
5823
5824 case $srcdir in
5825   .)  # We are building in place.
5826     ac_srcdir=.
5827     ac_top_srcdir=$ac_top_builddir_sub
5828     ac_abs_top_srcdir=$ac_pwd ;;
5829   [\\/]* | ?:[\\/]* )  # Absolute name.
5830     ac_srcdir=$srcdir$ac_dir_suffix;
5831     ac_top_srcdir=$srcdir
5832     ac_abs_top_srcdir=$srcdir ;;
5833   *) # Relative name.
5834     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5835     ac_top_srcdir=$ac_top_build_prefix$srcdir
5836     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5837 esac
5838 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5839
5840
5841   case $ac_mode in
5842   :F)
5843   #
5844   # CONFIG_FILE
5845   #
5846
5847   case $INSTALL in
5848   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5849   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5850   esac
5851   ac_MKDIR_P=$MKDIR_P
5852   case $MKDIR_P in
5853   [\\/$]* | ?:[\\/]* ) ;;
5854   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5855   esac
5856 _ACEOF
5857
5858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5859 # If the template does not know about datarootdir, expand it.
5860 # FIXME: This hack should be removed a few years after 2.60.
5861 ac_datarootdir_hack=; ac_datarootdir_seen=
5862 ac_sed_dataroot='
5863 /datarootdir/ {
5864   p
5865   q
5866 }
5867 /@datadir@/p
5868 /@docdir@/p
5869 /@infodir@/p
5870 /@localedir@/p
5871 /@mandir@/p'
5872 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5873 *datarootdir*) ac_datarootdir_seen=yes;;
5874 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5876 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5877 _ACEOF
5878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5879   ac_datarootdir_hack='
5880   s&@datadir@&$datadir&g
5881   s&@docdir@&$docdir&g
5882   s&@infodir@&$infodir&g
5883   s&@localedir@&$localedir&g
5884   s&@mandir@&$mandir&g
5885   s&\\\${datarootdir}&$datarootdir&g' ;;
5886 esac
5887 _ACEOF
5888
5889 # Neutralize VPATH when `$srcdir' = `.'.
5890 # Shell code in configure.ac might set extrasub.
5891 # FIXME: do we really want to maintain this feature?
5892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5893 ac_sed_extra="$ac_vpsub
5894 $extrasub
5895 _ACEOF
5896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5897 :t
5898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5899 s|@configure_input@|$ac_sed_conf_input|;t t
5900 s&@top_builddir@&$ac_top_builddir_sub&;t t
5901 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5902 s&@srcdir@&$ac_srcdir&;t t
5903 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5904 s&@top_srcdir@&$ac_top_srcdir&;t t
5905 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5906 s&@builddir@&$ac_builddir&;t t
5907 s&@abs_builddir@&$ac_abs_builddir&;t t
5908 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5909 s&@INSTALL@&$ac_INSTALL&;t t
5910 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5911 $ac_datarootdir_hack
5912 "
5913 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5914   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5915
5916 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5917   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5918   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
5919       "$ac_tmp/out"`; test -z "$ac_out"; } &&
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5921 which seems to be undefined.  Please make sure it is defined" >&5
5922 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5923 which seems to be undefined.  Please make sure it is defined" >&2;}
5924
5925   rm -f "$ac_tmp/stdin"
5926   case $ac_file in
5927   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5928   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5929   esac \
5930   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5931  ;;
5932   :H)
5933   #
5934   # CONFIG_HEADER
5935   #
5936   if test x"$ac_file" != x-; then
5937     {
5938       $as_echo "/* $configure_input  */" \
5939       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5940     } >"$ac_tmp/config.h" \
5941       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5942     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5943       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5944 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5945     else
5946       rm -f "$ac_file"
5947       mv "$ac_tmp/config.h" "$ac_file" \
5948         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5949     fi
5950   else
5951     $as_echo "/* $configure_input  */" \
5952       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5953       || as_fn_error $? "could not create -" "$LINENO" 5
5954   fi
5955 # Compute "$ac_file"'s index in $config_headers.
5956 _am_arg="$ac_file"
5957 _am_stamp_count=1
5958 for _am_header in $config_headers :; do
5959   case $_am_header in
5960     $_am_arg | $_am_arg:* )
5961       break ;;
5962     * )
5963       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5964   esac
5965 done
5966 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5967 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5968          X"$_am_arg" : 'X\(//\)[^/]' \| \
5969          X"$_am_arg" : 'X\(//\)$' \| \
5970          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5971 $as_echo X"$_am_arg" |
5972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5973             s//\1/
5974             q
5975           }
5976           /^X\(\/\/\)[^/].*/{
5977             s//\1/
5978             q
5979           }
5980           /^X\(\/\/\)$/{
5981             s//\1/
5982             q
5983           }
5984           /^X\(\/\).*/{
5985             s//\1/
5986             q
5987           }
5988           s/.*/./; q'`/stamp-h$_am_stamp_count
5989  ;;
5990
5991   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5992 $as_echo "$as_me: executing $ac_file commands" >&6;}
5993  ;;
5994   esac
5995
5996
5997   case $ac_file$ac_mode in
5998     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5999   # Autoconf 2.62 quotes --file arguments for eval, but not when files
6000   # are listed without --file.  Let's play safe and only enable the eval
6001   # if we detect the quoting.
6002   case $CONFIG_FILES in
6003   *\'*) eval set x "$CONFIG_FILES" ;;
6004   *)   set x $CONFIG_FILES ;;
6005   esac
6006   shift
6007   for mf
6008   do
6009     # Strip MF so we end up with the name of the file.
6010     mf=`echo "$mf" | sed -e 's/:.*$//'`
6011     # Check whether this is an Automake generated Makefile or not.
6012     # We used to match only the files named `Makefile.in', but
6013     # some people rename them; so instead we look at the file content.
6014     # Grep'ing the first line is not enough: some people post-process
6015     # each Makefile.in and add a new line on top of each file to say so.
6016     # Grep'ing the whole file is not good either: AIX grep has a line
6017     # limit of 2048, but all sed's we know have understand at least 4000.
6018     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6019       dirpart=`$as_dirname -- "$mf" ||
6020 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6021          X"$mf" : 'X\(//\)[^/]' \| \
6022          X"$mf" : 'X\(//\)$' \| \
6023          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6024 $as_echo X"$mf" |
6025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6026             s//\1/
6027             q
6028           }
6029           /^X\(\/\/\)[^/].*/{
6030             s//\1/
6031             q
6032           }
6033           /^X\(\/\/\)$/{
6034             s//\1/
6035             q
6036           }
6037           /^X\(\/\).*/{
6038             s//\1/
6039             q
6040           }
6041           s/.*/./; q'`
6042     else
6043       continue
6044     fi
6045     # Extract the definition of DEPDIR, am__include, and am__quote
6046     # from the Makefile without running `make'.
6047     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6048     test -z "$DEPDIR" && continue
6049     am__include=`sed -n 's/^am__include = //p' < "$mf"`
6050     test -z "am__include" && continue
6051     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6052     # When using ansi2knr, U may be empty or an underscore; expand it
6053     U=`sed -n 's/^U = //p' < "$mf"`
6054     # Find all dependency output files, they are included files with
6055     # $(DEPDIR) in their names.  We invoke sed twice because it is the
6056     # simplest approach to changing $(DEPDIR) to its actual value in the
6057     # expansion.
6058     for file in `sed -n "
6059       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6060          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6061       # Make sure the directory exists.
6062       test -f "$dirpart/$file" && continue
6063       fdir=`$as_dirname -- "$file" ||
6064 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6065          X"$file" : 'X\(//\)[^/]' \| \
6066          X"$file" : 'X\(//\)$' \| \
6067          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6068 $as_echo X"$file" |
6069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6070             s//\1/
6071             q
6072           }
6073           /^X\(\/\/\)[^/].*/{
6074             s//\1/
6075             q
6076           }
6077           /^X\(\/\/\)$/{
6078             s//\1/
6079             q
6080           }
6081           /^X\(\/\).*/{
6082             s//\1/
6083             q
6084           }
6085           s/.*/./; q'`
6086       as_dir=$dirpart/$fdir; as_fn_mkdir_p
6087       # echo "creating $dirpart/$file"
6088       echo '# dummy' > "$dirpart/$file"
6089     done
6090   done
6091 }
6092  ;;
6093
6094   esac
6095 done # for ac_tag
6096
6097
6098 as_fn_exit 0
6099 _ACEOF
6100 ac_clean_files=$ac_clean_files_save
6101
6102 test $ac_write_fail = 0 ||
6103   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6104
6105
6106 # configure is writing to config.log, and then calls config.status.
6107 # config.status does its own redirection, appending to config.log.
6108 # Unfortunately, on DOS this fails, as config.log is still kept open
6109 # by configure, so config.status won't be able to write to it; its
6110 # output is simply discarded.  So we exec the FD to /dev/null,
6111 # effectively closing config.log, so it can be properly (re)opened and
6112 # appended to by config.status.  When coming back to configure, we
6113 # need to make the FD available again.
6114 if test "$no_create" != yes; then
6115   ac_cs_success=:
6116   ac_config_status_args=
6117   test "$silent" = yes &&
6118     ac_config_status_args="$ac_config_status_args --quiet"
6119   exec 5>/dev/null
6120   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6121   exec 5>>config.log
6122   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6123   # would make configure fail if this is the last instruction.
6124   $ac_cs_success || as_fn_exit 1
6125 fi
6126 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6128 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6129 fi
6130
6131