poking around in the ctdlsh source because citadel proper is in deep freeze :)
[citadel.git] / ctdlsh / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for ctdlsh 1.0.
4 #
5 # Report bugs to <bug-automake@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         BASH_ENV=/dev/null
219         ENV=/dev/null
220         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221         export CONFIG_SHELL
222         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223 fi
224
225     if test x$as_have_required = xno; then :
226   $as_echo "$0: This script requires a shell more modern than all"
227   $as_echo "$0: the shells that I found on your system."
228   if test x${ZSH_VERSION+set} = xset ; then
229     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231   else
232     $as_echo "$0: Please tell bug-autoconf@gnu.org and
233 $0: bug-automake@gnu.org about your system, including any
234 $0: error possibly output before this message. Then install
235 $0: a modern shell, or manually run the script under such a
236 $0: shell if you do have one."
237   fi
238   exit 1
239 fi
240 fi
241 fi
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
247
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
255 {
256   { eval $1=; unset $1;}
257 }
258 as_unset=as_fn_unset
259
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_fn_set_status ()
264 {
265   return $1
266 } # as_fn_set_status
267
268 # as_fn_exit STATUS
269 # -----------------
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271 as_fn_exit ()
272 {
273   set +e
274   as_fn_set_status $1
275   exit $1
276 } # as_fn_exit
277
278 # as_fn_mkdir_p
279 # -------------
280 # Create "$as_dir" as a directory, including parents if necessary.
281 as_fn_mkdir_p ()
282 {
283
284   case $as_dir in #(
285   -*) as_dir=./$as_dir;;
286   esac
287   test -d "$as_dir" || eval $as_mkdir_p || {
288     as_dirs=
289     while :; do
290       case $as_dir in #(
291       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292       *) as_qdir=$as_dir;;
293       esac
294       as_dirs="'$as_qdir' $as_dirs"
295       as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297          X"$as_dir" : 'X\(//\)[^/]' \| \
298          X"$as_dir" : 'X\(//\)$' \| \
299          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)[^/].*/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)$/{
310             s//\1/
311             q
312           }
313           /^X\(\/\).*/{
314             s//\1/
315             q
316           }
317           s/.*/./; q'`
318       test -d "$as_dir" && break
319     done
320     test -z "$as_dirs" || eval "mkdir $as_dirs"
321   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322
323
324 } # as_fn_mkdir_p
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
330 # implementations.
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332   eval 'as_fn_append ()
333   {
334     eval $1+=\$2
335   }'
336 else
337   as_fn_append ()
338   {
339     eval $1=\$$1\$2
340   }
341 fi # as_fn_append
342
343 # as_fn_arith ARG...
344 # ------------------
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349   eval 'as_fn_arith ()
350   {
351     as_val=$(( $* ))
352   }'
353 else
354   as_fn_arith ()
355   {
356     as_val=`expr "$@" || test $? -eq 1`
357   }
358 fi # as_fn_arith
359
360
361 # as_fn_error STATUS ERROR [LINENO LOG_FD]
362 # ----------------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with STATUS, using 1 if that was 0.
366 as_fn_error ()
367 {
368   as_status=$1; test $as_status -eq 0 && as_status=1
369   if test "$4"; then
370     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
372   fi
373   $as_echo "$as_me: error: $2" >&2
374   as_fn_exit $as_status
375 } # as_fn_error
376
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
379   as_expr=expr
380 else
381   as_expr=false
382 fi
383
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385   as_basename=basename
386 else
387   as_basename=false
388 fi
389
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391   as_dirname=dirname
392 else
393   as_dirname=false
394 fi
395
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398          X"$0" : 'X\(//\)$' \| \
399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
401     sed '/^.*\/\([^/][^/]*\)\/*$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\/\)$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\).*/{
410             s//\1/
411             q
412           }
413           s/.*/./; q'`
414
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
423   as_lineno_1=$LINENO as_lineno_1a=$LINENO
424   as_lineno_2=$LINENO as_lineno_2a=$LINENO
425   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
428   sed -n '
429     p
430     /[$]LINENO/=
431   ' <$as_myself |
432     sed '
433       s/[$]LINENO.*/&-/
434       t lineno
435       b
436       :lineno
437       N
438       :loop
439       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440       t loop
441       s/-\n.*//
442     ' >$as_me.lineno &&
443   chmod +x "$as_me.lineno" ||
444     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
446   # Don't try to exec as it changes $[0], causing all sort of problems
447   # (the dirname of $[0] is not the place where we might find the
448   # original and so on.  Autoconf is especially sensitive to this).
449   . "./$as_me.lineno"
450   # Exit status is that of the last command.
451   exit
452 }
453
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
456 -n*)
457   case `echo 'xy\c'` in
458   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
459   xy)  ECHO_C='\c';;
460   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
461        ECHO_T=' ';;
462   esac;;
463 *)
464   ECHO_N='-n';;
465 esac
466
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469   rm -f conf$$.dir/conf$$.file
470 else
471   rm -f conf$$.dir
472   mkdir conf$$.dir 2>/dev/null
473 fi
474 if (echo >conf$$.file) 2>/dev/null; then
475   if ln -s conf$$.file conf$$ 2>/dev/null; then
476     as_ln_s='ln -s'
477     # ... but there are two gotchas:
478     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480     # In both cases, we have to default to `cp -p'.
481     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482       as_ln_s='cp -p'
483   elif ln conf$$.file conf$$ 2>/dev/null; then
484     as_ln_s=ln
485   else
486     as_ln_s='cp -p'
487   fi
488 else
489   as_ln_s='cp -p'
490 fi
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
493
494 if mkdir -p . 2>/dev/null; then
495   as_mkdir_p='mkdir -p "$as_dir"'
496 else
497   test -d ./-p && rmdir ./-p
498   as_mkdir_p=false
499 fi
500
501 if test -x / >/dev/null 2>&1; then
502   as_test_x='test -x'
503 else
504   if ls -dL / >/dev/null 2>&1; then
505     as_ls_L_option=L
506   else
507     as_ls_L_option=
508   fi
509   as_test_x='
510     eval sh -c '\''
511       if test -d "$1"; then
512         test -d "$1/.";
513       else
514         case $1 in #(
515         -*)set "./$1";;
516         esac;
517         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518         ???[sx]*):;;*)false;;esac;fi
519     '\'' sh
520   '
521 fi
522 as_executable_p=$as_test_x
523
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531 test -n "$DJDIR" || exec 7<&0 </dev/null
532 exec 6>&1
533
534 # Name of the host.
535 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
536 # so uname gets run too.
537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538
539 #
540 # Initializations.
541 #
542 ac_default_prefix=/usr/local
543 ac_clean_files=
544 ac_config_libobj_dir=.
545 LIBOBJS=
546 cross_compiling=no
547 subdirs=
548 MFLAGS=
549 MAKEFLAGS=
550
551 # Identity of this package.
552 PACKAGE_NAME='ctdlsh'
553 PACKAGE_TARNAME='ctdlsh'
554 PACKAGE_VERSION='1.0'
555 PACKAGE_STRING='ctdlsh 1.0'
556 PACKAGE_BUGREPORT='bug-automake@gnu.org'
557 PACKAGE_URL=''
558
559 ac_subst_vars='LTLIBOBJS
560 LIBOBJS
561 am__fastdepCC_FALSE
562 am__fastdepCC_TRUE
563 CCDEPMODE
564 AMDEPBACKSLASH
565 AMDEP_FALSE
566 AMDEP_TRUE
567 am__quote
568 am__include
569 DEPDIR
570 OBJEXT
571 EXEEXT
572 ac_ct_CC
573 CPPFLAGS
574 LDFLAGS
575 CFLAGS
576 CC
577 am__untar
578 am__tar
579 AMTAR
580 am__leading_dot
581 SET_MAKE
582 AWK
583 mkdir_p
584 INSTALL_STRIP_PROGRAM
585 STRIP
586 install_sh
587 MAKEINFO
588 AUTOHEADER
589 AUTOMAKE
590 AUTOCONF
591 ACLOCAL
592 VERSION
593 PACKAGE
594 CYGPATH_W
595 INSTALL_DATA
596 INSTALL_SCRIPT
597 INSTALL_PROGRAM
598 target_alias
599 host_alias
600 build_alias
601 LIBS
602 ECHO_T
603 ECHO_N
604 ECHO_C
605 DEFS
606 mandir
607 localedir
608 libdir
609 psdir
610 pdfdir
611 dvidir
612 htmldir
613 infodir
614 docdir
615 oldincludedir
616 includedir
617 localstatedir
618 sharedstatedir
619 sysconfdir
620 datadir
621 datarootdir
622 libexecdir
623 sbindir
624 bindir
625 program_transform_name
626 prefix
627 exec_prefix
628 PACKAGE_URL
629 PACKAGE_BUGREPORT
630 PACKAGE_STRING
631 PACKAGE_VERSION
632 PACKAGE_TARNAME
633 PACKAGE_NAME
634 PATH_SEPARATOR
635 SHELL'
636 ac_subst_files=''
637 ac_user_opts='
638 enable_option_checking
639 enable_dependency_tracking
640 with_readline
641 '
642       ac_precious_vars='build_alias
643 host_alias
644 target_alias
645 CC
646 CFLAGS
647 LDFLAGS
648 LIBS
649 CPPFLAGS'
650
651
652 # Initialize some variables set by options.
653 ac_init_help=
654 ac_init_version=false
655 ac_unrecognized_opts=
656 ac_unrecognized_sep=
657 # The variables have the same names as the options, with
658 # dashes changed to underlines.
659 cache_file=/dev/null
660 exec_prefix=NONE
661 no_create=
662 no_recursion=
663 prefix=NONE
664 program_prefix=NONE
665 program_suffix=NONE
666 program_transform_name=s,x,x,
667 silent=
668 site=
669 srcdir=
670 verbose=
671 x_includes=NONE
672 x_libraries=NONE
673
674 # Installation directory options.
675 # These are left unexpanded so users can "make install exec_prefix=/foo"
676 # and all the variables that are supposed to be based on exec_prefix
677 # by default will actually change.
678 # Use braces instead of parens because sh, perl, etc. also accept them.
679 # (The list follows the same order as the GNU Coding Standards.)
680 bindir='${exec_prefix}/bin'
681 sbindir='${exec_prefix}/sbin'
682 libexecdir='${exec_prefix}/libexec'
683 datarootdir='${prefix}/share'
684 datadir='${datarootdir}'
685 sysconfdir='${prefix}/etc'
686 sharedstatedir='${prefix}/com'
687 localstatedir='${prefix}/var'
688 includedir='${prefix}/include'
689 oldincludedir='/usr/include'
690 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
691 infodir='${datarootdir}/info'
692 htmldir='${docdir}'
693 dvidir='${docdir}'
694 pdfdir='${docdir}'
695 psdir='${docdir}'
696 libdir='${exec_prefix}/lib'
697 localedir='${datarootdir}/locale'
698 mandir='${datarootdir}/man'
699
700 ac_prev=
701 ac_dashdash=
702 for ac_option
703 do
704   # If the previous option needs an argument, assign it.
705   if test -n "$ac_prev"; then
706     eval $ac_prev=\$ac_option
707     ac_prev=
708     continue
709   fi
710
711   case $ac_option in
712   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
713   *=)   ac_optarg= ;;
714   *)    ac_optarg=yes ;;
715   esac
716
717   # Accept the important Cygnus configure options, so we can diagnose typos.
718
719   case $ac_dashdash$ac_option in
720   --)
721     ac_dashdash=yes ;;
722
723   -bindir | --bindir | --bindi | --bind | --bin | --bi)
724     ac_prev=bindir ;;
725   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
726     bindir=$ac_optarg ;;
727
728   -build | --build | --buil | --bui | --bu)
729     ac_prev=build_alias ;;
730   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
731     build_alias=$ac_optarg ;;
732
733   -cache-file | --cache-file | --cache-fil | --cache-fi \
734   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
735     ac_prev=cache_file ;;
736   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
737   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
738     cache_file=$ac_optarg ;;
739
740   --config-cache | -C)
741     cache_file=config.cache ;;
742
743   -datadir | --datadir | --datadi | --datad)
744     ac_prev=datadir ;;
745   -datadir=* | --datadir=* | --datadi=* | --datad=*)
746     datadir=$ac_optarg ;;
747
748   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
749   | --dataroo | --dataro | --datar)
750     ac_prev=datarootdir ;;
751   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
752   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
753     datarootdir=$ac_optarg ;;
754
755   -disable-* | --disable-*)
756     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
759       as_fn_error $? "invalid feature name: $ac_useropt"
760     ac_useropt_orig=$ac_useropt
761     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
762     case $ac_user_opts in
763       *"
764 "enable_$ac_useropt"
765 "*) ;;
766       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
767          ac_unrecognized_sep=', ';;
768     esac
769     eval enable_$ac_useropt=no ;;
770
771   -docdir | --docdir | --docdi | --doc | --do)
772     ac_prev=docdir ;;
773   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
774     docdir=$ac_optarg ;;
775
776   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
777     ac_prev=dvidir ;;
778   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
779     dvidir=$ac_optarg ;;
780
781   -enable-* | --enable-*)
782     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
785       as_fn_error $? "invalid feature name: $ac_useropt"
786     ac_useropt_orig=$ac_useropt
787     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
788     case $ac_user_opts in
789       *"
790 "enable_$ac_useropt"
791 "*) ;;
792       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
793          ac_unrecognized_sep=', ';;
794     esac
795     eval enable_$ac_useropt=\$ac_optarg ;;
796
797   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
798   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
799   | --exec | --exe | --ex)
800     ac_prev=exec_prefix ;;
801   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
802   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
803   | --exec=* | --exe=* | --ex=*)
804     exec_prefix=$ac_optarg ;;
805
806   -gas | --gas | --ga | --g)
807     # Obsolete; use --with-gas.
808     with_gas=yes ;;
809
810   -help | --help | --hel | --he | -h)
811     ac_init_help=long ;;
812   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
813     ac_init_help=recursive ;;
814   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
815     ac_init_help=short ;;
816
817   -host | --host | --hos | --ho)
818     ac_prev=host_alias ;;
819   -host=* | --host=* | --hos=* | --ho=*)
820     host_alias=$ac_optarg ;;
821
822   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
823     ac_prev=htmldir ;;
824   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
825   | --ht=*)
826     htmldir=$ac_optarg ;;
827
828   -includedir | --includedir | --includedi | --included | --include \
829   | --includ | --inclu | --incl | --inc)
830     ac_prev=includedir ;;
831   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
832   | --includ=* | --inclu=* | --incl=* | --inc=*)
833     includedir=$ac_optarg ;;
834
835   -infodir | --infodir | --infodi | --infod | --info | --inf)
836     ac_prev=infodir ;;
837   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
838     infodir=$ac_optarg ;;
839
840   -libdir | --libdir | --libdi | --libd)
841     ac_prev=libdir ;;
842   -libdir=* | --libdir=* | --libdi=* | --libd=*)
843     libdir=$ac_optarg ;;
844
845   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
846   | --libexe | --libex | --libe)
847     ac_prev=libexecdir ;;
848   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
849   | --libexe=* | --libex=* | --libe=*)
850     libexecdir=$ac_optarg ;;
851
852   -localedir | --localedir | --localedi | --localed | --locale)
853     ac_prev=localedir ;;
854   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
855     localedir=$ac_optarg ;;
856
857   -localstatedir | --localstatedir | --localstatedi | --localstated \
858   | --localstate | --localstat | --localsta | --localst | --locals)
859     ac_prev=localstatedir ;;
860   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
861   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
862     localstatedir=$ac_optarg ;;
863
864   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
865     ac_prev=mandir ;;
866   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
867     mandir=$ac_optarg ;;
868
869   -nfp | --nfp | --nf)
870     # Obsolete; use --without-fp.
871     with_fp=no ;;
872
873   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
874   | --no-cr | --no-c | -n)
875     no_create=yes ;;
876
877   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
878   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
879     no_recursion=yes ;;
880
881   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
882   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
883   | --oldin | --oldi | --old | --ol | --o)
884     ac_prev=oldincludedir ;;
885   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
886   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
887   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
888     oldincludedir=$ac_optarg ;;
889
890   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
891     ac_prev=prefix ;;
892   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
893     prefix=$ac_optarg ;;
894
895   -program-prefix | --program-prefix | --program-prefi | --program-pref \
896   | --program-pre | --program-pr | --program-p)
897     ac_prev=program_prefix ;;
898   -program-prefix=* | --program-prefix=* | --program-prefi=* \
899   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
900     program_prefix=$ac_optarg ;;
901
902   -program-suffix | --program-suffix | --program-suffi | --program-suff \
903   | --program-suf | --program-su | --program-s)
904     ac_prev=program_suffix ;;
905   -program-suffix=* | --program-suffix=* | --program-suffi=* \
906   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
907     program_suffix=$ac_optarg ;;
908
909   -program-transform-name | --program-transform-name \
910   | --program-transform-nam | --program-transform-na \
911   | --program-transform-n | --program-transform- \
912   | --program-transform | --program-transfor \
913   | --program-transfo | --program-transf \
914   | --program-trans | --program-tran \
915   | --progr-tra | --program-tr | --program-t)
916     ac_prev=program_transform_name ;;
917   -program-transform-name=* | --program-transform-name=* \
918   | --program-transform-nam=* | --program-transform-na=* \
919   | --program-transform-n=* | --program-transform-=* \
920   | --program-transform=* | --program-transfor=* \
921   | --program-transfo=* | --program-transf=* \
922   | --program-trans=* | --program-tran=* \
923   | --progr-tra=* | --program-tr=* | --program-t=*)
924     program_transform_name=$ac_optarg ;;
925
926   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
927     ac_prev=pdfdir ;;
928   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
929     pdfdir=$ac_optarg ;;
930
931   -psdir | --psdir | --psdi | --psd | --ps)
932     ac_prev=psdir ;;
933   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
934     psdir=$ac_optarg ;;
935
936   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
937   | -silent | --silent | --silen | --sile | --sil)
938     silent=yes ;;
939
940   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
941     ac_prev=sbindir ;;
942   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
943   | --sbi=* | --sb=*)
944     sbindir=$ac_optarg ;;
945
946   -sharedstatedir | --sharedstatedir | --sharedstatedi \
947   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
948   | --sharedst | --shareds | --shared | --share | --shar \
949   | --sha | --sh)
950     ac_prev=sharedstatedir ;;
951   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
952   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
953   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
954   | --sha=* | --sh=*)
955     sharedstatedir=$ac_optarg ;;
956
957   -site | --site | --sit)
958     ac_prev=site ;;
959   -site=* | --site=* | --sit=*)
960     site=$ac_optarg ;;
961
962   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
963     ac_prev=srcdir ;;
964   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
965     srcdir=$ac_optarg ;;
966
967   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
968   | --syscon | --sysco | --sysc | --sys | --sy)
969     ac_prev=sysconfdir ;;
970   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
971   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
972     sysconfdir=$ac_optarg ;;
973
974   -target | --target | --targe | --targ | --tar | --ta | --t)
975     ac_prev=target_alias ;;
976   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
977     target_alias=$ac_optarg ;;
978
979   -v | -verbose | --verbose | --verbos | --verbo | --verb)
980     verbose=yes ;;
981
982   -version | --version | --versio | --versi | --vers | -V)
983     ac_init_version=: ;;
984
985   -with-* | --with-*)
986     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
987     # Reject names that are not valid shell variable names.
988     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989       as_fn_error $? "invalid package name: $ac_useropt"
990     ac_useropt_orig=$ac_useropt
991     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992     case $ac_user_opts in
993       *"
994 "with_$ac_useropt"
995 "*) ;;
996       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
997          ac_unrecognized_sep=', ';;
998     esac
999     eval with_$ac_useropt=\$ac_optarg ;;
1000
1001   -without-* | --without-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       as_fn_error $? "invalid package name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009       *"
1010 "with_$ac_useropt"
1011 "*) ;;
1012       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1013          ac_unrecognized_sep=', ';;
1014     esac
1015     eval with_$ac_useropt=no ;;
1016
1017   --x)
1018     # Obsolete; use --with-x.
1019     with_x=yes ;;
1020
1021   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1022   | --x-incl | --x-inc | --x-in | --x-i)
1023     ac_prev=x_includes ;;
1024   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1025   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1026     x_includes=$ac_optarg ;;
1027
1028   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1029   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1030     ac_prev=x_libraries ;;
1031   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1032   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1033     x_libraries=$ac_optarg ;;
1034
1035   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1036 Try \`$0 --help' for more information"
1037     ;;
1038
1039   *=*)
1040     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1041     # Reject names that are not valid shell variable names.
1042     case $ac_envvar in #(
1043       '' | [0-9]* | *[!_$as_cr_alnum]* )
1044       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1045     esac
1046     eval $ac_envvar=\$ac_optarg
1047     export $ac_envvar ;;
1048
1049   *)
1050     # FIXME: should be removed in autoconf 3.0.
1051     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1052     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1054     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1055     ;;
1056
1057   esac
1058 done
1059
1060 if test -n "$ac_prev"; then
1061   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1062   as_fn_error $? "missing argument to $ac_option"
1063 fi
1064
1065 if test -n "$ac_unrecognized_opts"; then
1066   case $enable_option_checking in
1067     no) ;;
1068     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1069     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1070   esac
1071 fi
1072
1073 # Check all directory arguments for consistency.
1074 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1075                 datadir sysconfdir sharedstatedir localstatedir includedir \
1076                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1077                 libdir localedir mandir
1078 do
1079   eval ac_val=\$$ac_var
1080   # Remove trailing slashes.
1081   case $ac_val in
1082     */ )
1083       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1084       eval $ac_var=\$ac_val;;
1085   esac
1086   # Be sure to have absolute directory names.
1087   case $ac_val in
1088     [\\/$]* | ?:[\\/]* )  continue;;
1089     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1090   esac
1091   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1092 done
1093
1094 # There might be people who depend on the old broken behavior: `$host'
1095 # used to hold the argument of --host etc.
1096 # FIXME: To remove some day.
1097 build=$build_alias
1098 host=$host_alias
1099 target=$target_alias
1100
1101 # FIXME: To remove some day.
1102 if test "x$host_alias" != x; then
1103   if test "x$build_alias" = x; then
1104     cross_compiling=maybe
1105     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1106     If a cross compiler is detected then cross compile mode will be used" >&2
1107   elif test "x$build_alias" != "x$host_alias"; then
1108     cross_compiling=yes
1109   fi
1110 fi
1111
1112 ac_tool_prefix=
1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1114
1115 test "$silent" = yes && exec 6>/dev/null
1116
1117
1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di=`ls -di .` &&
1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121   as_fn_error $? "working directory cannot be determined"
1122 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1123   as_fn_error $? "pwd does not report name of working directory"
1124
1125
1126 # Find the source files, if location was not specified.
1127 if test -z "$srcdir"; then
1128   ac_srcdir_defaulted=yes
1129   # Try the directory containing this script, then the parent directory.
1130   ac_confdir=`$as_dirname -- "$as_myself" ||
1131 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1132          X"$as_myself" : 'X\(//\)[^/]' \| \
1133          X"$as_myself" : 'X\(//\)$' \| \
1134          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1135 $as_echo X"$as_myself" |
1136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1137             s//\1/
1138             q
1139           }
1140           /^X\(\/\/\)[^/].*/{
1141             s//\1/
1142             q
1143           }
1144           /^X\(\/\/\)$/{
1145             s//\1/
1146             q
1147           }
1148           /^X\(\/\).*/{
1149             s//\1/
1150             q
1151           }
1152           s/.*/./; q'`
1153   srcdir=$ac_confdir
1154   if test ! -r "$srcdir/$ac_unique_file"; then
1155     srcdir=..
1156   fi
1157 else
1158   ac_srcdir_defaulted=no
1159 fi
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1161   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1162   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1163 fi
1164 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1165 ac_abs_confdir=`(
1166         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1167         pwd)`
1168 # When building in place, set srcdir=.
1169 if test "$ac_abs_confdir" = "$ac_pwd"; then
1170   srcdir=.
1171 fi
1172 # Remove unnecessary trailing slashes from srcdir.
1173 # Double slashes in file names in object file debugging info
1174 # mess up M-x gdb in Emacs.
1175 case $srcdir in
1176 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1177 esac
1178 for ac_var in $ac_precious_vars; do
1179   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1180   eval ac_env_${ac_var}_value=\$${ac_var}
1181   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1182   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1183 done
1184
1185 #
1186 # Report the --help message.
1187 #
1188 if test "$ac_init_help" = "long"; then
1189   # Omit some internal or obsolete options to make the list less imposing.
1190   # This message is too long to be a string in the A/UX 3.1 sh.
1191   cat <<_ACEOF
1192 \`configure' configures ctdlsh 1.0 to adapt to many kinds of systems.
1193
1194 Usage: $0 [OPTION]... [VAR=VALUE]...
1195
1196 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1197 VAR=VALUE.  See below for descriptions of some of the useful variables.
1198
1199 Defaults for the options are specified in brackets.
1200
1201 Configuration:
1202   -h, --help              display this help and exit
1203       --help=short        display options specific to this package
1204       --help=recursive    display the short help of all the included packages
1205   -V, --version           display version information and exit
1206   -q, --quiet, --silent   do not print \`checking ...' messages
1207       --cache-file=FILE   cache test results in FILE [disabled]
1208   -C, --config-cache      alias for \`--cache-file=config.cache'
1209   -n, --no-create         do not create output files
1210       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1211
1212 Installation directories:
1213   --prefix=PREFIX         install architecture-independent files in PREFIX
1214                           [$ac_default_prefix]
1215   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1216                           [PREFIX]
1217
1218 By default, \`make install' will install all the files in
1219 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1220 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1221 for instance \`--prefix=\$HOME'.
1222
1223 For better control, use the options below.
1224
1225 Fine tuning of the installation directories:
1226   --bindir=DIR            user executables [EPREFIX/bin]
1227   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1228   --libexecdir=DIR        program executables [EPREFIX/libexec]
1229   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1230   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1231   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1232   --libdir=DIR            object code libraries [EPREFIX/lib]
1233   --includedir=DIR        C header files [PREFIX/include]
1234   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1235   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1236   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1237   --infodir=DIR           info documentation [DATAROOTDIR/info]
1238   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1239   --mandir=DIR            man documentation [DATAROOTDIR/man]
1240   --docdir=DIR            documentation root [DATAROOTDIR/doc/ctdlsh]
1241   --htmldir=DIR           html documentation [DOCDIR]
1242   --dvidir=DIR            dvi documentation [DOCDIR]
1243   --pdfdir=DIR            pdf documentation [DOCDIR]
1244   --psdir=DIR             ps documentation [DOCDIR]
1245 _ACEOF
1246
1247   cat <<\_ACEOF
1248
1249 Program names:
1250   --program-prefix=PREFIX            prepend PREFIX to installed program names
1251   --program-suffix=SUFFIX            append SUFFIX to installed program names
1252   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1253 _ACEOF
1254 fi
1255
1256 if test -n "$ac_init_help"; then
1257   case $ac_init_help in
1258      short | recursive ) echo "Configuration of ctdlsh 1.0:";;
1259    esac
1260   cat <<\_ACEOF
1261
1262 Optional Features:
1263   --disable-option-checking  ignore unrecognized --enable/--with options
1264   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1265   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1266   --disable-dependency-tracking  speeds up one-time build
1267   --enable-dependency-tracking   do not reject slow dependency extractors
1268
1269 Optional Packages:
1270   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1271   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1272   --with-readline=prefix  try this for a non-standard install prefix of the
1273                           readline library
1274
1275 Some influential environment variables:
1276   CC          C compiler command
1277   CFLAGS      C compiler flags
1278   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1279               nonstandard directory <lib dir>
1280   LIBS        libraries to pass to the linker, e.g. -l<library>
1281   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1282               you have headers in a nonstandard directory <include dir>
1283
1284 Use these variables to override the choices made by `configure' or to help
1285 it to find libraries and programs with nonstandard names/locations.
1286
1287 Report bugs to <bug-automake@gnu.org>.
1288 _ACEOF
1289 ac_status=$?
1290 fi
1291
1292 if test "$ac_init_help" = "recursive"; then
1293   # If there are subdirs, report their specific --help.
1294   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1295     test -d "$ac_dir" ||
1296       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1297       continue
1298     ac_builddir=.
1299
1300 case "$ac_dir" in
1301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1302 *)
1303   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1304   # A ".." for each directory in $ac_dir_suffix.
1305   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1306   case $ac_top_builddir_sub in
1307   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1308   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1309   esac ;;
1310 esac
1311 ac_abs_top_builddir=$ac_pwd
1312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1313 # for backward compatibility:
1314 ac_top_builddir=$ac_top_build_prefix
1315
1316 case $srcdir in
1317   .)  # We are building in place.
1318     ac_srcdir=.
1319     ac_top_srcdir=$ac_top_builddir_sub
1320     ac_abs_top_srcdir=$ac_pwd ;;
1321   [\\/]* | ?:[\\/]* )  # Absolute name.
1322     ac_srcdir=$srcdir$ac_dir_suffix;
1323     ac_top_srcdir=$srcdir
1324     ac_abs_top_srcdir=$srcdir ;;
1325   *) # Relative name.
1326     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1327     ac_top_srcdir=$ac_top_build_prefix$srcdir
1328     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1329 esac
1330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1331
1332     cd "$ac_dir" || { ac_status=$?; continue; }
1333     # Check for guested configure.
1334     if test -f "$ac_srcdir/configure.gnu"; then
1335       echo &&
1336       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1337     elif test -f "$ac_srcdir/configure"; then
1338       echo &&
1339       $SHELL "$ac_srcdir/configure" --help=recursive
1340     else
1341       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1342     fi || ac_status=$?
1343     cd "$ac_pwd" || { ac_status=$?; break; }
1344   done
1345 fi
1346
1347 test -n "$ac_init_help" && exit $ac_status
1348 if $ac_init_version; then
1349   cat <<\_ACEOF
1350 ctdlsh configure 1.0
1351 generated by GNU Autoconf 2.67
1352
1353 Copyright (C) 2010 Free Software Foundation, Inc.
1354 This configure script is free software; the Free Software Foundation
1355 gives unlimited permission to copy, distribute and modify it.
1356 _ACEOF
1357   exit
1358 fi
1359
1360 ## ------------------------ ##
1361 ## Autoconf initialization. ##
1362 ## ------------------------ ##
1363
1364 # ac_fn_c_try_compile LINENO
1365 # --------------------------
1366 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1367 ac_fn_c_try_compile ()
1368 {
1369   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1370   rm -f conftest.$ac_objext
1371   if { { ac_try="$ac_compile"
1372 case "(($ac_try" in
1373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1374   *) ac_try_echo=$ac_try;;
1375 esac
1376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1377 $as_echo "$ac_try_echo"; } >&5
1378   (eval "$ac_compile") 2>conftest.err
1379   ac_status=$?
1380   if test -s conftest.err; then
1381     grep -v '^ *+' conftest.err >conftest.er1
1382     cat conftest.er1 >&5
1383     mv -f conftest.er1 conftest.err
1384   fi
1385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1386   test $ac_status = 0; } && {
1387          test -z "$ac_c_werror_flag" ||
1388          test ! -s conftest.err
1389        } && test -s conftest.$ac_objext; then :
1390   ac_retval=0
1391 else
1392   $as_echo "$as_me: failed program was:" >&5
1393 sed 's/^/| /' conftest.$ac_ext >&5
1394
1395         ac_retval=1
1396 fi
1397   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1398   as_fn_set_status $ac_retval
1399
1400 } # ac_fn_c_try_compile
1401
1402 # ac_fn_c_try_link LINENO
1403 # -----------------------
1404 # Try to link conftest.$ac_ext, and return whether this succeeded.
1405 ac_fn_c_try_link ()
1406 {
1407   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1408   rm -f conftest.$ac_objext conftest$ac_exeext
1409   if { { ac_try="$ac_link"
1410 case "(($ac_try" in
1411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1412   *) ac_try_echo=$ac_try;;
1413 esac
1414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1415 $as_echo "$ac_try_echo"; } >&5
1416   (eval "$ac_link") 2>conftest.err
1417   ac_status=$?
1418   if test -s conftest.err; then
1419     grep -v '^ *+' conftest.err >conftest.er1
1420     cat conftest.er1 >&5
1421     mv -f conftest.er1 conftest.err
1422   fi
1423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1424   test $ac_status = 0; } && {
1425          test -z "$ac_c_werror_flag" ||
1426          test ! -s conftest.err
1427        } && test -s conftest$ac_exeext && {
1428          test "$cross_compiling" = yes ||
1429          $as_test_x conftest$ac_exeext
1430        }; then :
1431   ac_retval=0
1432 else
1433   $as_echo "$as_me: failed program was:" >&5
1434 sed 's/^/| /' conftest.$ac_ext >&5
1435
1436         ac_retval=1
1437 fi
1438   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1439   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1440   # interfere with the next link command; also delete a directory that is
1441   # left behind by Apple's compiler.  We do this before executing the actions.
1442   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1443   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1444   as_fn_set_status $ac_retval
1445
1446 } # ac_fn_c_try_link
1447 cat >config.log <<_ACEOF
1448 This file contains any messages produced by compilers while
1449 running configure, to aid debugging if configure makes a mistake.
1450
1451 It was created by ctdlsh $as_me 1.0, which was
1452 generated by GNU Autoconf 2.67.  Invocation command line was
1453
1454   $ $0 $@
1455
1456 _ACEOF
1457 exec 5>>config.log
1458 {
1459 cat <<_ASUNAME
1460 ## --------- ##
1461 ## Platform. ##
1462 ## --------- ##
1463
1464 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1465 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1466 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1467 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1468 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1469
1470 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1471 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1472
1473 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1474 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1475 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1476 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1477 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1478 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1479 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1480
1481 _ASUNAME
1482
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488     $as_echo "PATH: $as_dir"
1489   done
1490 IFS=$as_save_IFS
1491
1492 } >&5
1493
1494 cat >&5 <<_ACEOF
1495
1496
1497 ## ----------- ##
1498 ## Core tests. ##
1499 ## ----------- ##
1500
1501 _ACEOF
1502
1503
1504 # Keep a trace of the command line.
1505 # Strip out --no-create and --no-recursion so they do not pile up.
1506 # Strip out --silent because we don't want to record it for future runs.
1507 # Also quote any args containing shell meta-characters.
1508 # Make two passes to allow for proper duplicate-argument suppression.
1509 ac_configure_args=
1510 ac_configure_args0=
1511 ac_configure_args1=
1512 ac_must_keep_next=false
1513 for ac_pass in 1 2
1514 do
1515   for ac_arg
1516   do
1517     case $ac_arg in
1518     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1519     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1520     | -silent | --silent | --silen | --sile | --sil)
1521       continue ;;
1522     *\'*)
1523       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1524     esac
1525     case $ac_pass in
1526     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1527     2)
1528       as_fn_append ac_configure_args1 " '$ac_arg'"
1529       if test $ac_must_keep_next = true; then
1530         ac_must_keep_next=false # Got value, back to normal.
1531       else
1532         case $ac_arg in
1533           *=* | --config-cache | -C | -disable-* | --disable-* \
1534           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1535           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1536           | -with-* | --with-* | -without-* | --without-* | --x)
1537             case "$ac_configure_args0 " in
1538               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539             esac
1540             ;;
1541           -* ) ac_must_keep_next=true ;;
1542         esac
1543       fi
1544       as_fn_append ac_configure_args " '$ac_arg'"
1545       ;;
1546     esac
1547   done
1548 done
1549 { ac_configure_args0=; unset ac_configure_args0;}
1550 { ac_configure_args1=; unset ac_configure_args1;}
1551
1552 # When interrupted or exit'd, cleanup temporary files, and complete
1553 # config.log.  We remove comments because anyway the quotes in there
1554 # would cause problems or look ugly.
1555 # WARNING: Use '\'' to represent an apostrophe within the trap.
1556 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1557 trap 'exit_status=$?
1558   # Save into config.log some information that might help in debugging.
1559   {
1560     echo
1561
1562     $as_echo "## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##"
1565     echo
1566     # The following way of writing the cache mishandles newlines in values,
1567 (
1568   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569     eval ac_val=\$$ac_var
1570     case $ac_val in #(
1571     *${as_nl}*)
1572       case $ac_var in #(
1573       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1575       esac
1576       case $ac_var in #(
1577       _ | IFS | as_nl) ;; #(
1578       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1579       *) { eval $ac_var=; unset $ac_var;} ;;
1580       esac ;;
1581     esac
1582   done
1583   (set) 2>&1 |
1584     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1585     *${as_nl}ac_space=\ *)
1586       sed -n \
1587         "s/'\''/'\''\\\\'\'''\''/g;
1588           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1589       ;; #(
1590     *)
1591       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1592       ;;
1593     esac |
1594     sort
1595 )
1596     echo
1597
1598     $as_echo "## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##"
1601     echo
1602     for ac_var in $ac_subst_vars
1603     do
1604       eval ac_val=\$$ac_var
1605       case $ac_val in
1606       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1607       esac
1608       $as_echo "$ac_var='\''$ac_val'\''"
1609     done | sort
1610     echo
1611
1612     if test -n "$ac_subst_files"; then
1613       $as_echo "## ------------------- ##
1614 ## File substitutions. ##
1615 ## ------------------- ##"
1616       echo
1617       for ac_var in $ac_subst_files
1618       do
1619         eval ac_val=\$$ac_var
1620         case $ac_val in
1621         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622         esac
1623         $as_echo "$ac_var='\''$ac_val'\''"
1624       done | sort
1625       echo
1626     fi
1627
1628     if test -s confdefs.h; then
1629       $as_echo "## ----------- ##
1630 ## confdefs.h. ##
1631 ## ----------- ##"
1632       echo
1633       cat confdefs.h
1634       echo
1635     fi
1636     test "$ac_signal" != 0 &&
1637       $as_echo "$as_me: caught signal $ac_signal"
1638     $as_echo "$as_me: exit $exit_status"
1639   } >&5
1640   rm -f core *.core core.conftest.* &&
1641     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1642     exit $exit_status
1643 ' 0
1644 for ac_signal in 1 2 13 15; do
1645   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1646 done
1647 ac_signal=0
1648
1649 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1650 rm -f -r conftest* confdefs.h
1651
1652 $as_echo "/* confdefs.h */" > confdefs.h
1653
1654 # Predefined preprocessor variables.
1655
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_NAME "$PACKAGE_NAME"
1658 _ACEOF
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1662 _ACEOF
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1666 _ACEOF
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_STRING "$PACKAGE_STRING"
1670 _ACEOF
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 _ACEOF
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_URL "$PACKAGE_URL"
1678 _ACEOF
1679
1680
1681 # Let the site file select an alternate cache file if it wants to.
1682 # Prefer an explicitly selected file to automatically selected ones.
1683 ac_site_file1=NONE
1684 ac_site_file2=NONE
1685 if test -n "$CONFIG_SITE"; then
1686   # We do not want a PATH search for config.site.
1687   case $CONFIG_SITE in #((
1688     -*)  ac_site_file1=./$CONFIG_SITE;;
1689     */*) ac_site_file1=$CONFIG_SITE;;
1690     *)   ac_site_file1=./$CONFIG_SITE;;
1691   esac
1692 elif test "x$prefix" != xNONE; then
1693   ac_site_file1=$prefix/share/config.site
1694   ac_site_file2=$prefix/etc/config.site
1695 else
1696   ac_site_file1=$ac_default_prefix/share/config.site
1697   ac_site_file2=$ac_default_prefix/etc/config.site
1698 fi
1699 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1700 do
1701   test "x$ac_site_file" = xNONE && continue
1702   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1703     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1704 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1705     sed 's/^/| /' "$ac_site_file" >&5
1706     . "$ac_site_file" \
1707       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1709 as_fn_error $? "failed to load site script $ac_site_file
1710 See \`config.log' for more details" "$LINENO" 5 ; }
1711   fi
1712 done
1713
1714 if test -r "$cache_file"; then
1715   # Some versions of bash will fail to source /dev/null (special files
1716   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1717   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1719 $as_echo "$as_me: loading cache $cache_file" >&6;}
1720     case $cache_file in
1721       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722       *)                      . "./$cache_file";;
1723     esac
1724   fi
1725 else
1726   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1727 $as_echo "$as_me: creating cache $cache_file" >&6;}
1728   >$cache_file
1729 fi
1730
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736   eval ac_new_set=\$ac_env_${ac_var}_set
1737   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738   eval ac_new_val=\$ac_env_${ac_var}_value
1739   case $ac_old_set,$ac_new_set in
1740     set,)
1741       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743       ac_cache_corrupted=: ;;
1744     ,set)
1745       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1746 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747       ac_cache_corrupted=: ;;
1748     ,);;
1749     *)
1750       if test "x$ac_old_val" != "x$ac_new_val"; then
1751         # differences in whitespace do not lead to failure.
1752         ac_old_val_w=`echo x $ac_old_val`
1753         ac_new_val_w=`echo x $ac_new_val`
1754         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1755           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1756 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1757           ac_cache_corrupted=:
1758         else
1759           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1760 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1761           eval $ac_var=\$ac_old_val
1762         fi
1763         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1764 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1765         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1766 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1767       fi;;
1768   esac
1769   # Pass precious variables to config.status.
1770   if test "$ac_new_set" = set; then
1771     case $ac_new_val in
1772     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773     *) ac_arg=$ac_var=$ac_new_val ;;
1774     esac
1775     case " $ac_configure_args " in
1776       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1777       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1778     esac
1779   fi
1780 done
1781 if $ac_cache_corrupted; then
1782   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1785 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1787 fi
1788 ## -------------------- ##
1789 ## Main body of script. ##
1790 ## -------------------- ##
1791
1792 ac_ext=c
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797
1798
1799 am__api_version="1.9"
1800 ac_aux_dir=
1801 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1802   if test -f "$ac_dir/install-sh"; then
1803     ac_aux_dir=$ac_dir
1804     ac_install_sh="$ac_aux_dir/install-sh -c"
1805     break
1806   elif test -f "$ac_dir/install.sh"; then
1807     ac_aux_dir=$ac_dir
1808     ac_install_sh="$ac_aux_dir/install.sh -c"
1809     break
1810   elif test -f "$ac_dir/shtool"; then
1811     ac_aux_dir=$ac_dir
1812     ac_install_sh="$ac_aux_dir/shtool install -c"
1813     break
1814   fi
1815 done
1816 if test -z "$ac_aux_dir"; then
1817   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1818 fi
1819
1820 # These three variables are undocumented and unsupported,
1821 # and are intended to be withdrawn in a future Autoconf release.
1822 # They can cause serious problems if a builder's source tree is in a directory
1823 # whose full name contains unusual characters.
1824 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1825 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1826 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1827
1828
1829 # Find a good install program.  We prefer a C program (faster),
1830 # so one script is as good as another.  But avoid the broken or
1831 # incompatible versions:
1832 # SysV /etc/install, /usr/sbin/install
1833 # SunOS /usr/etc/install
1834 # IRIX /sbin/install
1835 # AIX /bin/install
1836 # AmigaOS /C/install, which installs bootblocks on floppy discs
1837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1840 # OS/2's system install, which has a completely different semantic
1841 # ./install, which can be erroneously created by make from ./install.sh.
1842 # Reject install programs that cannot install multiple files.
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1844 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1845 if test -z "$INSTALL"; then
1846 if test "${ac_cv_path_install+set}" = set; then :
1847   $as_echo_n "(cached) " >&6
1848 else
1849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1851 do
1852   IFS=$as_save_IFS
1853   test -z "$as_dir" && as_dir=.
1854     # Account for people who put trailing slashes in PATH elements.
1855 case $as_dir/ in #((
1856   ./ | .// | /[cC]/* | \
1857   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1858   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1859   /usr/ucb/* ) ;;
1860   *)
1861     # OSF1 and SCO ODT 3.0 have their own names for install.
1862     # Don't use installbsd from OSF since it installs stuff as root
1863     # by default.
1864     for ac_prog in ginstall scoinst install; do
1865       for ac_exec_ext in '' $ac_executable_extensions; do
1866         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1867           if test $ac_prog = install &&
1868             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1869             # AIX install.  It has an incompatible calling convention.
1870             :
1871           elif test $ac_prog = install &&
1872             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1873             # program-specific install script used by HP pwplus--don't use.
1874             :
1875           else
1876             rm -rf conftest.one conftest.two conftest.dir
1877             echo one > conftest.one
1878             echo two > conftest.two
1879             mkdir conftest.dir
1880             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1881               test -s conftest.one && test -s conftest.two &&
1882               test -s conftest.dir/conftest.one &&
1883               test -s conftest.dir/conftest.two
1884             then
1885               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1886               break 3
1887             fi
1888           fi
1889         fi
1890       done
1891     done
1892     ;;
1893 esac
1894
1895   done
1896 IFS=$as_save_IFS
1897
1898 rm -rf conftest.one conftest.two conftest.dir
1899
1900 fi
1901   if test "${ac_cv_path_install+set}" = set; then
1902     INSTALL=$ac_cv_path_install
1903   else
1904     # As a last resort, use the slow shell script.  Don't cache a
1905     # value for INSTALL within a source directory, because that will
1906     # break other packages using the cache if that directory is
1907     # removed, or if the value is a relative name.
1908     INSTALL=$ac_install_sh
1909   fi
1910 fi
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1912 $as_echo "$INSTALL" >&6; }
1913
1914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1915 # It thinks the first close brace ends the variable substitution.
1916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1917
1918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1919
1920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1921
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1923 $as_echo_n "checking whether build environment is sane... " >&6; }
1924 # Just in case
1925 sleep 1
1926 echo timestamp > conftest.file
1927 # Do `set' in a subshell so we don't clobber the current shell's
1928 # arguments.  Must try -L first in case configure is actually a
1929 # symlink; some systems play weird games with the mod time of symlinks
1930 # (eg FreeBSD returns the mod time of the symlink's containing
1931 # directory).
1932 if (
1933    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1934    if test "$*" = "X"; then
1935       # -L didn't work.
1936       set X `ls -t $srcdir/configure conftest.file`
1937    fi
1938    rm -f conftest.file
1939    if test "$*" != "X $srcdir/configure conftest.file" \
1940       && test "$*" != "X conftest.file $srcdir/configure"; then
1941
1942       # If neither matched, then we have a broken ls.  This can happen
1943       # if, for instance, CONFIG_SHELL is bash and it inherits a
1944       # broken ls alias from the environment.  This has actually
1945       # happened.  Such a system could not be considered "sane".
1946       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1947 alias in your environment" "$LINENO" 5
1948    fi
1949
1950    test "$2" = conftest.file
1951    )
1952 then
1953    # Ok.
1954    :
1955 else
1956    as_fn_error $? "newly created file is older than distributed files!
1957 Check your system clock" "$LINENO" 5
1958 fi
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1960 $as_echo "yes" >&6; }
1961 test "$program_prefix" != NONE &&
1962   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1963 # Use a double $ so make ignores it.
1964 test "$program_suffix" != NONE &&
1965   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1966 # Double any \ or $.
1967 # By default was `s,x,x', remove it if useless.
1968 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1969 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1970
1971 # expand $ac_aux_dir to an absolute path
1972 am_aux_dir=`cd $ac_aux_dir && pwd`
1973
1974 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1975 # Use eval to expand $SHELL
1976 if eval "$MISSING --run true"; then
1977   am_missing_run="$MISSING --run "
1978 else
1979   am_missing_run=
1980   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
1981 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1982 fi
1983
1984 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1985   # We used to keeping the `.' as first argument, in order to
1986   # allow $(mkdir_p) to be used without argument.  As in
1987   #   $(mkdir_p) $(somedir)
1988   # where $(somedir) is conditionally defined.  However this is wrong
1989   # for two reasons:
1990   #  1. if the package is installed by a user who cannot write `.'
1991   #     make install will fail,
1992   #  2. the above comment should most certainly read
1993   #     $(mkdir_p) $(DESTDIR)$(somedir)
1994   #     so it does not work when $(somedir) is undefined and
1995   #     $(DESTDIR) is not.
1996   #  To support the latter case, we have to write
1997   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1998   #  so the `.' trick is pointless.
1999   mkdir_p='mkdir -p --'
2000 else
2001   # On NextStep and OpenStep, the `mkdir' command does not
2002   # recognize any option.  It will interpret all options as
2003   # directories to create, and then abort because `.' already
2004   # exists.
2005   for d in ./-p ./--version;
2006   do
2007     test -d $d && rmdir $d
2008   done
2009   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2010   if test -f "$ac_aux_dir/mkinstalldirs"; then
2011     mkdir_p='$(mkinstalldirs)'
2012   else
2013     mkdir_p='$(install_sh) -d'
2014   fi
2015 fi
2016
2017 for ac_prog in gawk mawk nawk awk
2018 do
2019   # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 set dummy $ac_prog; ac_word=$2
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2022 $as_echo_n "checking for $ac_word... " >&6; }
2023 if test "${ac_cv_prog_AWK+set}" = set; then :
2024   $as_echo_n "(cached) " >&6
2025 else
2026   if test -n "$AWK"; then
2027   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032   IFS=$as_save_IFS
2033   test -z "$as_dir" && as_dir=.
2034     for ac_exec_ext in '' $ac_executable_extensions; do
2035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2036     ac_cv_prog_AWK="$ac_prog"
2037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2038     break 2
2039   fi
2040 done
2041   done
2042 IFS=$as_save_IFS
2043
2044 fi
2045 fi
2046 AWK=$ac_cv_prog_AWK
2047 if test -n "$AWK"; then
2048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2049 $as_echo "$AWK" >&6; }
2050 else
2051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2052 $as_echo "no" >&6; }
2053 fi
2054
2055
2056   test -n "$AWK" && break
2057 done
2058
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2060 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2061 set x ${MAKE-make}
2062 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2063 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2064   $as_echo_n "(cached) " >&6
2065 else
2066   cat >conftest.make <<\_ACEOF
2067 SHELL = /bin/sh
2068 all:
2069         @echo '@@@%%%=$(MAKE)=@@@%%%'
2070 _ACEOF
2071 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2072 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2073   *@@@%%%=?*=@@@%%%*)
2074     eval ac_cv_prog_make_${ac_make}_set=yes;;
2075   *)
2076     eval ac_cv_prog_make_${ac_make}_set=no;;
2077 esac
2078 rm -f conftest.make
2079 fi
2080 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2082 $as_echo "yes" >&6; }
2083   SET_MAKE=
2084 else
2085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2086 $as_echo "no" >&6; }
2087   SET_MAKE="MAKE=${MAKE-make}"
2088 fi
2089
2090 rm -rf .tst 2>/dev/null
2091 mkdir .tst 2>/dev/null
2092 if test -d .tst; then
2093   am__leading_dot=.
2094 else
2095   am__leading_dot=_
2096 fi
2097 rmdir .tst 2>/dev/null
2098
2099 # test to see if srcdir already configured
2100 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2101    test -f $srcdir/config.status; then
2102   as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2103 fi
2104
2105 # test whether we have cygpath
2106 if test -z "$CYGPATH_W"; then
2107   if (cygpath --version) >/dev/null 2>/dev/null; then
2108     CYGPATH_W='cygpath -w'
2109   else
2110     CYGPATH_W=echo
2111   fi
2112 fi
2113
2114
2115 # Define the identity of the package.
2116  PACKAGE='ctdlsh'
2117  VERSION='1.0'
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE "$PACKAGE"
2122 _ACEOF
2123
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define VERSION "$VERSION"
2127 _ACEOF
2128
2129 # Some tools Automake needs.
2130
2131 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2132
2133
2134 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2135
2136
2137 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2138
2139
2140 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2141
2142
2143 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2144
2145 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2146
2147 # Installed binaries are usually stripped using `strip' when the user
2148 # run `make install-strip'.  However `strip' might not be the right
2149 # tool to use in cross-compilation environments, therefore Automake
2150 # will honor the `STRIP' environment variable to overrule this program.
2151 if test "$cross_compiling" != no; then
2152   if test -n "$ac_tool_prefix"; then
2153   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2154 set dummy ${ac_tool_prefix}strip; ac_word=$2
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2156 $as_echo_n "checking for $ac_word... " >&6; }
2157 if test "${ac_cv_prog_STRIP+set}" = set; then :
2158   $as_echo_n "(cached) " >&6
2159 else
2160   if test -n "$STRIP"; then
2161   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166   IFS=$as_save_IFS
2167   test -z "$as_dir" && as_dir=.
2168     for ac_exec_ext in '' $ac_executable_extensions; do
2169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2172     break 2
2173   fi
2174 done
2175   done
2176 IFS=$as_save_IFS
2177
2178 fi
2179 fi
2180 STRIP=$ac_cv_prog_STRIP
2181 if test -n "$STRIP"; then
2182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2183 $as_echo "$STRIP" >&6; }
2184 else
2185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2186 $as_echo "no" >&6; }
2187 fi
2188
2189
2190 fi
2191 if test -z "$ac_cv_prog_STRIP"; then
2192   ac_ct_STRIP=$STRIP
2193   # Extract the first word of "strip", so it can be a program name with args.
2194 set dummy strip; ac_word=$2
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2196 $as_echo_n "checking for $ac_word... " >&6; }
2197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2198   $as_echo_n "(cached) " >&6
2199 else
2200   if test -n "$ac_ct_STRIP"; then
2201   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208     for ac_exec_ext in '' $ac_executable_extensions; do
2209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210     ac_cv_prog_ac_ct_STRIP="strip"
2211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215   done
2216 IFS=$as_save_IFS
2217
2218 fi
2219 fi
2220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2221 if test -n "$ac_ct_STRIP"; then
2222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2223 $as_echo "$ac_ct_STRIP" >&6; }
2224 else
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2226 $as_echo "no" >&6; }
2227 fi
2228
2229   if test "x$ac_ct_STRIP" = x; then
2230     STRIP=":"
2231   else
2232     case $cross_compiling:$ac_tool_warned in
2233 yes:)
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2236 ac_tool_warned=yes ;;
2237 esac
2238     STRIP=$ac_ct_STRIP
2239   fi
2240 else
2241   STRIP="$ac_cv_prog_STRIP"
2242 fi
2243
2244 fi
2245 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2246
2247 # We need awk for the "check" target.  The system "awk" is bad on
2248 # some platforms.
2249 # Always define AMTAR for backward compatibility.
2250
2251 AMTAR=${AMTAR-"${am_missing_run}tar"}
2252
2253 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2254
2255
2256
2257
2258
2259 ac_ext=c
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264 if test -n "$ac_tool_prefix"; then
2265   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2266 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2268 $as_echo_n "checking for $ac_word... " >&6; }
2269 if test "${ac_cv_prog_CC+set}" = set; then :
2270   $as_echo_n "(cached) " >&6
2271 else
2272   if test -n "$CC"; then
2273   ac_cv_prog_CC="$CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280     for ac_exec_ext in '' $ac_executable_extensions; do
2281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2284     break 2
2285   fi
2286 done
2287   done
2288 IFS=$as_save_IFS
2289
2290 fi
2291 fi
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2295 $as_echo "$CC" >&6; }
2296 else
2297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2298 $as_echo "no" >&6; }
2299 fi
2300
2301
2302 fi
2303 if test -z "$ac_cv_prog_CC"; then
2304   ac_ct_CC=$CC
2305   # Extract the first word of "gcc", so it can be a program name with args.
2306 set dummy gcc; ac_word=$2
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2308 $as_echo_n "checking for $ac_word... " >&6; }
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2310   $as_echo_n "(cached) " >&6
2311 else
2312   if test -n "$ac_ct_CC"; then
2313   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320     for ac_exec_ext in '' $ac_executable_extensions; do
2321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322     ac_cv_prog_ac_ct_CC="gcc"
2323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327   done
2328 IFS=$as_save_IFS
2329
2330 fi
2331 fi
2332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2333 if test -n "$ac_ct_CC"; then
2334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2335 $as_echo "$ac_ct_CC" >&6; }
2336 else
2337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2338 $as_echo "no" >&6; }
2339 fi
2340
2341   if test "x$ac_ct_CC" = x; then
2342     CC=""
2343   else
2344     case $cross_compiling:$ac_tool_warned in
2345 yes:)
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2348 ac_tool_warned=yes ;;
2349 esac
2350     CC=$ac_ct_CC
2351   fi
2352 else
2353   CC="$ac_cv_prog_CC"
2354 fi
2355
2356 if test -z "$CC"; then
2357           if test -n "$ac_tool_prefix"; then
2358     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2359 set dummy ${ac_tool_prefix}cc; ac_word=$2
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if test "${ac_cv_prog_CC+set}" = set; then :
2363   $as_echo_n "(cached) " >&6
2364 else
2365   if test -n "$CC"; then
2366   ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373     for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_CC="${ac_tool_prefix}cc"
2376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380   done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 CC=$ac_cv_prog_CC
2386 if test -n "$CC"; then
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2388 $as_echo "$CC" >&6; }
2389 else
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2391 $as_echo "no" >&6; }
2392 fi
2393
2394
2395   fi
2396 fi
2397 if test -z "$CC"; then
2398   # Extract the first word of "cc", so it can be a program name with args.
2399 set dummy cc; ac_word=$2
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2401 $as_echo_n "checking for $ac_word... " >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then :
2403   $as_echo_n "(cached) " >&6
2404 else
2405   if test -n "$CC"; then
2406   ac_cv_prog_CC="$CC" # Let the user override the test.
2407 else
2408   ac_prog_rejected=no
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414     for ac_exec_ext in '' $ac_executable_extensions; do
2415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2417        ac_prog_rejected=yes
2418        continue
2419      fi
2420     ac_cv_prog_CC="cc"
2421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423   fi
2424 done
2425   done
2426 IFS=$as_save_IFS
2427
2428 if test $ac_prog_rejected = yes; then
2429   # We found a bogon in the path, so make sure we never use it.
2430   set dummy $ac_cv_prog_CC
2431   shift
2432   if test $# != 0; then
2433     # We chose a different compiler from the bogus one.
2434     # However, it has the same basename, so the bogon will be chosen
2435     # first if we set CC to just the basename; use the full file name.
2436     shift
2437     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2438   fi
2439 fi
2440 fi
2441 fi
2442 CC=$ac_cv_prog_CC
2443 if test -n "$CC"; then
2444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2445 $as_echo "$CC" >&6; }
2446 else
2447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2448 $as_echo "no" >&6; }
2449 fi
2450
2451
2452 fi
2453 if test -z "$CC"; then
2454   if test -n "$ac_tool_prefix"; then
2455   for ac_prog in cl.exe
2456   do
2457     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460 $as_echo_n "checking for $ac_word... " >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then :
2462   $as_echo_n "(cached) " >&6
2463 else
2464   if test -n "$CC"; then
2465   ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472     for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479   done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2487 $as_echo "$CC" >&6; }
2488 else
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490 $as_echo "no" >&6; }
2491 fi
2492
2493
2494     test -n "$CC" && break
2495   done
2496 fi
2497 if test -z "$CC"; then
2498   ac_ct_CC=$CC
2499   for ac_prog in cl.exe
2500 do
2501   # Extract the first word of "$ac_prog", so it can be a program name with args.
2502 set dummy $ac_prog; ac_word=$2
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504 $as_echo_n "checking for $ac_word... " >&6; }
2505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2506   $as_echo_n "(cached) " >&6
2507 else
2508   if test -n "$ac_ct_CC"; then
2509   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516     for ac_exec_ext in '' $ac_executable_extensions; do
2517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518     ac_cv_prog_ac_ct_CC="$ac_prog"
2519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523   done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2529 if test -n "$ac_ct_CC"; then
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2531 $as_echo "$ac_ct_CC" >&6; }
2532 else
2533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 fi
2536
2537
2538   test -n "$ac_ct_CC" && break
2539 done
2540
2541   if test "x$ac_ct_CC" = x; then
2542     CC=""
2543   else
2544     case $cross_compiling:$ac_tool_warned in
2545 yes:)
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2548 ac_tool_warned=yes ;;
2549 esac
2550     CC=$ac_ct_CC
2551   fi
2552 fi
2553
2554 fi
2555
2556
2557 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 as_fn_error $? "no acceptable C compiler found in \$PATH
2560 See \`config.log' for more details" "$LINENO" 5 ; }
2561
2562 # Provide some information about the compiler.
2563 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2564 set X $ac_compile
2565 ac_compiler=$2
2566 for ac_option in --version -v -V -qversion; do
2567   { { ac_try="$ac_compiler $ac_option >&5"
2568 case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2575   ac_status=$?
2576   if test -s conftest.err; then
2577     sed '10a\
2578 ... rest of stderr output deleted ...
2579          10q' conftest.err >conftest.er1
2580     cat conftest.er1 >&5
2581   fi
2582   rm -f conftest.er1 conftest.err
2583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584   test $ac_status = 0; }
2585 done
2586
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h.  */
2589
2590 int
2591 main ()
2592 {
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 ac_clean_files_save=$ac_clean_files
2599 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2600 # Try to create an executable without -o first, disregard a.out.
2601 # It will help us diagnose broken compilers, and finding out an intuition
2602 # of exeext.
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2604 $as_echo_n "checking whether the C compiler works... " >&6; }
2605 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2606
2607 # The possible output files:
2608 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2609
2610 ac_rmfiles=
2611 for ac_file in $ac_files
2612 do
2613   case $ac_file in
2614     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2615     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2616   esac
2617 done
2618 rm -f $ac_rmfiles
2619
2620 if { { ac_try="$ac_link_default"
2621 case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626 $as_echo "$ac_try_echo"; } >&5
2627   (eval "$ac_link_default") 2>&5
2628   ac_status=$?
2629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630   test $ac_status = 0; }; then :
2631   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2632 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2633 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2634 # so that the user can short-circuit this test for compilers unknown to
2635 # Autoconf.
2636 for ac_file in $ac_files ''
2637 do
2638   test -f "$ac_file" || continue
2639   case $ac_file in
2640     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2641         ;;
2642     [ab].out )
2643         # We found the default executable, but exeext='' is most
2644         # certainly right.
2645         break;;
2646     *.* )
2647         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2648         then :; else
2649            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2650         fi
2651         # We set ac_cv_exeext here because the later test for it is not
2652         # safe: cross compilers may not add the suffix if given an `-o'
2653         # argument, so we may need to know it at that point already.
2654         # Even if this section looks crufty: it has the advantage of
2655         # actually working.
2656         break;;
2657     * )
2658         break;;
2659   esac
2660 done
2661 test "$ac_cv_exeext" = no && ac_cv_exeext=
2662
2663 else
2664   ac_file=''
2665 fi
2666 if test -z "$ac_file"; then :
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 as_fn_error 77 "C compiler cannot create executables
2675 See \`config.log' for more details" "$LINENO" 5 ; }
2676 else
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2678 $as_echo "yes" >&6; }
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2681 $as_echo_n "checking for C compiler default output file name... " >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2683 $as_echo "$ac_file" >&6; }
2684 ac_exeext=$ac_cv_exeext
2685
2686 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2687 ac_clean_files=$ac_clean_files_save
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2689 $as_echo_n "checking for suffix of executables... " >&6; }
2690 if { { ac_try="$ac_link"
2691 case "(($ac_try" in
2692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693   *) ac_try_echo=$ac_try;;
2694 esac
2695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696 $as_echo "$ac_try_echo"; } >&5
2697   (eval "$ac_link") 2>&5
2698   ac_status=$?
2699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700   test $ac_status = 0; }; then :
2701   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2702 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2703 # work properly (i.e., refer to `conftest.exe'), while it won't with
2704 # `rm'.
2705 for ac_file in conftest.exe conftest conftest.*; do
2706   test -f "$ac_file" || continue
2707   case $ac_file in
2708     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2709     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2710           break;;
2711     * ) break;;
2712   esac
2713 done
2714 else
2715   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2718 See \`config.log' for more details" "$LINENO" 5 ; }
2719 fi
2720 rm -f conftest conftest$ac_cv_exeext
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2722 $as_echo "$ac_cv_exeext" >&6; }
2723
2724 rm -f conftest.$ac_ext
2725 EXEEXT=$ac_cv_exeext
2726 ac_exeext=$EXEEXT
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728 /* end confdefs.h.  */
2729 #include <stdio.h>
2730 int
2731 main ()
2732 {
2733 FILE *f = fopen ("conftest.out", "w");
2734  return ferror (f) || fclose (f) != 0;
2735
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 ac_clean_files="$ac_clean_files conftest.out"
2741 # Check that the compiler produces executables we can run.  If not, either
2742 # the compiler is broken, or we cross compile.
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2744 $as_echo_n "checking whether we are cross compiling... " >&6; }
2745 if test "$cross_compiling" != yes; then
2746   { { ac_try="$ac_link"
2747 case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2752 $as_echo "$ac_try_echo"; } >&5
2753   (eval "$ac_link") 2>&5
2754   ac_status=$?
2755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756   test $ac_status = 0; }
2757   if { ac_try='./conftest$ac_cv_exeext'
2758   { { case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 $as_echo "$ac_try_echo"; } >&5
2764   (eval "$ac_try") 2>&5
2765   ac_status=$?
2766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767   test $ac_status = 0; }; }; then
2768     cross_compiling=no
2769   else
2770     if test "$cross_compiling" = maybe; then
2771         cross_compiling=yes
2772     else
2773         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2775 as_fn_error $? "cannot run C compiled programs.
2776 If you meant to cross compile, use \`--host'.
2777 See \`config.log' for more details" "$LINENO" 5 ; }
2778     fi
2779   fi
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2782 $as_echo "$cross_compiling" >&6; }
2783
2784 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2785 ac_clean_files=$ac_clean_files_save
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2787 $as_echo_n "checking for suffix of object files... " >&6; }
2788 if test "${ac_cv_objext+set}" = set; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h.  */
2793
2794 int
2795 main ()
2796 {
2797
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.o conftest.obj
2803 if { { ac_try="$ac_compile"
2804 case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2809 $as_echo "$ac_try_echo"; } >&5
2810   (eval "$ac_compile") 2>&5
2811   ac_status=$?
2812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2813   test $ac_status = 0; }; then :
2814   for ac_file in conftest.o conftest.obj conftest.*; do
2815   test -f "$ac_file" || continue;
2816   case $ac_file in
2817     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2818     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2819        break;;
2820   esac
2821 done
2822 else
2823   $as_echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2828 as_fn_error $? "cannot compute suffix of object files: cannot compile
2829 See \`config.log' for more details" "$LINENO" 5 ; }
2830 fi
2831 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2832 fi
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2834 $as_echo "$ac_cv_objext" >&6; }
2835 OBJEXT=$ac_cv_objext
2836 ac_objext=$OBJEXT
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2838 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2839 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2840   $as_echo_n "(cached) " >&6
2841 else
2842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h.  */
2844
2845 int
2846 main ()
2847 {
2848 #ifndef __GNUC__
2849        choke me
2850 #endif
2851
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_c_try_compile "$LINENO"; then :
2857   ac_compiler_gnu=yes
2858 else
2859   ac_compiler_gnu=no
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2863
2864 fi
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2866 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2867 if test $ac_compiler_gnu = yes; then
2868   GCC=yes
2869 else
2870   GCC=
2871 fi
2872 ac_test_CFLAGS=${CFLAGS+set}
2873 ac_save_CFLAGS=$CFLAGS
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2875 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2876 if test "${ac_cv_prog_cc_g+set}" = set; then :
2877   $as_echo_n "(cached) " >&6
2878 else
2879   ac_save_c_werror_flag=$ac_c_werror_flag
2880    ac_c_werror_flag=yes
2881    ac_cv_prog_cc_g=no
2882    CFLAGS="-g"
2883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h.  */
2885
2886 int
2887 main ()
2888 {
2889
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 if ac_fn_c_try_compile "$LINENO"; then :
2895   ac_cv_prog_cc_g=yes
2896 else
2897   CFLAGS=""
2898       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899 /* end confdefs.h.  */
2900
2901 int
2902 main ()
2903 {
2904
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 if ac_fn_c_try_compile "$LINENO"; then :
2910
2911 else
2912   ac_c_werror_flag=$ac_save_c_werror_flag
2913          CFLAGS="-g"
2914          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h.  */
2916
2917 int
2918 main ()
2919 {
2920
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 if ac_fn_c_try_compile "$LINENO"; then :
2926   ac_cv_prog_cc_g=yes
2927 fi
2928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929 fi
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 fi
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933    ac_c_werror_flag=$ac_save_c_werror_flag
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2936 $as_echo "$ac_cv_prog_cc_g" >&6; }
2937 if test "$ac_test_CFLAGS" = set; then
2938   CFLAGS=$ac_save_CFLAGS
2939 elif test $ac_cv_prog_cc_g = yes; then
2940   if test "$GCC" = yes; then
2941     CFLAGS="-g -O2"
2942   else
2943     CFLAGS="-g"
2944   fi
2945 else
2946   if test "$GCC" = yes; then
2947     CFLAGS="-O2"
2948   else
2949     CFLAGS=
2950   fi
2951 fi
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2953 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2954 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2955   $as_echo_n "(cached) " >&6
2956 else
2957   ac_cv_prog_cc_c89=no
2958 ac_save_CC=$CC
2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960 /* end confdefs.h.  */
2961 #include <stdarg.h>
2962 #include <stdio.h>
2963 #include <sys/types.h>
2964 #include <sys/stat.h>
2965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2966 struct buf { int x; };
2967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2968 static char *e (p, i)
2969      char **p;
2970      int i;
2971 {
2972   return p[i];
2973 }
2974 static char *f (char * (*g) (char **, int), char **p, ...)
2975 {
2976   char *s;
2977   va_list v;
2978   va_start (v,p);
2979   s = g (p, va_arg (v,int));
2980   va_end (v);
2981   return s;
2982 }
2983
2984 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2985    function prototypes and stuff, but not '\xHH' hex character constants.
2986    These don't provoke an error unfortunately, instead are silently treated
2987    as 'x'.  The following induces an error, until -std is added to get
2988    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2989    array size at least.  It's necessary to write '\x00'==0 to get something
2990    that's true only with -std.  */
2991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2992
2993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2994    inside strings and character constants.  */
2995 #define FOO(x) 'x'
2996 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2997
2998 int test (int i, double x);
2999 struct s1 {int (*f) (int a);};
3000 struct s2 {int (*f) (double a);};
3001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3002 int argc;
3003 char **argv;
3004 int
3005 main ()
3006 {
3007 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3008   ;
3009   return 0;
3010 }
3011 _ACEOF
3012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3013         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3014 do
3015   CC="$ac_save_CC $ac_arg"
3016   if ac_fn_c_try_compile "$LINENO"; then :
3017   ac_cv_prog_cc_c89=$ac_arg
3018 fi
3019 rm -f core conftest.err conftest.$ac_objext
3020   test "x$ac_cv_prog_cc_c89" != "xno" && break
3021 done
3022 rm -f conftest.$ac_ext
3023 CC=$ac_save_CC
3024
3025 fi
3026 # AC_CACHE_VAL
3027 case "x$ac_cv_prog_cc_c89" in
3028   x)
3029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3030 $as_echo "none needed" >&6; } ;;
3031   xno)
3032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3033 $as_echo "unsupported" >&6; } ;;
3034   *)
3035     CC="$CC $ac_cv_prog_cc_c89"
3036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3037 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3038 esac
3039 if test "x$ac_cv_prog_cc_c89" != xno; then :
3040
3041 fi
3042
3043 ac_ext=c
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 DEPDIR="${am__leading_dot}deps"
3049
3050 ac_config_commands="$ac_config_commands depfiles"
3051
3052
3053 am_make=${MAKE-make}
3054 cat > confinc << 'END'
3055 am__doit:
3056         @echo done
3057 .PHONY: am__doit
3058 END
3059 # If we don't find an include directive, just comment out the code.
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3061 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3062 am__include="#"
3063 am__quote=
3064 _am_result=none
3065 # First try GNU make style include.
3066 echo "include confinc" > confmf
3067 # We grep out `Entering directory' and `Leaving directory'
3068 # messages which can occur if `w' ends up in MAKEFLAGS.
3069 # In particular we don't look at `^make:' because GNU make might
3070 # be invoked under some other name (usually "gmake"), in which
3071 # case it prints its new name instead of `make'.
3072 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3073    am__include=include
3074    am__quote=
3075    _am_result=GNU
3076 fi
3077 # Now try BSD make style include.
3078 if test "$am__include" = "#"; then
3079    echo '.include "confinc"' > confmf
3080    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3081       am__include=.include
3082       am__quote="\""
3083       _am_result=BSD
3084    fi
3085 fi
3086
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3089 $as_echo "$_am_result" >&6; }
3090 rm -f confinc confmf
3091
3092 # Check whether --enable-dependency-tracking was given.
3093 if test "${enable_dependency_tracking+set}" = set; then :
3094   enableval=$enable_dependency_tracking;
3095 fi
3096
3097 if test "x$enable_dependency_tracking" != xno; then
3098   am_depcomp="$ac_aux_dir/depcomp"
3099   AMDEPBACKSLASH='\'
3100 fi
3101
3102
3103 if test "x$enable_dependency_tracking" != xno; then
3104   AMDEP_TRUE=
3105   AMDEP_FALSE='#'
3106 else
3107   AMDEP_TRUE='#'
3108   AMDEP_FALSE=
3109 fi
3110
3111
3112
3113
3114 depcc="$CC"   am_compiler_list=
3115
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3117 $as_echo_n "checking dependency style of $depcc... " >&6; }
3118 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3122   # We make a subdir and do the tests there.  Otherwise we can end up
3123   # making bogus files that we don't know about and never remove.  For
3124   # instance it was reported that on HP-UX the gcc test will end up
3125   # making a dummy file named `D' -- because `-MD' means `put the output
3126   # in D'.
3127   mkdir conftest.dir
3128   # Copy depcomp to subdir because otherwise we won't find it if we're
3129   # using a relative directory.
3130   cp "$am_depcomp" conftest.dir
3131   cd conftest.dir
3132   # We will build objects and dependencies in a subdirectory because
3133   # it helps to detect inapplicable dependency modes.  For instance
3134   # both Tru64's cc and ICC support -MD to output dependencies as a
3135   # side effect of compilation, but ICC will put the dependencies in
3136   # the current directory while Tru64 will put them in the object
3137   # directory.
3138   mkdir sub
3139
3140   am_cv_CC_dependencies_compiler_type=none
3141   if test "$am_compiler_list" = ""; then
3142      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3143   fi
3144   for depmode in $am_compiler_list; do
3145     # Setup a source with many dependencies, because some compilers
3146     # like to wrap large dependency lists on column 80 (with \), and
3147     # we should not choose a depcomp mode which is confused by this.
3148     #
3149     # We need to recreate these files for each test, as the compiler may
3150     # overwrite some of them when testing with obscure command lines.
3151     # This happens at least with the AIX C compiler.
3152     : > sub/conftest.c
3153     for i in 1 2 3 4 5 6; do
3154       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3155       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3156       # Solaris 8's {/usr,}/bin/sh.
3157       touch sub/conftst$i.h
3158     done
3159     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3160
3161     case $depmode in
3162     nosideeffect)
3163       # after this tag, mechanisms are not by side-effect, so they'll
3164       # only be used when explicitly requested
3165       if test "x$enable_dependency_tracking" = xyes; then
3166         continue
3167       else
3168         break
3169       fi
3170       ;;
3171     none) break ;;
3172     esac
3173     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3174     # mode.  It turns out that the SunPro C++ compiler does not properly
3175     # handle `-M -o', and we need to detect this.
3176     if depmode=$depmode \
3177        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3178        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3179        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3180          >/dev/null 2>conftest.err &&
3181        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3182        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3183        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3184       # icc doesn't choke on unknown options, it will just issue warnings
3185       # or remarks (even with -Werror).  So we grep stderr for any message
3186       # that says an option was ignored or not supported.
3187       # When given -MP, icc 7.0 and 7.1 complain thusly:
3188       #   icc: Command line warning: ignoring option '-M'; no argument required
3189       # The diagnosis changed in icc 8.0:
3190       #   icc: Command line remark: option '-MP' not supported
3191       if (grep 'ignoring option' conftest.err ||
3192           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3193         am_cv_CC_dependencies_compiler_type=$depmode
3194         break
3195       fi
3196     fi
3197   done
3198
3199   cd ..
3200   rm -rf conftest.dir
3201 else
3202   am_cv_CC_dependencies_compiler_type=none
3203 fi
3204
3205 fi
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3207 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3208 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3209
3210
3211
3212 if
3213   test "x$enable_dependency_tracking" != xno \
3214   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3215   am__fastdepCC_TRUE=
3216   am__fastdepCC_FALSE='#'
3217 else
3218   am__fastdepCC_TRUE='#'
3219   am__fastdepCC_FALSE=
3220 fi
3221
3222
3223 ac_config_headers="$ac_config_headers config.h"
3224
3225
3226 ##########################################################################
3227 # adding the readline library (e.g. with static name 'libreadline.a')
3228 ##########################################################################
3229
3230 # adding the lib to the files to link
3231 LIBS="-lreadline $LIBS"
3232
3233 # introduce the optional configure parameter for a non-standard install prefix of readline
3234
3235 # Check whether --with-readline was given.
3236 if test "${with_readline+set}" = set; then :
3237   withval=$with_readline; readlinePATHSET=1
3238 else
3239   readlinePATHSET=0
3240 fi
3241
3242
3243 # if optional parameter used, extend path flags for compliler and linker
3244 if test $readlinePATHSET = 1 ; then
3245     # extend the compiler and linker flags according to the path set
3246     AM_CXXFLAGS="$AM_CXXFLAGS -I$with_readline/include"
3247     AM_LDFLAGS="$AM_LDFLAGS -L$with_readline/lib"
3248 fi
3249
3250 ##########################################################################
3251
3252
3253 ##########################################################################
3254 # check for readline library
3255 ##########################################################################
3256
3257 # store current *FLAGS and merge with AM_*FLAGS for compilation and linker check
3258 OLD_CXXFLAGS=$CXXFLAGS;
3259 OLD_LDFLAGS=$LDFLAGS;
3260 CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
3261 LDFLAGS="$AM_LDFLAGS $LDFLAGS"
3262
3263 # ensure the library to check for is covered by the LIBS variable
3264 OLD_LIBS=$LIBS
3265 LIBS="$LIBS -lreadline"
3266
3267 # check for readline library headers
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the readline library headers" >&5
3269 $as_echo_n "checking for the readline library headers... " >&6; }
3270 # try to compile a file that includes a header of the library readline
3271
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h.  */
3274 #include <readline/readline.h>
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
3278 $as_echo "found" >&6; }
3279         # try to link the function 'rl_initialize' out of library readline
3280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the readline library can be linked" >&5
3281 $as_echo_n "checking whether the readline library can be linked... " >&6; }
3282         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h.  */
3284 #include <readline/readline.h>
3285 int
3286 main ()
3287 {
3288 rl_initialize();
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 if ac_fn_c_try_link "$LINENO"; then :
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3296                 FOUND_readline=1;
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300                 LIBS=$OLD_LIBS;                 FOUND_readline=0;
3301 fi
3302 rm -f core conftest.err conftest.$ac_objext \
3303     conftest$ac_exeext conftest.$ac_ext
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3306 $as_echo "not found" >&6; }
3307         FOUND_readline=0;
3308 fi
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310
3311 # reset original *FLAGS
3312 CXXFLAGS=$OLD_CXXFLAGS
3313 LDFLAGS=$OLD_LDFLAGS
3314
3315 # handle check results
3316 if test $FOUND_readline != 1; then
3317     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
3318 $as_echo "$as_me: " >&6;}
3319     { $as_echo "$as_me:${as_lineno-$LINENO}: The readline library was not found!" >&5
3320 $as_echo "$as_me: The readline library was not found!" >&6;}
3321     if test  $readlinePATHSET = 1 ; then
3322         { $as_echo "$as_me:${as_lineno-$LINENO}:  The install prefix '$with_readline' for the readline library was set." >&5
3323 $as_echo "$as_me:  The install prefix '$with_readline' for the readline library was set." >&6;}
3324         { $as_echo "$as_me:${as_lineno-$LINENO}:  --> Maybe wrong ???" >&5
3325 $as_echo "$as_me:  --> Maybe wrong ???" >&6;}
3326     else
3327         { $as_echo "$as_me:${as_lineno-$LINENO}:  No non-standard install prefix was set." >&5
3328 $as_echo "$as_me:  No non-standard install prefix was set." >&6;}
3329         { $as_echo "$as_me:${as_lineno-$LINENO}:  --> You might want to use '--with-readline=PREFIX' ?!?" >&5
3330 $as_echo "$as_me:  --> You might want to use '--with-readline=PREFIX' ?!?" >&6;}
3331     fi
3332     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
3333 $as_echo "$as_me: " >&6;}
3334     as_fn_error $? " readline library is an essential dependency : cannot build and stop here !" "$LINENO" 5
3335 fi
3336
3337 ##########################################################################
3338
3339
3340
3341
3342
3343 ac_config_files="$ac_config_files Makefile src/Makefile"
3344
3345 cat >confcache <<\_ACEOF
3346 # This file is a shell script that caches the results of configure
3347 # tests run on this system so they can be shared between configure
3348 # scripts and configure runs, see configure's option --config-cache.
3349 # It is not useful on other systems.  If it contains results you don't
3350 # want to keep, you may remove or edit it.
3351 #
3352 # config.status only pays attention to the cache file if you give it
3353 # the --recheck option to rerun configure.
3354 #
3355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3357 # following values.
3358
3359 _ACEOF
3360
3361 # The following way of writing the cache mishandles newlines in values,
3362 # but we know of no workaround that is simple, portable, and efficient.
3363 # So, we kill variables containing newlines.
3364 # Ultrix sh set writes to stderr and can't be redirected directly,
3365 # and sets the high bit in the cache file unless we assign to the vars.
3366 (
3367   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3368     eval ac_val=\$$ac_var
3369     case $ac_val in #(
3370     *${as_nl}*)
3371       case $ac_var in #(
3372       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3374       esac
3375       case $ac_var in #(
3376       _ | IFS | as_nl) ;; #(
3377       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3378       *) { eval $ac_var=; unset $ac_var;} ;;
3379       esac ;;
3380     esac
3381   done
3382
3383   (set) 2>&1 |
3384     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3385     *${as_nl}ac_space=\ *)
3386       # `set' does not quote correctly, so add quotes: double-quote
3387       # substitution turns \\\\ into \\, and sed turns \\ into \.
3388       sed -n \
3389         "s/'/'\\\\''/g;
3390           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3391       ;; #(
3392     *)
3393       # `set' quotes correctly as required by POSIX, so do not add quotes.
3394       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3395       ;;
3396     esac |
3397     sort
3398 ) |
3399   sed '
3400      /^ac_cv_env_/b end
3401      t clear
3402      :clear
3403      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3404      t end
3405      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3406      :end' >>confcache
3407 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3408   if test -w "$cache_file"; then
3409     test "x$cache_file" != "x/dev/null" &&
3410       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3411 $as_echo "$as_me: updating cache $cache_file" >&6;}
3412     cat confcache >$cache_file
3413   else
3414     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3415 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3416   fi
3417 fi
3418 rm -f confcache
3419
3420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3421 # Let make expand exec_prefix.
3422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3423
3424 DEFS=-DHAVE_CONFIG_H
3425
3426 ac_libobjs=
3427 ac_ltlibobjs=
3428 U=
3429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3430   # 1. Remove the extension, and $U if already installed.
3431   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3432   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3433   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3434   #    will be set to the directory where LIBOBJS objects are built.
3435   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3436   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3437 done
3438 LIBOBJS=$ac_libobjs
3439
3440 LTLIBOBJS=$ac_ltlibobjs
3441
3442
3443 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3444   as_fn_error $? "conditional \"AMDEP\" was never defined.
3445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3446 fi
3447 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3448   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
3449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3450 fi
3451
3452 : ${CONFIG_STATUS=./config.status}
3453 ac_write_fail=0
3454 ac_clean_files_save=$ac_clean_files
3455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3457 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3458 as_write_fail=0
3459 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3460 #! $SHELL
3461 # Generated by $as_me.
3462 # Run this file to recreate the current configuration.
3463 # Compiler output produced by configure, useful for debugging
3464 # configure, is in config.log if it exists.
3465
3466 debug=false
3467 ac_cs_recheck=false
3468 ac_cs_silent=false
3469
3470 SHELL=\${CONFIG_SHELL-$SHELL}
3471 export SHELL
3472 _ASEOF
3473 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3474 ## -------------------- ##
3475 ## M4sh Initialization. ##
3476 ## -------------------- ##
3477
3478 # Be more Bourne compatible
3479 DUALCASE=1; export DUALCASE # for MKS sh
3480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3481   emulate sh
3482   NULLCMD=:
3483   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3484   # is contrary to our usage.  Disable this feature.
3485   alias -g '${1+"$@"}'='"$@"'
3486   setopt NO_GLOB_SUBST
3487 else
3488   case `(set -o) 2>/dev/null` in #(
3489   *posix*) :
3490     set -o posix ;; #(
3491   *) :
3492      ;;
3493 esac
3494 fi
3495
3496
3497 as_nl='
3498 '
3499 export as_nl
3500 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3501 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3502 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3503 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3504 # Prefer a ksh shell builtin over an external printf program on Solaris,
3505 # but without wasting forks for bash or zsh.
3506 if test -z "$BASH_VERSION$ZSH_VERSION" \
3507     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3508   as_echo='print -r --'
3509   as_echo_n='print -rn --'
3510 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3511   as_echo='printf %s\n'
3512   as_echo_n='printf %s'
3513 else
3514   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3515     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3516     as_echo_n='/usr/ucb/echo -n'
3517   else
3518     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3519     as_echo_n_body='eval
3520       arg=$1;
3521       case $arg in #(
3522       *"$as_nl"*)
3523         expr "X$arg" : "X\\(.*\\)$as_nl";
3524         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3525       esac;
3526       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3527     '
3528     export as_echo_n_body
3529     as_echo_n='sh -c $as_echo_n_body as_echo'
3530   fi
3531   export as_echo_body
3532   as_echo='sh -c $as_echo_body as_echo'
3533 fi
3534
3535 # The user is always right.
3536 if test "${PATH_SEPARATOR+set}" != set; then
3537   PATH_SEPARATOR=:
3538   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3539     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3540       PATH_SEPARATOR=';'
3541   }
3542 fi
3543
3544
3545 # IFS
3546 # We need space, tab and new line, in precisely that order.  Quoting is
3547 # there to prevent editors from complaining about space-tab.
3548 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3549 # splitting by setting IFS to empty value.)
3550 IFS=" ""        $as_nl"
3551
3552 # Find who we are.  Look in the path if we contain no directory separator.
3553 case $0 in #((
3554   *[\\/]* ) as_myself=$0 ;;
3555   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3561   done
3562 IFS=$as_save_IFS
3563
3564      ;;
3565 esac
3566 # We did not find ourselves, most probably we were run as `sh COMMAND'
3567 # in which case we are not to be found in the path.
3568 if test "x$as_myself" = x; then
3569   as_myself=$0
3570 fi
3571 if test ! -f "$as_myself"; then
3572   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3573   exit 1
3574 fi
3575
3576 # Unset variables that we do not need and which cause bugs (e.g. in
3577 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3578 # suppresses any "Segmentation fault" message there.  '((' could
3579 # trigger a bug in pdksh 5.2.14.
3580 for as_var in BASH_ENV ENV MAIL MAILPATH
3581 do eval test x\${$as_var+set} = xset \
3582   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3583 done
3584 PS1='$ '
3585 PS2='> '
3586 PS4='+ '
3587
3588 # NLS nuisances.
3589 LC_ALL=C
3590 export LC_ALL
3591 LANGUAGE=C
3592 export LANGUAGE
3593
3594 # CDPATH.
3595 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3596
3597
3598 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3599 # ----------------------------------------
3600 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3601 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3602 # script with STATUS, using 1 if that was 0.
3603 as_fn_error ()
3604 {
3605   as_status=$1; test $as_status -eq 0 && as_status=1
3606   if test "$4"; then
3607     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3608     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3609   fi
3610   $as_echo "$as_me: error: $2" >&2
3611   as_fn_exit $as_status
3612 } # as_fn_error
3613
3614
3615 # as_fn_set_status STATUS
3616 # -----------------------
3617 # Set $? to STATUS, without forking.
3618 as_fn_set_status ()
3619 {
3620   return $1
3621 } # as_fn_set_status
3622
3623 # as_fn_exit STATUS
3624 # -----------------
3625 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3626 as_fn_exit ()
3627 {
3628   set +e
3629   as_fn_set_status $1
3630   exit $1
3631 } # as_fn_exit
3632
3633 # as_fn_unset VAR
3634 # ---------------
3635 # Portably unset VAR.
3636 as_fn_unset ()
3637 {
3638   { eval $1=; unset $1;}
3639 }
3640 as_unset=as_fn_unset
3641 # as_fn_append VAR VALUE
3642 # ----------------------
3643 # Append the text in VALUE to the end of the definition contained in VAR. Take
3644 # advantage of any shell optimizations that allow amortized linear growth over
3645 # repeated appends, instead of the typical quadratic growth present in naive
3646 # implementations.
3647 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3648   eval 'as_fn_append ()
3649   {
3650     eval $1+=\$2
3651   }'
3652 else
3653   as_fn_append ()
3654   {
3655     eval $1=\$$1\$2
3656   }
3657 fi # as_fn_append
3658
3659 # as_fn_arith ARG...
3660 # ------------------
3661 # Perform arithmetic evaluation on the ARGs, and store the result in the
3662 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3663 # must be portable across $(()) and expr.
3664 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3665   eval 'as_fn_arith ()
3666   {
3667     as_val=$(( $* ))
3668   }'
3669 else
3670   as_fn_arith ()
3671   {
3672     as_val=`expr "$@" || test $? -eq 1`
3673   }
3674 fi # as_fn_arith
3675
3676
3677 if expr a : '\(a\)' >/dev/null 2>&1 &&
3678    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3679   as_expr=expr
3680 else
3681   as_expr=false
3682 fi
3683
3684 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3685   as_basename=basename
3686 else
3687   as_basename=false
3688 fi
3689
3690 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3691   as_dirname=dirname
3692 else
3693   as_dirname=false
3694 fi
3695
3696 as_me=`$as_basename -- "$0" ||
3697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3698          X"$0" : 'X\(//\)$' \| \
3699          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3700 $as_echo X/"$0" |
3701     sed '/^.*\/\([^/][^/]*\)\/*$/{
3702             s//\1/
3703             q
3704           }
3705           /^X\/\(\/\/\)$/{
3706             s//\1/
3707             q
3708           }
3709           /^X\/\(\/\).*/{
3710             s//\1/
3711             q
3712           }
3713           s/.*/./; q'`
3714
3715 # Avoid depending upon Character Ranges.
3716 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3717 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3718 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3719 as_cr_digits='0123456789'
3720 as_cr_alnum=$as_cr_Letters$as_cr_digits
3721
3722 ECHO_C= ECHO_N= ECHO_T=
3723 case `echo -n x` in #(((((
3724 -n*)
3725   case `echo 'xy\c'` in
3726   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3727   xy)  ECHO_C='\c';;
3728   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3729        ECHO_T=' ';;
3730   esac;;
3731 *)
3732   ECHO_N='-n';;
3733 esac
3734
3735 rm -f conf$$ conf$$.exe conf$$.file
3736 if test -d conf$$.dir; then
3737   rm -f conf$$.dir/conf$$.file
3738 else
3739   rm -f conf$$.dir
3740   mkdir conf$$.dir 2>/dev/null
3741 fi
3742 if (echo >conf$$.file) 2>/dev/null; then
3743   if ln -s conf$$.file conf$$ 2>/dev/null; then
3744     as_ln_s='ln -s'
3745     # ... but there are two gotchas:
3746     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3747     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3748     # In both cases, we have to default to `cp -p'.
3749     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3750       as_ln_s='cp -p'
3751   elif ln conf$$.file conf$$ 2>/dev/null; then
3752     as_ln_s=ln
3753   else
3754     as_ln_s='cp -p'
3755   fi
3756 else
3757   as_ln_s='cp -p'
3758 fi
3759 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3760 rmdir conf$$.dir 2>/dev/null
3761
3762
3763 # as_fn_mkdir_p
3764 # -------------
3765 # Create "$as_dir" as a directory, including parents if necessary.
3766 as_fn_mkdir_p ()
3767 {
3768
3769   case $as_dir in #(
3770   -*) as_dir=./$as_dir;;
3771   esac
3772   test -d "$as_dir" || eval $as_mkdir_p || {
3773     as_dirs=
3774     while :; do
3775       case $as_dir in #(
3776       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3777       *) as_qdir=$as_dir;;
3778       esac
3779       as_dirs="'$as_qdir' $as_dirs"
3780       as_dir=`$as_dirname -- "$as_dir" ||
3781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3782          X"$as_dir" : 'X\(//\)[^/]' \| \
3783          X"$as_dir" : 'X\(//\)$' \| \
3784          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3785 $as_echo X"$as_dir" |
3786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3787             s//\1/
3788             q
3789           }
3790           /^X\(\/\/\)[^/].*/{
3791             s//\1/
3792             q
3793           }
3794           /^X\(\/\/\)$/{
3795             s//\1/
3796             q
3797           }
3798           /^X\(\/\).*/{
3799             s//\1/
3800             q
3801           }
3802           s/.*/./; q'`
3803       test -d "$as_dir" && break
3804     done
3805     test -z "$as_dirs" || eval "mkdir $as_dirs"
3806   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3807
3808
3809 } # as_fn_mkdir_p
3810 if mkdir -p . 2>/dev/null; then
3811   as_mkdir_p='mkdir -p "$as_dir"'
3812 else
3813   test -d ./-p && rmdir ./-p
3814   as_mkdir_p=false
3815 fi
3816
3817 if test -x / >/dev/null 2>&1; then
3818   as_test_x='test -x'
3819 else
3820   if ls -dL / >/dev/null 2>&1; then
3821     as_ls_L_option=L
3822   else
3823     as_ls_L_option=
3824   fi
3825   as_test_x='
3826     eval sh -c '\''
3827       if test -d "$1"; then
3828         test -d "$1/.";
3829       else
3830         case $1 in #(
3831         -*)set "./$1";;
3832         esac;
3833         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3834         ???[sx]*):;;*)false;;esac;fi
3835     '\'' sh
3836   '
3837 fi
3838 as_executable_p=$as_test_x
3839
3840 # Sed expression to map a string onto a valid CPP name.
3841 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3842
3843 # Sed expression to map a string onto a valid variable name.
3844 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3845
3846
3847 exec 6>&1
3848 ## ----------------------------------- ##
3849 ## Main body of $CONFIG_STATUS script. ##
3850 ## ----------------------------------- ##
3851 _ASEOF
3852 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3853
3854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3855 # Save the log message, to keep $0 and so on meaningful, and to
3856 # report actual input values of CONFIG_FILES etc. instead of their
3857 # values after options handling.
3858 ac_log="
3859 This file was extended by ctdlsh $as_me 1.0, which was
3860 generated by GNU Autoconf 2.67.  Invocation command line was
3861
3862   CONFIG_FILES    = $CONFIG_FILES
3863   CONFIG_HEADERS  = $CONFIG_HEADERS
3864   CONFIG_LINKS    = $CONFIG_LINKS
3865   CONFIG_COMMANDS = $CONFIG_COMMANDS
3866   $ $0 $@
3867
3868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3869 "
3870
3871 _ACEOF
3872
3873 case $ac_config_files in *"
3874 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3875 esac
3876
3877 case $ac_config_headers in *"
3878 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3879 esac
3880
3881
3882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3883 # Files that config.status was made for.
3884 config_files="$ac_config_files"
3885 config_headers="$ac_config_headers"
3886 config_commands="$ac_config_commands"
3887
3888 _ACEOF
3889
3890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3891 ac_cs_usage="\
3892 \`$as_me' instantiates files and other configuration actions
3893 from templates according to the current configuration.  Unless the files
3894 and actions are specified as TAGs, all are instantiated by default.
3895
3896 Usage: $0 [OPTION]... [TAG]...
3897
3898   -h, --help       print this help, then exit
3899   -V, --version    print version number and configuration settings, then exit
3900       --config     print configuration, then exit
3901   -q, --quiet, --silent
3902                    do not print progress messages
3903   -d, --debug      don't remove temporary files
3904       --recheck    update $as_me by reconfiguring in the same conditions
3905       --file=FILE[:TEMPLATE]
3906                    instantiate the configuration file FILE
3907       --header=FILE[:TEMPLATE]
3908                    instantiate the configuration header FILE
3909
3910 Configuration files:
3911 $config_files
3912
3913 Configuration headers:
3914 $config_headers
3915
3916 Configuration commands:
3917 $config_commands
3918
3919 Report bugs to <bug-automake@gnu.org>."
3920
3921 _ACEOF
3922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3923 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3924 ac_cs_version="\\
3925 ctdlsh config.status 1.0
3926 configured by $0, generated by GNU Autoconf 2.67,
3927   with options \\"\$ac_cs_config\\"
3928
3929 Copyright (C) 2010 Free Software Foundation, Inc.
3930 This config.status script is free software; the Free Software Foundation
3931 gives unlimited permission to copy, distribute and modify it."
3932
3933 ac_pwd='$ac_pwd'
3934 srcdir='$srcdir'
3935 INSTALL='$INSTALL'
3936 AWK='$AWK'
3937 test -n "\$AWK" || AWK=awk
3938 _ACEOF
3939
3940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3941 # The default lists apply if the user does not specify any file.
3942 ac_need_defaults=:
3943 while test $# != 0
3944 do
3945   case $1 in
3946   --*=?*)
3947     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3948     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3949     ac_shift=:
3950     ;;
3951   --*=)
3952     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3953     ac_optarg=
3954     ac_shift=:
3955     ;;
3956   *)
3957     ac_option=$1
3958     ac_optarg=$2
3959     ac_shift=shift
3960     ;;
3961   esac
3962
3963   case $ac_option in
3964   # Handling of the options.
3965   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3966     ac_cs_recheck=: ;;
3967   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3968     $as_echo "$ac_cs_version"; exit ;;
3969   --config | --confi | --conf | --con | --co | --c )
3970     $as_echo "$ac_cs_config"; exit ;;
3971   --debug | --debu | --deb | --de | --d | -d )
3972     debug=: ;;
3973   --file | --fil | --fi | --f )
3974     $ac_shift
3975     case $ac_optarg in
3976     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3977     '') as_fn_error $? "missing file argument" ;;
3978     esac
3979     as_fn_append CONFIG_FILES " '$ac_optarg'"
3980     ac_need_defaults=false;;
3981   --header | --heade | --head | --hea )
3982     $ac_shift
3983     case $ac_optarg in
3984     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3985     esac
3986     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3987     ac_need_defaults=false;;
3988   --he | --h)
3989     # Conflict between --help and --header
3990     as_fn_error $? "ambiguous option: \`$1'
3991 Try \`$0 --help' for more information.";;
3992   --help | --hel | -h )
3993     $as_echo "$ac_cs_usage"; exit ;;
3994   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3995   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3996     ac_cs_silent=: ;;
3997
3998   # This is an error.
3999   -*) as_fn_error $? "unrecognized option: \`$1'
4000 Try \`$0 --help' for more information." ;;
4001
4002   *) as_fn_append ac_config_targets " $1"
4003      ac_need_defaults=false ;;
4004
4005   esac
4006   shift
4007 done
4008
4009 ac_configure_extra_args=
4010
4011 if $ac_cs_silent; then
4012   exec 6>/dev/null
4013   ac_configure_extra_args="$ac_configure_extra_args --silent"
4014 fi
4015
4016 _ACEOF
4017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4018 if \$ac_cs_recheck; then
4019   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4020   shift
4021   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4022   CONFIG_SHELL='$SHELL'
4023   export CONFIG_SHELL
4024   exec "\$@"
4025 fi
4026
4027 _ACEOF
4028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4029 exec 5>>config.log
4030 {
4031   echo
4032   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4033 ## Running $as_me. ##
4034 _ASBOX
4035   $as_echo "$ac_log"
4036 } >&5
4037
4038 _ACEOF
4039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4040 #
4041 # INIT-COMMANDS
4042 #
4043 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4044
4045 _ACEOF
4046
4047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4048
4049 # Handling of arguments.
4050 for ac_config_target in $ac_config_targets
4051 do
4052   case $ac_config_target in
4053     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4054     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4055     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4056     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4057
4058   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
4059   esac
4060 done
4061
4062
4063 # If the user did not use the arguments to specify the items to instantiate,
4064 # then the envvar interface is used.  Set only those that are not.
4065 # We use the long form for the default assignment because of an extremely
4066 # bizarre bug on SunOS 4.1.3.
4067 if $ac_need_defaults; then
4068   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4069   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4070   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4071 fi
4072
4073 # Have a temporary directory for convenience.  Make it in the build tree
4074 # simply because there is no reason against having it here, and in addition,
4075 # creating and moving files from /tmp can sometimes cause problems.
4076 # Hook for its removal unless debugging.
4077 # Note that there is a small window in which the directory will not be cleaned:
4078 # after its creation but before its name has been assigned to `$tmp'.
4079 $debug ||
4080 {
4081   tmp=
4082   trap 'exit_status=$?
4083   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4084 ' 0
4085   trap 'as_fn_exit 1' 1 2 13 15
4086 }
4087 # Create a (secure) tmp directory for tmp files.
4088
4089 {
4090   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4091   test -n "$tmp" && test -d "$tmp"
4092 }  ||
4093 {
4094   tmp=./conf$$-$RANDOM
4095   (umask 077 && mkdir "$tmp")
4096 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4097
4098 # Set up the scripts for CONFIG_FILES section.
4099 # No need to generate them if there are no CONFIG_FILES.
4100 # This happens for instance with `./config.status config.h'.
4101 if test -n "$CONFIG_FILES"; then
4102
4103
4104 ac_cr=`echo X | tr X '\015'`
4105 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4106 # But we know of no other shell where ac_cr would be empty at this
4107 # point, so we can use a bashism as a fallback.
4108 if test "x$ac_cr" = x; then
4109   eval ac_cr=\$\'\\r\'
4110 fi
4111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4113   ac_cs_awk_cr='\\r'
4114 else
4115   ac_cs_awk_cr=$ac_cr
4116 fi
4117
4118 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4119 _ACEOF
4120
4121
4122 {
4123   echo "cat >conf$$subs.awk <<_ACEOF" &&
4124   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4125   echo "_ACEOF"
4126 } >conf$$subs.sh ||
4127   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4128 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4129 ac_delim='%!_!# '
4130 for ac_last_try in false false false false false :; do
4131   . ./conf$$subs.sh ||
4132     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4133
4134   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4135   if test $ac_delim_n = $ac_delim_num; then
4136     break
4137   elif $ac_last_try; then
4138     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4139   else
4140     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4141   fi
4142 done
4143 rm -f conf$$subs.sh
4144
4145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4146 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4147 _ACEOF
4148 sed -n '
4149 h
4150 s/^/S["/; s/!.*/"]=/
4151 p
4152 g
4153 s/^[^!]*!//
4154 :repl
4155 t repl
4156 s/'"$ac_delim"'$//
4157 t delim
4158 :nl
4159 h
4160 s/\(.\{148\}\)..*/\1/
4161 t more1
4162 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4163 p
4164 n
4165 b repl
4166 :more1
4167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4168 p
4169 g
4170 s/.\{148\}//
4171 t nl
4172 :delim
4173 h
4174 s/\(.\{148\}\)..*/\1/
4175 t more2
4176 s/["\\]/\\&/g; s/^/"/; s/$/"/
4177 p
4178 b
4179 :more2
4180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4181 p
4182 g
4183 s/.\{148\}//
4184 t delim
4185 ' <conf$$subs.awk | sed '
4186 /^[^""]/{
4187   N
4188   s/\n//
4189 }
4190 ' >>$CONFIG_STATUS || ac_write_fail=1
4191 rm -f conf$$subs.awk
4192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4193 _ACAWK
4194 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4195   for (key in S) S_is_set[key] = 1
4196   FS = "\a"
4197
4198 }
4199 {
4200   line = $ 0
4201   nfields = split(line, field, "@")
4202   substed = 0
4203   len = length(field[1])
4204   for (i = 2; i < nfields; i++) {
4205     key = field[i]
4206     keylen = length(key)
4207     if (S_is_set[key]) {
4208       value = S[key]
4209       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4210       len += length(value) + length(field[++i])
4211       substed = 1
4212     } else
4213       len += 1 + keylen
4214   }
4215
4216   print line
4217 }
4218
4219 _ACAWK
4220 _ACEOF
4221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4222 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4223   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4224 else
4225   cat
4226 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4227   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4228 _ACEOF
4229
4230 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4231 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4232 # trailing colons and then remove the whole line if VPATH becomes empty
4233 # (actually we leave an empty line to preserve line numbers).
4234 if test "x$srcdir" = x.; then
4235   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
4236 h
4237 s///
4238 s/^/:/
4239 s/[      ]*$/:/
4240 s/:\$(srcdir):/:/g
4241 s/:\${srcdir}:/:/g
4242 s/:@srcdir@:/:/g
4243 s/^:*//
4244 s/:*$//
4245 x
4246 s/\(=[   ]*\).*/\1/
4247 G
4248 s/\n//
4249 s/^[^=]*=[       ]*$//
4250 }'
4251 fi
4252
4253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4254 fi # test -n "$CONFIG_FILES"
4255
4256 # Set up the scripts for CONFIG_HEADERS section.
4257 # No need to generate them if there are no CONFIG_HEADERS.
4258 # This happens for instance with `./config.status Makefile'.
4259 if test -n "$CONFIG_HEADERS"; then
4260 cat >"$tmp/defines.awk" <<\_ACAWK ||
4261 BEGIN {
4262 _ACEOF
4263
4264 # Transform confdefs.h into an awk script `defines.awk', embedded as
4265 # here-document in config.status, that substitutes the proper values into
4266 # config.h.in to produce config.h.
4267
4268 # Create a delimiter string that does not exist in confdefs.h, to ease
4269 # handling of long lines.
4270 ac_delim='%!_!# '
4271 for ac_last_try in false false :; do
4272   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
4273   if test -z "$ac_t"; then
4274     break
4275   elif $ac_last_try; then
4276     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4277   else
4278     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4279   fi
4280 done
4281
4282 # For the awk script, D is an array of macro values keyed by name,
4283 # likewise P contains macro parameters if any.  Preserve backslash
4284 # newline sequences.
4285
4286 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4287 sed -n '
4288 s/.\{148\}/&'"$ac_delim"'/g
4289 t rset
4290 :rset
4291 s/^[     ]*#[    ]*define[       ][      ]*/ /
4292 t def
4293 d
4294 :def
4295 s/\\$//
4296 t bsnl
4297 s/["\\]/\\&/g
4298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
4299 D["\1"]=" \3"/p
4300 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
4301 d
4302 :bsnl
4303 s/["\\]/\\&/g
4304 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
4305 D["\1"]=" \3\\\\\\n"\\/p
4306 t cont
4307 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4308 t cont
4309 d
4310 :cont
4311 n
4312 s/.\{148\}/&'"$ac_delim"'/g
4313 t clear
4314 :clear
4315 s/\\$//
4316 t bsnlc
4317 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4318 d
4319 :bsnlc
4320 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4321 b cont
4322 ' <confdefs.h | sed '
4323 s/'"$ac_delim"'/"\\\
4324 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4325
4326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4327   for (key in D) D_is_set[key] = 1
4328   FS = "\a"
4329 }
4330 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4331   line = \$ 0
4332   split(line, arg, " ")
4333   if (arg[1] == "#") {
4334     defundef = arg[2]
4335     mac1 = arg[3]
4336   } else {
4337     defundef = substr(arg[1], 2)
4338     mac1 = arg[2]
4339   }
4340   split(mac1, mac2, "(") #)
4341   macro = mac2[1]
4342   prefix = substr(line, 1, index(line, defundef) - 1)
4343   if (D_is_set[macro]) {
4344     # Preserve the white space surrounding the "#".
4345     print prefix "define", macro P[macro] D[macro]
4346     next
4347   } else {
4348     # Replace #undef with comments.  This is necessary, for example,
4349     # in the case of _POSIX_SOURCE, which is predefined and required
4350     # on some systems where configure will not decide to define it.
4351     if (defundef == "undef") {
4352       print "/*", prefix defundef, macro, "*/"
4353       next
4354     }
4355   }
4356 }
4357 { print }
4358 _ACAWK
4359 _ACEOF
4360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4361   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4362 fi # test -n "$CONFIG_HEADERS"
4363
4364
4365 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
4366 shift
4367 for ac_tag
4368 do
4369   case $ac_tag in
4370   :[FHLC]) ac_mode=$ac_tag; continue;;
4371   esac
4372   case $ac_mode$ac_tag in
4373   :[FHL]*:*);;
4374   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
4375   :[FH]-) ac_tag=-:-;;
4376   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4377   esac
4378   ac_save_IFS=$IFS
4379   IFS=:
4380   set x $ac_tag
4381   IFS=$ac_save_IFS
4382   shift
4383   ac_file=$1
4384   shift
4385
4386   case $ac_mode in
4387   :L) ac_source=$1;;
4388   :[FH])
4389     ac_file_inputs=
4390     for ac_f
4391     do
4392       case $ac_f in
4393       -) ac_f="$tmp/stdin";;
4394       *) # Look for the file first in the build tree, then in the source tree
4395          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4396          # because $ac_f cannot contain `:'.
4397          test -f "$ac_f" ||
4398            case $ac_f in
4399            [\\/$]*) false;;
4400            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4401            esac ||
4402            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
4403       esac
4404       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4405       as_fn_append ac_file_inputs " '$ac_f'"
4406     done
4407
4408     # Let's still pretend it is `configure' which instantiates (i.e., don't
4409     # use $as_me), people would be surprised to read:
4410     #    /* config.h.  Generated by config.status.  */
4411     configure_input='Generated from '`
4412           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4413         `' by configure.'
4414     if test x"$ac_file" != x-; then
4415       configure_input="$ac_file.  $configure_input"
4416       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4417 $as_echo "$as_me: creating $ac_file" >&6;}
4418     fi
4419     # Neutralize special characters interpreted by sed in replacement strings.
4420     case $configure_input in #(
4421     *\&* | *\|* | *\\* )
4422        ac_sed_conf_input=`$as_echo "$configure_input" |
4423        sed 's/[\\\\&|]/\\\\&/g'`;; #(
4424     *) ac_sed_conf_input=$configure_input;;
4425     esac
4426
4427     case $ac_tag in
4428     *:-:* | *:-) cat >"$tmp/stdin" \
4429       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
4430     esac
4431     ;;
4432   esac
4433
4434   ac_dir=`$as_dirname -- "$ac_file" ||
4435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4436          X"$ac_file" : 'X\(//\)[^/]' \| \
4437          X"$ac_file" : 'X\(//\)$' \| \
4438          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4439 $as_echo X"$ac_file" |
4440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4441             s//\1/
4442             q
4443           }
4444           /^X\(\/\/\)[^/].*/{
4445             s//\1/
4446             q
4447           }
4448           /^X\(\/\/\)$/{
4449             s//\1/
4450             q
4451           }
4452           /^X\(\/\).*/{
4453             s//\1/
4454             q
4455           }
4456           s/.*/./; q'`
4457   as_dir="$ac_dir"; as_fn_mkdir_p
4458   ac_builddir=.
4459
4460 case "$ac_dir" in
4461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4462 *)
4463   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4464   # A ".." for each directory in $ac_dir_suffix.
4465   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4466   case $ac_top_builddir_sub in
4467   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4468   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4469   esac ;;
4470 esac
4471 ac_abs_top_builddir=$ac_pwd
4472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4473 # for backward compatibility:
4474 ac_top_builddir=$ac_top_build_prefix
4475
4476 case $srcdir in
4477   .)  # We are building in place.
4478     ac_srcdir=.
4479     ac_top_srcdir=$ac_top_builddir_sub
4480     ac_abs_top_srcdir=$ac_pwd ;;
4481   [\\/]* | ?:[\\/]* )  # Absolute name.
4482     ac_srcdir=$srcdir$ac_dir_suffix;
4483     ac_top_srcdir=$srcdir
4484     ac_abs_top_srcdir=$srcdir ;;
4485   *) # Relative name.
4486     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4487     ac_top_srcdir=$ac_top_build_prefix$srcdir
4488     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4489 esac
4490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4491
4492
4493   case $ac_mode in
4494   :F)
4495   #
4496   # CONFIG_FILE
4497   #
4498
4499   case $INSTALL in
4500   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4501   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4502   esac
4503 _ACEOF
4504
4505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4506 # If the template does not know about datarootdir, expand it.
4507 # FIXME: This hack should be removed a few years after 2.60.
4508 ac_datarootdir_hack=; ac_datarootdir_seen=
4509 ac_sed_dataroot='
4510 /datarootdir/ {
4511   p
4512   q
4513 }
4514 /@datadir@/p
4515 /@docdir@/p
4516 /@infodir@/p
4517 /@localedir@/p
4518 /@mandir@/p'
4519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4520 *datarootdir*) ac_datarootdir_seen=yes;;
4521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4522   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4523 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4524 _ACEOF
4525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4526   ac_datarootdir_hack='
4527   s&@datadir@&$datadir&g
4528   s&@docdir@&$docdir&g
4529   s&@infodir@&$infodir&g
4530   s&@localedir@&$localedir&g
4531   s&@mandir@&$mandir&g
4532   s&\\\${datarootdir}&$datarootdir&g' ;;
4533 esac
4534 _ACEOF
4535
4536 # Neutralize VPATH when `$srcdir' = `.'.
4537 # Shell code in configure.ac might set extrasub.
4538 # FIXME: do we really want to maintain this feature?
4539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4540 ac_sed_extra="$ac_vpsub
4541 $extrasub
4542 _ACEOF
4543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4544 :t
4545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4546 s|@configure_input@|$ac_sed_conf_input|;t t
4547 s&@top_builddir@&$ac_top_builddir_sub&;t t
4548 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4549 s&@srcdir@&$ac_srcdir&;t t
4550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4551 s&@top_srcdir@&$ac_top_srcdir&;t t
4552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4553 s&@builddir@&$ac_builddir&;t t
4554 s&@abs_builddir@&$ac_abs_builddir&;t t
4555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4556 s&@INSTALL@&$ac_INSTALL&;t t
4557 $ac_datarootdir_hack
4558 "
4559 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4560   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4561
4562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4563   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4564   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4566 which seems to be undefined.  Please make sure it is defined" >&5
4567 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4568 which seems to be undefined.  Please make sure it is defined" >&2;}
4569
4570   rm -f "$tmp/stdin"
4571   case $ac_file in
4572   -) cat "$tmp/out" && rm -f "$tmp/out";;
4573   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4574   esac \
4575   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4576  ;;
4577   :H)
4578   #
4579   # CONFIG_HEADER
4580   #
4581   if test x"$ac_file" != x-; then
4582     {
4583       $as_echo "/* $configure_input  */" \
4584       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
4585     } >"$tmp/config.h" \
4586       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4587     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
4588       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4590     else
4591       rm -f "$ac_file"
4592       mv "$tmp/config.h" "$ac_file" \
4593         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4594     fi
4595   else
4596     $as_echo "/* $configure_input  */" \
4597       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4598       || as_fn_error $? "could not create -" "$LINENO" 5
4599   fi
4600 # Compute "$ac_file"'s index in $config_headers.
4601 _am_stamp_count=1
4602 for _am_header in $config_headers :; do
4603   case $_am_header in
4604     "$ac_file" | "$ac_file":* )
4605       break ;;
4606     * )
4607       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4608   esac
4609 done
4610 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
4611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4612          X"$ac_file" : 'X\(//\)[^/]' \| \
4613          X"$ac_file" : 'X\(//\)$' \| \
4614          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4615 $as_echo X"$ac_file" |
4616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4617             s//\1/
4618             q
4619           }
4620           /^X\(\/\/\)[^/].*/{
4621             s//\1/
4622             q
4623           }
4624           /^X\(\/\/\)$/{
4625             s//\1/
4626             q
4627           }
4628           /^X\(\/\).*/{
4629             s//\1/
4630             q
4631           }
4632           s/.*/./; q'`/stamp-h$_am_stamp_count
4633  ;;
4634
4635   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4636 $as_echo "$as_me: executing $ac_file commands" >&6;}
4637  ;;
4638   esac
4639
4640
4641   case $ac_file$ac_mode in
4642     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4643   # Strip MF so we end up with the name of the file.
4644   mf=`echo "$mf" | sed -e 's/:.*$//'`
4645   # Check whether this is an Automake generated Makefile or not.
4646   # We used to match only the files named `Makefile.in', but
4647   # some people rename them; so instead we look at the file content.
4648   # Grep'ing the first line is not enough: some people post-process
4649   # each Makefile.in and add a new line on top of each file to say so.
4650   # So let's grep whole file.
4651   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4652     dirpart=`$as_dirname -- "$mf" ||
4653 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4654          X"$mf" : 'X\(//\)[^/]' \| \
4655          X"$mf" : 'X\(//\)$' \| \
4656          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
4657 $as_echo X"$mf" |
4658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4659             s//\1/
4660             q
4661           }
4662           /^X\(\/\/\)[^/].*/{
4663             s//\1/
4664             q
4665           }
4666           /^X\(\/\/\)$/{
4667             s//\1/
4668             q
4669           }
4670           /^X\(\/\).*/{
4671             s//\1/
4672             q
4673           }
4674           s/.*/./; q'`
4675   else
4676     continue
4677   fi
4678   # Extract the definition of DEPDIR, am__include, and am__quote
4679   # from the Makefile without running `make'.
4680   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4681   test -z "$DEPDIR" && continue
4682   am__include=`sed -n 's/^am__include = //p' < "$mf"`
4683   test -z "am__include" && continue
4684   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4685   # When using ansi2knr, U may be empty or an underscore; expand it
4686   U=`sed -n 's/^U = //p' < "$mf"`
4687   # Find all dependency output files, they are included files with
4688   # $(DEPDIR) in their names.  We invoke sed twice because it is the
4689   # simplest approach to changing $(DEPDIR) to its actual value in the
4690   # expansion.
4691   for file in `sed -n "
4692     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4693        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4694     # Make sure the directory exists.
4695     test -f "$dirpart/$file" && continue
4696     fdir=`$as_dirname -- "$file" ||
4697 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4698          X"$file" : 'X\(//\)[^/]' \| \
4699          X"$file" : 'X\(//\)$' \| \
4700          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
4701 $as_echo X"$file" |
4702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4703             s//\1/
4704             q
4705           }
4706           /^X\(\/\/\)[^/].*/{
4707             s//\1/
4708             q
4709           }
4710           /^X\(\/\/\)$/{
4711             s//\1/
4712             q
4713           }
4714           /^X\(\/\).*/{
4715             s//\1/
4716             q
4717           }
4718           s/.*/./; q'`
4719     as_dir=$dirpart/$fdir; as_fn_mkdir_p
4720     # echo "creating $dirpart/$file"
4721     echo '# dummy' > "$dirpart/$file"
4722   done
4723 done
4724  ;;
4725
4726   esac
4727 done # for ac_tag
4728
4729
4730 as_fn_exit 0
4731 _ACEOF
4732 ac_clean_files=$ac_clean_files_save
4733
4734 test $ac_write_fail = 0 ||
4735   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4736
4737
4738 # configure is writing to config.log, and then calls config.status.
4739 # config.status does its own redirection, appending to config.log.
4740 # Unfortunately, on DOS this fails, as config.log is still kept open
4741 # by configure, so config.status won't be able to write to it; its
4742 # output is simply discarded.  So we exec the FD to /dev/null,
4743 # effectively closing config.log, so it can be properly (re)opened and
4744 # appended to by config.status.  When coming back to configure, we
4745 # need to make the FD available again.
4746 if test "$no_create" != yes; then
4747   ac_cs_success=:
4748   ac_config_status_args=
4749   test "$silent" = yes &&
4750     ac_config_status_args="$ac_config_status_args --quiet"
4751   exec 5>/dev/null
4752   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4753   exec 5>>config.log
4754   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4755   # would make configure fail if this is the last instruction.
4756   $ac_cs_success || as_fn_exit 1
4757 fi
4758 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4760 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4761 fi
4762