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