charguess 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +134 -0
  3. data/PostInstall.txt +7 -0
  4. data/README.rdoc +26 -0
  5. data/Rakefile +25 -0
  6. data/ext/charguess/charguess.c +29 -0
  7. data/ext/charguess/extconf.rb +11 -0
  8. data/ext/libcharguess/cpp/.deps/EUCJPProber.Plo +1 -0
  9. data/ext/libcharguess/cpp/.deps/EUCJPProber.Po +87 -0
  10. data/ext/libcharguess/cpp/.deps/EUCKRProber.Plo +1 -0
  11. data/ext/libcharguess/cpp/.deps/EUCKRProber.Po +85 -0
  12. data/ext/libcharguess/cpp/.deps/EUCTWProber.Plo +1 -0
  13. data/ext/libcharguess/cpp/.deps/EUCTWProber.Po +85 -0
  14. data/ext/libcharguess/cpp/.deps/EscCharsetProber.Plo +1 -0
  15. data/ext/libcharguess/cpp/.deps/EscCharsetProber.Po +83 -0
  16. data/ext/libcharguess/cpp/.deps/EscSM.Plo +1 -0
  17. data/ext/libcharguess/cpp/.deps/EscSM.Po +77 -0
  18. data/ext/libcharguess/cpp/.deps/GB2312Prober.Plo +1 -0
  19. data/ext/libcharguess/cpp/.deps/GB2312Prober.Po +85 -0
  20. data/ext/libcharguess/cpp/.deps/LangBulgarianModel.Plo +1 -0
  21. data/ext/libcharguess/cpp/.deps/LangBulgarianModel.Po +78 -0
  22. data/ext/libcharguess/cpp/.deps/LangCyrillicModel.Plo +1 -0
  23. data/ext/libcharguess/cpp/.deps/LangCyrillicModel.Po +78 -0
  24. data/ext/libcharguess/cpp/.deps/LangGreekModel.Plo +1 -0
  25. data/ext/libcharguess/cpp/.deps/LangGreekModel.Po +78 -0
  26. data/ext/libcharguess/cpp/.deps/LangHungarianModel.Plo +1 -0
  27. data/ext/libcharguess/cpp/.deps/LangHungarianModel.Po +78 -0
  28. data/ext/libcharguess/cpp/.deps/LangThaiModel.Plo +1 -0
  29. data/ext/libcharguess/cpp/.deps/LangThaiModel.Po +78 -0
  30. data/ext/libcharguess/cpp/.deps/Latin1Prober.Plo +1 -0
  31. data/ext/libcharguess/cpp/.deps/Latin1Prober.Po +78 -0
  32. data/ext/libcharguess/cpp/.deps/MBCSGroupProber.Plo +1 -0
  33. data/ext/libcharguess/cpp/.deps/MBCSGroupProber.Po +102 -0
  34. data/ext/libcharguess/cpp/.deps/MBCSSM.Plo +1 -0
  35. data/ext/libcharguess/cpp/.deps/MBCSSM.Po +77 -0
  36. data/ext/libcharguess/cpp/.deps/SBCSGroupProber.Plo +1 -0
  37. data/ext/libcharguess/cpp/.deps/SBCSGroupProber.Po +80 -0
  38. data/ext/libcharguess/cpp/.deps/SBCharsetProber.Plo +1 -0
  39. data/ext/libcharguess/cpp/.deps/SBCharsetProber.Po +78 -0
  40. data/ext/libcharguess/cpp/.deps/SJISProber.Plo +1 -0
  41. data/ext/libcharguess/cpp/.deps/SJISProber.Po +86 -0
  42. data/ext/libcharguess/cpp/.deps/UTF8Prober.Plo +1 -0
  43. data/ext/libcharguess/cpp/.deps/UTF8Prober.Po +82 -0
  44. data/ext/libcharguess/cpp/.deps/big5Prober.Plo +1 -0
  45. data/ext/libcharguess/cpp/.deps/big5Prober.Po +84 -0
  46. data/ext/libcharguess/cpp/.deps/charDistribution.Plo +1 -0
  47. data/ext/libcharguess/cpp/.deps/charDistribution.Po +87 -0
  48. data/ext/libcharguess/cpp/.deps/chardet.Plo +1 -0
  49. data/ext/libcharguess/cpp/.deps/chardet.Po +84 -0
  50. data/ext/libcharguess/cpp/.deps/charguess.Po +77 -0
  51. data/ext/libcharguess/cpp/.deps/jpCntx.Plo +1 -0
  52. data/ext/libcharguess/cpp/.deps/jpCntx.Po +75 -0
  53. data/ext/libcharguess/cpp/.deps/universal.Plo +1 -0
  54. data/ext/libcharguess/cpp/.deps/universal.Po +111 -0
  55. data/ext/libcharguess/cpp/AUTHORS +3 -0
  56. data/ext/libcharguess/cpp/Big5Freq.tab +928 -0
  57. data/ext/libcharguess/cpp/COPYING +340 -0
  58. data/ext/libcharguess/cpp/COPYRIGHT +20 -0
  59. data/ext/libcharguess/cpp/ChangeLog +0 -0
  60. data/ext/libcharguess/cpp/EUCJPProber.cpp +80 -0
  61. data/ext/libcharguess/cpp/EUCJPProber.h +58 -0
  62. data/ext/libcharguess/cpp/EUCKRFreq.tab +615 -0
  63. data/ext/libcharguess/cpp/EUCKRProber.cpp +80 -0
  64. data/ext/libcharguess/cpp/EUCKRProber.h +54 -0
  65. data/ext/libcharguess/cpp/EUCTWFreq.tab +448 -0
  66. data/ext/libcharguess/cpp/EUCTWProber.cpp +79 -0
  67. data/ext/libcharguess/cpp/EUCTWProber.h +53 -0
  68. data/ext/libcharguess/cpp/EscCharsetProber.cpp +89 -0
  69. data/ext/libcharguess/cpp/EscCharsetProber.h +49 -0
  70. data/ext/libcharguess/cpp/EscSM.cpp +244 -0
  71. data/ext/libcharguess/cpp/GB2312Freq.tab +476 -0
  72. data/ext/libcharguess/cpp/GB2312Prober.cpp +84 -0
  73. data/ext/libcharguess/cpp/GB2312Prober.h +56 -0
  74. data/ext/libcharguess/cpp/INSTALL +229 -0
  75. data/ext/libcharguess/cpp/JISFreq.tab +574 -0
  76. data/ext/libcharguess/cpp/LICENSE +504 -0
  77. data/ext/libcharguess/cpp/LangBulgarianModel.cpp +230 -0
  78. data/ext/libcharguess/cpp/LangCyrillicModel.cpp +340 -0
  79. data/ext/libcharguess/cpp/LangGreekModel.cpp +229 -0
  80. data/ext/libcharguess/cpp/LangHungarianModel.cpp +228 -0
  81. data/ext/libcharguess/cpp/LangThaiModel.cpp +206 -0
  82. data/ext/libcharguess/cpp/Latin1Prober.cpp +190 -0
  83. data/ext/libcharguess/cpp/Latin1Prober.h +49 -0
  84. data/ext/libcharguess/cpp/MBCSGroupProber.cpp +186 -0
  85. data/ext/libcharguess/cpp/MBCSGroupProber.h +58 -0
  86. data/ext/libcharguess/cpp/MBCSSM.cpp +610 -0
  87. data/ext/libcharguess/cpp/Makefile.am +45 -0
  88. data/ext/libcharguess/cpp/Makefile.in +608 -0
  89. data/ext/libcharguess/cpp/NEWS +0 -0
  90. data/ext/libcharguess/cpp/README +0 -0
  91. data/ext/libcharguess/cpp/SBCSGroupProber.cpp +244 -0
  92. data/ext/libcharguess/cpp/SBCSGroupProber.h +54 -0
  93. data/ext/libcharguess/cpp/SBCharsetProber.cpp +100 -0
  94. data/ext/libcharguess/cpp/SBCharsetProber.h +89 -0
  95. data/ext/libcharguess/cpp/SJISProber.cpp +86 -0
  96. data/ext/libcharguess/cpp/SJISProber.h +60 -0
  97. data/ext/libcharguess/cpp/UTF8Prober.cpp +75 -0
  98. data/ext/libcharguess/cpp/UTF8Prober.h +46 -0
  99. data/ext/libcharguess/cpp/aclocal.m4 +1008 -0
  100. data/ext/libcharguess/cpp/autogen.sh +153 -0
  101. data/ext/libcharguess/cpp/big5Prober.cpp +76 -0
  102. data/ext/libcharguess/cpp/big5Prober.h +53 -0
  103. data/ext/libcharguess/cpp/charDistribution.cpp +90 -0
  104. data/ext/libcharguess/cpp/charDistribution.h +219 -0
  105. data/ext/libcharguess/cpp/charguess.cpp +56 -0
  106. data/ext/libcharguess/cpp/charguess.h +23 -0
  107. data/ext/libcharguess/cpp/charsetProber.h +50 -0
  108. data/ext/libcharguess/cpp/codingStateMachine.h +92 -0
  109. data/ext/libcharguess/cpp/config.h +36 -0
  110. data/ext/libcharguess/cpp/config.h.in +35 -0
  111. data/ext/libcharguess/cpp/config.status +1075 -0
  112. data/ext/libcharguess/cpp/configure +5226 -0
  113. data/ext/libcharguess/cpp/configure.in +49 -0
  114. data/ext/libcharguess/cpp/depcomp +472 -0
  115. data/ext/libcharguess/cpp/fix_copyright +32 -0
  116. data/ext/libcharguess/cpp/install-sh +294 -0
  117. data/ext/libcharguess/cpp/jpCntx.cpp +194 -0
  118. data/ext/libcharguess/cpp/jpCntx.h +100 -0
  119. data/ext/libcharguess/cpp/missing +336 -0
  120. data/ext/libcharguess/cpp/mkinstalldirs +111 -0
  121. data/ext/libcharguess/cpp/pkgInt.h +72 -0
  122. data/ext/libcharguess/cpp/stamp-h1 +1 -0
  123. data/ext/libcharguess/cpp/test/test.cpp +78 -0
  124. data/ext/libcharguess/cpp/types.h +41 -0
  125. data/ext/libcharguess/cpp/universal.cpp +273 -0
  126. data/ext/libcharguess/cpp/universal.h +65 -0
  127. data/script/console +9 -0
  128. data/script/destroy +14 -0
  129. data/script/generate +14 -0
  130. data/tasks/extconf/charguess.rake +47 -0
  131. data/tasks/extconf.rake +13 -0
  132. data/test/test_charguess.rb +7 -0
  133. data/test/test_charguess_extn.rb +10 -0
  134. data/test/test_helper.rb +3 -0
  135. metadata +219 -0
@@ -0,0 +1,1075 @@
1
+ #! /bin/sh
2
+ # Generated by configure.
3
+ # Run this file to recreate the current configuration.
4
+ # Compiler output produced by configure, useful for debugging
5
+ # configure, is in config.log if it exists.
6
+
7
+ debug=false
8
+ ac_cs_recheck=false
9
+ ac_cs_silent=false
10
+ SHELL=${CONFIG_SHELL-/bin/sh}
11
+ ## --------------------- ##
12
+ ## M4sh Initialization. ##
13
+ ## --------------------- ##
14
+
15
+ # Be Bourne compatible
16
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
+ emulate sh
18
+ NULLCMD=:
19
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
+ # is contrary to our usage. Disable this feature.
21
+ alias -g '${1+"$@"}'='"$@"'
22
+ elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23
+ set -o posix
24
+ fi
25
+
26
+ # Support unset when possible.
27
+ if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28
+ as_unset=unset
29
+ else
30
+ as_unset=false
31
+ fi
32
+
33
+
34
+ # Work around bugs in pre-3.0 UWIN ksh.
35
+ $as_unset ENV MAIL MAILPATH
36
+ PS1='$ '
37
+ PS2='> '
38
+ PS4='+ '
39
+
40
+ # NLS nuisances.
41
+ for as_var in \
42
+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
+ LC_TELEPHONE LC_TIME
45
+ do
46
+ if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
+ eval $as_var=C; export $as_var
48
+ else
49
+ $as_unset $as_var
50
+ fi
51
+ done
52
+
53
+ # Required to use basename.
54
+ if expr a : '\(a\)' >/dev/null 2>&1; then
55
+ as_expr=expr
56
+ else
57
+ as_expr=false
58
+ fi
59
+
60
+ if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61
+ as_basename=basename
62
+ else
63
+ as_basename=false
64
+ fi
65
+
66
+
67
+ # Name of the executable.
68
+ as_me=`$as_basename "$0" ||
69
+ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
+ X"$0" : 'X\(//\)$' \| \
71
+ X"$0" : 'X\(/\)$' \| \
72
+ . : '\(.\)' 2>/dev/null ||
73
+ echo X/"$0" |
74
+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
+ /^X\/\(\/\/\)$/{ s//\1/; q; }
76
+ /^X\/\(\/\).*/{ s//\1/; q; }
77
+ s/.*/./; q'`
78
+
79
+
80
+ # PATH needs CR, and LINENO needs CR and PATH.
81
+ # Avoid depending upon Character Ranges.
82
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
+ as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
+ as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
+ as_cr_digits='0123456789'
86
+ as_cr_alnum=$as_cr_Letters$as_cr_digits
87
+
88
+ # The user is always right.
89
+ if test "${PATH_SEPARATOR+set}" != set; then
90
+ echo "#! /bin/sh" >conf$$.sh
91
+ echo "exit 0" >>conf$$.sh
92
+ chmod +x conf$$.sh
93
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
+ PATH_SEPARATOR=';'
95
+ else
96
+ PATH_SEPARATOR=:
97
+ fi
98
+ rm -f conf$$.sh
99
+ fi
100
+
101
+
102
+ as_lineno_1=$LINENO
103
+ as_lineno_2=$LINENO
104
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
106
+ test "x$as_lineno_3" = "x$as_lineno_2" || {
107
+ # Find who we are. Look in the path if we contain no path at all
108
+ # relative or not.
109
+ case $0 in
110
+ *[\\/]* ) as_myself=$0 ;;
111
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
+ for as_dir in $PATH
113
+ do
114
+ IFS=$as_save_IFS
115
+ test -z "$as_dir" && as_dir=.
116
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
+ done
118
+
119
+ ;;
120
+ esac
121
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
122
+ # in which case we are not to be found in the path.
123
+ if test "x$as_myself" = x; then
124
+ as_myself=$0
125
+ fi
126
+ if test ! -f "$as_myself"; then
127
+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
128
+ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
129
+ { (exit 1); exit 1; }; }
130
+ fi
131
+ case $CONFIG_SHELL in
132
+ '')
133
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134
+ for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
+ do
136
+ IFS=$as_save_IFS
137
+ test -z "$as_dir" && as_dir=.
138
+ for as_base in sh bash ksh sh5; do
139
+ case $as_dir in
140
+ /*)
141
+ if ("$as_dir/$as_base" -c '
142
+ as_lineno_1=$LINENO
143
+ as_lineno_2=$LINENO
144
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
146
+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147
+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148
+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149
+ CONFIG_SHELL=$as_dir/$as_base
150
+ export CONFIG_SHELL
151
+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152
+ fi;;
153
+ esac
154
+ done
155
+ done
156
+ ;;
157
+ esac
158
+
159
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160
+ # uniformly replaced by the line number. The first 'sed' inserts a
161
+ # line-number line before each line; the second 'sed' does the real
162
+ # work. The second script uses 'N' to pair each line-number line
163
+ # with the numbered line, and appends trailing '-' during
164
+ # substitution so that $LINENO is not a special case at line end.
165
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166
+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167
+ sed '=' <$as_myself |
168
+ sed '
169
+ N
170
+ s,$,-,
171
+ : loop
172
+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173
+ t loop
174
+ s,-$,,
175
+ s,^['$as_cr_digits']*\n,,
176
+ ' >$as_me.lineno &&
177
+ chmod +x $as_me.lineno ||
178
+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
179
+ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
180
+ { (exit 1); exit 1; }; }
181
+
182
+ # Don't try to exec as it changes $[0], causing all sort of problems
183
+ # (the dirname of $[0] is not the place where we might find the
184
+ # original and so on. Autoconf is especially sensible to this).
185
+ . ./$as_me.lineno
186
+ # Exit status is that of the last command.
187
+ exit
188
+ }
189
+
190
+
191
+ case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192
+ *c*,-n*) ECHO_N= ECHO_C='
193
+ ' ECHO_T=' ' ;;
194
+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195
+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
+ esac
197
+
198
+ if expr a : '\(a\)' >/dev/null 2>&1; then
199
+ as_expr=expr
200
+ else
201
+ as_expr=false
202
+ fi
203
+
204
+ rm -f conf$$ conf$$.exe conf$$.file
205
+ echo >conf$$.file
206
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
207
+ # We could just check for DJGPP; but this test a) works b) is more generic
208
+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209
+ if test -f conf$$.exe; then
210
+ # Don't use ln at all; we don't have any links
211
+ as_ln_s='cp -p'
212
+ else
213
+ as_ln_s='ln -s'
214
+ fi
215
+ elif ln conf$$.file conf$$ 2>/dev/null; then
216
+ as_ln_s=ln
217
+ else
218
+ as_ln_s='cp -p'
219
+ fi
220
+ rm -f conf$$ conf$$.exe conf$$.file
221
+
222
+ if mkdir -p . 2>/dev/null; then
223
+ as_mkdir_p=:
224
+ else
225
+ as_mkdir_p=false
226
+ fi
227
+
228
+ as_executable_p="test -f"
229
+
230
+ # Sed expression to map a string onto a valid CPP name.
231
+ as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232
+
233
+ # Sed expression to map a string onto a valid variable name.
234
+ as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235
+
236
+
237
+ # IFS
238
+ # We need space, tab and new line, in precisely that order.
239
+ as_nl='
240
+ '
241
+ IFS=" $as_nl"
242
+
243
+ # CDPATH.
244
+ $as_unset CDPATH
245
+
246
+ exec 6>&1
247
+
248
+ # Open the log real soon, to keep \$[0] and so on meaningful, and to
249
+ # report actual input values of CONFIG_FILES etc. instead of their
250
+ # values after options handling. Logging --version etc. is OK.
251
+ exec 5>>config.log
252
+ {
253
+ echo
254
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
255
+ ## Running $as_me. ##
256
+ _ASBOX
257
+ } >&5
258
+ cat >&5 <<_CSEOF
259
+
260
+ This file was extended by $as_me, which was
261
+ generated by GNU Autoconf 2.57. Invocation command line was
262
+
263
+ CONFIG_FILES = $CONFIG_FILES
264
+ CONFIG_HEADERS = $CONFIG_HEADERS
265
+ CONFIG_LINKS = $CONFIG_LINKS
266
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
267
+ $ $0 $@
268
+
269
+ _CSEOF
270
+ echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
271
+ echo >&5
272
+ config_files=" Makefile"
273
+ config_headers=" config.h"
274
+ config_commands=" depfiles"
275
+
276
+ ac_cs_usage="\
277
+ \`$as_me' instantiates files from templates according to the
278
+ current configuration.
279
+
280
+ Usage: $0 [OPTIONS] [FILE]...
281
+
282
+ -h, --help print this help, then exit
283
+ -V, --version print version number, then exit
284
+ -q, --quiet do not print progress messages
285
+ -d, --debug don't remove temporary files
286
+ --recheck update $as_me by reconfiguring in the same conditions
287
+ --file=FILE[:TEMPLATE]
288
+ instantiate the configuration file FILE
289
+ --header=FILE[:TEMPLATE]
290
+ instantiate the configuration header FILE
291
+
292
+ Configuration files:
293
+ $config_files
294
+
295
+ Configuration headers:
296
+ $config_headers
297
+
298
+ Configuration commands:
299
+ $config_commands
300
+
301
+ Report bugs to <bug-autoconf@gnu.org>."
302
+ ac_cs_version="\
303
+ config.status
304
+ configured by ./configure, generated by GNU Autoconf 2.57,
305
+ with options \"\"
306
+
307
+ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
308
+ Free Software Foundation, Inc.
309
+ This config.status script is free software; the Free Software Foundation
310
+ gives unlimited permission to copy, distribute and modify it."
311
+ srcdir=.
312
+ INSTALL="/usr/bin/install -c"
313
+ # If no file are specified by the user, then we need to provide default
314
+ # value. By we need to know if files were specified by the user.
315
+ ac_need_defaults=:
316
+ while test $# != 0
317
+ do
318
+ case $1 in
319
+ --*=*)
320
+ ac_option=`expr "x$1" : 'x\([^=]*\)='`
321
+ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
322
+ ac_shift=:
323
+ ;;
324
+ -*)
325
+ ac_option=$1
326
+ ac_optarg=$2
327
+ ac_shift=shift
328
+ ;;
329
+ *) # This is not an option, so the user has probably given explicit
330
+ # arguments.
331
+ ac_option=$1
332
+ ac_need_defaults=false;;
333
+ esac
334
+
335
+ case $ac_option in
336
+ # Handling of the options.
337
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
338
+ ac_cs_recheck=: ;;
339
+ --version | --vers* | -V )
340
+ echo "$ac_cs_version"; exit 0 ;;
341
+ --he | --h)
342
+ # Conflict between --help and --header
343
+ { { echo "$as_me:$LINENO: error: ambiguous option: $1
344
+ Try \`$0 --help' for more information." >&5
345
+ echo "$as_me: error: ambiguous option: $1
346
+ Try \`$0 --help' for more information." >&2;}
347
+ { (exit 1); exit 1; }; };;
348
+ --help | --hel | -h )
349
+ echo "$ac_cs_usage"; exit 0 ;;
350
+ --debug | --d* | -d )
351
+ debug=: ;;
352
+ --file | --fil | --fi | --f )
353
+ $ac_shift
354
+ CONFIG_FILES="$CONFIG_FILES $ac_optarg"
355
+ ac_need_defaults=false;;
356
+ --header | --heade | --head | --hea )
357
+ $ac_shift
358
+ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
359
+ ac_need_defaults=false;;
360
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
361
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
362
+ ac_cs_silent=: ;;
363
+
364
+ # This is an error.
365
+ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
366
+ Try \`$0 --help' for more information." >&5
367
+ echo "$as_me: error: unrecognized option: $1
368
+ Try \`$0 --help' for more information." >&2;}
369
+ { (exit 1); exit 1; }; } ;;
370
+
371
+ *) ac_config_targets="$ac_config_targets $1" ;;
372
+
373
+ esac
374
+ shift
375
+ done
376
+
377
+ ac_configure_extra_args=
378
+
379
+ if $ac_cs_silent; then
380
+ exec 6>/dev/null
381
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
382
+ fi
383
+
384
+ if $ac_cs_recheck; then
385
+ echo "running /bin/sh ./configure " $ac_configure_extra_args " --no-create --no-recursion" >&6
386
+ exec /bin/sh ./configure $ac_configure_extra_args --no-create --no-recursion
387
+ fi
388
+
389
+ #
390
+ # INIT-COMMANDS section.
391
+ #
392
+
393
+ AMDEP_TRUE="" ac_aux_dir="."
394
+
395
+ for ac_config_target in $ac_config_targets
396
+ do
397
+ case "$ac_config_target" in
398
+ # Handling of arguments.
399
+ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
400
+ "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
401
+ "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
402
+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
403
+ echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
404
+ { (exit 1); exit 1; }; };;
405
+ esac
406
+ done
407
+
408
+ # If the user did not use the arguments to specify the items to instantiate,
409
+ # then the envvar interface is used. Set only those that are not.
410
+ # We use the long form for the default assignment because of an extremely
411
+ # bizarre bug on SunOS 4.1.3.
412
+ if $ac_need_defaults; then
413
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
414
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
415
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
416
+ fi
417
+
418
+ # Have a temporary directory for convenience. Make it in the build tree
419
+ # simply because there is no reason to put it here, and in addition,
420
+ # creating and moving files from /tmp can sometimes cause problems.
421
+ # Create a temporary directory, and hook for its removal unless debugging.
422
+ $debug ||
423
+ {
424
+ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
425
+ trap '{ (exit 1); exit 1; }' 1 2 13 15
426
+ }
427
+
428
+ # Create a (secure) tmp directory for tmp files.
429
+
430
+ {
431
+ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
432
+ test -n "$tmp" && test -d "$tmp"
433
+ } ||
434
+ {
435
+ tmp=./confstat$$-$RANDOM
436
+ (umask 077 && mkdir $tmp)
437
+ } ||
438
+ {
439
+ echo "$me: cannot create a temporary directory in ." >&2
440
+ { (exit 1); exit 1; }
441
+ }
442
+
443
+
444
+ #
445
+ # CONFIG_FILES section.
446
+ #
447
+
448
+ # No need to generate the scripts if there are no CONFIG_FILES.
449
+ # This happens for instance when ./config.status config.h
450
+ if test -n "$CONFIG_FILES"; then
451
+ # Protect against being on the right side of a sed subst in config.status.
452
+ sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g;
453
+ s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF
454
+ s,@SHELL@,/bin/sh,;t t
455
+ s,@PATH_SEPARATOR@,:,;t t
456
+ s,@PACKAGE_NAME@,,;t t
457
+ s,@PACKAGE_TARNAME@,,;t t
458
+ s,@PACKAGE_VERSION@,,;t t
459
+ s,@PACKAGE_STRING@,,;t t
460
+ s,@PACKAGE_BUGREPORT@,,;t t
461
+ s,@exec_prefix@,${prefix},;t t
462
+ s,@prefix@,/usr/local,;t t
463
+ s,@program_transform_name@,s,x,x,,;t t
464
+ s,@bindir@,${exec_prefix}/bin,;t t
465
+ s,@sbindir@,${exec_prefix}/sbin,;t t
466
+ s,@libexecdir@,${exec_prefix}/libexec,;t t
467
+ s,@datadir@,${prefix}/share,;t t
468
+ s,@sysconfdir@,${prefix}/etc,;t t
469
+ s,@sharedstatedir@,${prefix}/com,;t t
470
+ s,@localstatedir@,${prefix}/var,;t t
471
+ s,@libdir@,${exec_prefix}/lib,;t t
472
+ s,@includedir@,${prefix}/include,;t t
473
+ s,@oldincludedir@,/usr/include,;t t
474
+ s,@infodir@,${prefix}/info,;t t
475
+ s,@mandir@,${prefix}/man,;t t
476
+ s,@build_alias@,,;t t
477
+ s,@host_alias@,,;t t
478
+ s,@target_alias@,,;t t
479
+ s,@DEFS@,-DHAVE_CONFIG_H,;t t
480
+ s,@ECHO_C@,\c,;t t
481
+ s,@ECHO_N@,,;t t
482
+ s,@ECHO_T@,,;t t
483
+ s,@LIBS@,,;t t
484
+ s,@INSTALL_PROGRAM@,${INSTALL},;t t
485
+ s,@INSTALL_SCRIPT@,${INSTALL},;t t
486
+ s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
487
+ s,@CYGPATH_W@,echo,;t t
488
+ s,@PACKAGE@,libcharguess,;t t
489
+ s,@VERSION@,1.0b,;t t
490
+ s,@ACLOCAL@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run aclocal-1.7,;t t
491
+ s,@AUTOCONF@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run autoconf,;t t
492
+ s,@AUTOMAKE@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run automake-1.7,;t t
493
+ s,@AUTOHEADER@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run autoheader,;t t
494
+ s,@MAKEINFO@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run makeinfo,;t t
495
+ s,@AMTAR@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run tar,;t t
496
+ s,@install_sh@,/Users/hydrus/charguess/ext/libcharguess/cpp/install-sh,;t t
497
+ s,@STRIP@,,;t t
498
+ s,@ac_ct_STRIP@,,;t t
499
+ s,@INSTALL_STRIP_PROGRAM@,${SHELL} $(install_sh) -c -s,;t t
500
+ s,@AWK@,awk,;t t
501
+ s,@SET_MAKE@,,;t t
502
+ s,@am__leading_dot@,.,;t t
503
+ s,@MAINTAINER_MODE_TRUE@,#,;t t
504
+ s,@MAINTAINER_MODE_FALSE@,,;t t
505
+ s,@MAINT@,#,;t t
506
+ s,@CC@,gcc,;t t
507
+ s,@CFLAGS@,-g -O2 -Wall,;t t
508
+ s,@LDFLAGS@,,;t t
509
+ s,@CPPFLAGS@,,;t t
510
+ s,@ac_ct_CC@,gcc,;t t
511
+ s,@EXEEXT@,,;t t
512
+ s,@OBJEXT@,o,;t t
513
+ s,@DEPDIR@,.deps,;t t
514
+ s,@am__include@,include,;t t
515
+ s,@am__quote@,,;t t
516
+ s,@AMDEP_TRUE@,,;t t
517
+ s,@AMDEP_FALSE@,#,;t t
518
+ s,@AMDEPBACKSLASH@,\,;t t
519
+ s,@CCDEPMODE@,depmode=gcc3,;t t
520
+ s,@am__fastdepCC_TRUE@,,;t t
521
+ s,@am__fastdepCC_FALSE@,#,;t t
522
+ s,@CPP@,gcc -E,;t t
523
+ s,@CXX@,g++,;t t
524
+ s,@CXXFLAGS@,-g -O2,;t t
525
+ s,@ac_ct_CXX@,g++,;t t
526
+ s,@CXXDEPMODE@,depmode=gcc3,;t t
527
+ s,@am__fastdepCXX_TRUE@,,;t t
528
+ s,@am__fastdepCXX_FALSE@,#,;t t
529
+ s,@EGREP@,grep -E,;t t
530
+ s,@RANLIB@,ranlib,;t t
531
+ s,@ac_ct_RANLIB@,ranlib,;t t
532
+ s,@LIBOBJS@,,;t t
533
+ s,@LTLIBOBJS@,,;t t
534
+ CEOF
535
+
536
+ # Split the substitutions into bite-sized pieces for seds with
537
+ # small command number limits, like on Digital OSF/1 and HP-UX.
538
+ ac_max_sed_lines=48
539
+ ac_sed_frag=1 # Number of current file.
540
+ ac_beg=1 # First line for current file.
541
+ ac_end=$ac_max_sed_lines # Line after last line for current file.
542
+ ac_more_lines=:
543
+ ac_sed_cmds=
544
+ while $ac_more_lines; do
545
+ if test $ac_beg -gt 1; then
546
+ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
547
+ else
548
+ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
549
+ fi
550
+ if test ! -s $tmp/subs.frag; then
551
+ ac_more_lines=false
552
+ else
553
+ # The purpose of the label and of the branching condition is to
554
+ # speed up the sed processing (if there are no `@' at all, there
555
+ # is no need to browse any of the substitutions).
556
+ # These are the two extra sed commands mentioned above.
557
+ (echo ':t
558
+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
559
+ if test -z "$ac_sed_cmds"; then
560
+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
561
+ else
562
+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
563
+ fi
564
+ ac_sed_frag=`expr $ac_sed_frag + 1`
565
+ ac_beg=$ac_end
566
+ ac_end=`expr $ac_end + $ac_max_sed_lines`
567
+ fi
568
+ done
569
+ if test -z "$ac_sed_cmds"; then
570
+ ac_sed_cmds=cat
571
+ fi
572
+ fi # test -n "$CONFIG_FILES"
573
+
574
+ for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
575
+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
576
+ case $ac_file in
577
+ - | *:- | *:-:* ) # input from stdin
578
+ cat >$tmp/stdin
579
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
580
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
581
+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
582
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
583
+ * ) ac_file_in=$ac_file.in ;;
584
+ esac
585
+
586
+ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
587
+ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
588
+ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
589
+ X"$ac_file" : 'X\(//\)[^/]' \| \
590
+ X"$ac_file" : 'X\(//\)$' \| \
591
+ X"$ac_file" : 'X\(/\)' \| \
592
+ . : '\(.\)' 2>/dev/null ||
593
+ echo X"$ac_file" |
594
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
595
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
596
+ /^X\(\/\/\)$/{ s//\1/; q; }
597
+ /^X\(\/\).*/{ s//\1/; q; }
598
+ s/.*/./; q'`
599
+ { if $as_mkdir_p; then
600
+ mkdir -p "$ac_dir"
601
+ else
602
+ as_dir="$ac_dir"
603
+ as_dirs=
604
+ while test ! -d "$as_dir"; do
605
+ as_dirs="$as_dir $as_dirs"
606
+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
607
+ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
608
+ X"$as_dir" : 'X\(//\)[^/]' \| \
609
+ X"$as_dir" : 'X\(//\)$' \| \
610
+ X"$as_dir" : 'X\(/\)' \| \
611
+ . : '\(.\)' 2>/dev/null ||
612
+ echo X"$as_dir" |
613
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
614
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
615
+ /^X\(\/\/\)$/{ s//\1/; q; }
616
+ /^X\(\/\).*/{ s//\1/; q; }
617
+ s/.*/./; q'`
618
+ done
619
+ test ! -n "$as_dirs" || mkdir $as_dirs
620
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
621
+ echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
622
+ { (exit 1); exit 1; }; }; }
623
+
624
+ ac_builddir=.
625
+
626
+ if test "$ac_dir" != .; then
627
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
628
+ # A "../" for each directory in $ac_dir_suffix.
629
+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
630
+ else
631
+ ac_dir_suffix= ac_top_builddir=
632
+ fi
633
+
634
+ case $srcdir in
635
+ .) # No --srcdir option. We are building in place.
636
+ ac_srcdir=.
637
+ if test -z "$ac_top_builddir"; then
638
+ ac_top_srcdir=.
639
+ else
640
+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
641
+ fi ;;
642
+ [\\/]* | ?:[\\/]* ) # Absolute path.
643
+ ac_srcdir=$srcdir$ac_dir_suffix;
644
+ ac_top_srcdir=$srcdir ;;
645
+ *) # Relative path.
646
+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
647
+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
648
+ esac
649
+ # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
650
+ # absolute.
651
+ ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
652
+ ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
653
+ ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
654
+ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
655
+
656
+
657
+ case $INSTALL in
658
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
659
+ *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
660
+ esac
661
+
662
+ if test x"$ac_file" != x-; then
663
+ { echo "$as_me:$LINENO: creating $ac_file" >&5
664
+ echo "$as_me: creating $ac_file" >&6;}
665
+ rm -f "$ac_file"
666
+ fi
667
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
668
+ # use $as_me), people would be surprised to read:
669
+ # /* config.h. Generated by config.status. */
670
+ if test x"$ac_file" = x-; then
671
+ configure_input=
672
+ else
673
+ configure_input="$ac_file. "
674
+ fi
675
+ configure_input=$configure_input"Generated from `echo $ac_file_in |
676
+ sed 's,.*/,,'` by configure."
677
+
678
+ # First look for the input files in the build tree, otherwise in the
679
+ # src tree.
680
+ ac_file_inputs=`IFS=:
681
+ for f in $ac_file_in; do
682
+ case $f in
683
+ -) echo $tmp/stdin ;;
684
+ [\\/$]*)
685
+ # Absolute (can't be DOS-style, as IFS=:)
686
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
687
+ echo "$as_me: error: cannot find input file: $f" >&2;}
688
+ { (exit 1); exit 1; }; }
689
+ echo $f;;
690
+ *) # Relative
691
+ if test -f "$f"; then
692
+ # Build tree
693
+ echo $f
694
+ elif test -f "$srcdir/$f"; then
695
+ # Source tree
696
+ echo $srcdir/$f
697
+ else
698
+ # /dev/null tree
699
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
700
+ echo "$as_me: error: cannot find input file: $f" >&2;}
701
+ { (exit 1); exit 1; }; }
702
+ fi;;
703
+ esac
704
+ done` || { (exit 1); exit 1; }
705
+ sed "/^[ ]*VPATH[ ]*=/{
706
+ s/:*\$(srcdir):*/:/;
707
+ s/:*\${srcdir}:*/:/;
708
+ s/:*@srcdir@:*/:/;
709
+ s/^\([^=]*=[ ]*\):*/\1/;
710
+ s/:*$//;
711
+ s/^[^=]*=[ ]*$//;
712
+ }
713
+
714
+ :t
715
+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
716
+ s,@configure_input@,$configure_input,;t t
717
+ s,@srcdir@,$ac_srcdir,;t t
718
+ s,@abs_srcdir@,$ac_abs_srcdir,;t t
719
+ s,@top_srcdir@,$ac_top_srcdir,;t t
720
+ s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
721
+ s,@builddir@,$ac_builddir,;t t
722
+ s,@abs_builddir@,$ac_abs_builddir,;t t
723
+ s,@top_builddir@,$ac_top_builddir,;t t
724
+ s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
725
+ s,@INSTALL@,$ac_INSTALL,;t t
726
+ " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
727
+ rm -f $tmp/stdin
728
+ if test x"$ac_file" != x-; then
729
+ mv $tmp/out $ac_file
730
+ else
731
+ cat $tmp/out
732
+ rm -f $tmp/out
733
+ fi
734
+
735
+ done
736
+
737
+ #
738
+ # CONFIG_HEADER section.
739
+ #
740
+
741
+ # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
742
+ # NAME is the cpp macro being defined and VALUE is the value it is being given.
743
+ #
744
+ # ac_d sets the value in "#define NAME VALUE" lines.
745
+ ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
746
+ ac_dB='[ ].*$,\1#\2'
747
+ ac_dC=' '
748
+ ac_dD=',;t'
749
+ # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
750
+ ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
751
+ ac_uB='$,\1#\2define\3'
752
+ ac_uC=' '
753
+ ac_uD=',;t'
754
+
755
+ for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
756
+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
757
+ case $ac_file in
758
+ - | *:- | *:-:* ) # input from stdin
759
+ cat >$tmp/stdin
760
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
761
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
762
+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
763
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
764
+ * ) ac_file_in=$ac_file.in ;;
765
+ esac
766
+
767
+ test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
768
+ echo "$as_me: creating $ac_file" >&6;}
769
+
770
+ # First look for the input files in the build tree, otherwise in the
771
+ # src tree.
772
+ ac_file_inputs=`IFS=:
773
+ for f in $ac_file_in; do
774
+ case $f in
775
+ -) echo $tmp/stdin ;;
776
+ [\\/$]*)
777
+ # Absolute (can't be DOS-style, as IFS=:)
778
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
779
+ echo "$as_me: error: cannot find input file: $f" >&2;}
780
+ { (exit 1); exit 1; }; }
781
+ echo $f;;
782
+ *) # Relative
783
+ if test -f "$f"; then
784
+ # Build tree
785
+ echo $f
786
+ elif test -f "$srcdir/$f"; then
787
+ # Source tree
788
+ echo $srcdir/$f
789
+ else
790
+ # /dev/null tree
791
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
792
+ echo "$as_me: error: cannot find input file: $f" >&2;}
793
+ { (exit 1); exit 1; }; }
794
+ fi;;
795
+ esac
796
+ done` || { (exit 1); exit 1; }
797
+ # Remove the trailing spaces.
798
+ sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
799
+
800
+ # Handle all the #define templates only if necessary.
801
+ if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then
802
+ # If there are no defines, we may have an empty if/fi
803
+ :
804
+ cat >$tmp/defines.sed <<CEOF
805
+ /^[ ]*#[ ]*define/!b
806
+ t clr
807
+ : clr
808
+ ${ac_dA}PACKAGE_NAME${ac_dB}PACKAGE_NAME${ac_dC}""${ac_dD}
809
+ ${ac_dA}PACKAGE_TARNAME${ac_dB}PACKAGE_TARNAME${ac_dC}""${ac_dD}
810
+ ${ac_dA}PACKAGE_VERSION${ac_dB}PACKAGE_VERSION${ac_dC}""${ac_dD}
811
+ ${ac_dA}PACKAGE_STRING${ac_dB}PACKAGE_STRING${ac_dC}""${ac_dD}
812
+ ${ac_dA}PACKAGE_BUGREPORT${ac_dB}PACKAGE_BUGREPORT${ac_dC}""${ac_dD}
813
+ ${ac_dA}PACKAGE${ac_dB}PACKAGE${ac_dC}"libcharguess"${ac_dD}
814
+ ${ac_dA}VERSION${ac_dB}VERSION${ac_dC}"1.0b"${ac_dD}
815
+ ${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
816
+ ${ac_dA}PACKAGE_SOURCE_DIR${ac_dB}PACKAGE_SOURCE_DIR${ac_dC}"/Users/hydrus/charguess/ext/libcharguess/cpp"${ac_dD}
817
+ CEOF
818
+ sed -f $tmp/defines.sed $tmp/in >$tmp/out
819
+ rm -f $tmp/in
820
+ mv $tmp/out $tmp/in
821
+
822
+ fi # grep
823
+
824
+ # Handle all the #undef templates
825
+ cat >$tmp/undefs.sed <<CEOF
826
+ /^[ ]*#[ ]*undef/!b
827
+ t clr
828
+ : clr
829
+ ${ac_uA}PACKAGE_NAME${ac_uB}PACKAGE_NAME${ac_uC}""${ac_uD}
830
+ ${ac_uA}PACKAGE_TARNAME${ac_uB}PACKAGE_TARNAME${ac_uC}""${ac_uD}
831
+ ${ac_uA}PACKAGE_VERSION${ac_uB}PACKAGE_VERSION${ac_uC}""${ac_uD}
832
+ ${ac_uA}PACKAGE_STRING${ac_uB}PACKAGE_STRING${ac_uC}""${ac_uD}
833
+ ${ac_uA}PACKAGE_BUGREPORT${ac_uB}PACKAGE_BUGREPORT${ac_uC}""${ac_uD}
834
+ ${ac_uA}PACKAGE${ac_uB}PACKAGE${ac_uC}"libcharguess"${ac_uD}
835
+ ${ac_uA}VERSION${ac_uB}VERSION${ac_uC}"1.0b"${ac_uD}
836
+ ${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
837
+ ${ac_uA}PACKAGE_SOURCE_DIR${ac_uB}PACKAGE_SOURCE_DIR${ac_uC}"/Users/hydrus/charguess/ext/libcharguess/cpp"${ac_uD}
838
+ s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
839
+ CEOF
840
+ sed -f $tmp/undefs.sed $tmp/in >$tmp/out
841
+ rm -f $tmp/in
842
+ mv $tmp/out $tmp/in
843
+
844
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
845
+ # use $as_me), people would be surprised to read:
846
+ # /* config.h. Generated by config.status. */
847
+ if test x"$ac_file" = x-; then
848
+ echo "/* Generated by configure. */" >$tmp/config.h
849
+ else
850
+ echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
851
+ fi
852
+ cat $tmp/in >>$tmp/config.h
853
+ rm -f $tmp/in
854
+ if test x"$ac_file" != x-; then
855
+ if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
856
+ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
857
+ echo "$as_me: $ac_file is unchanged" >&6;}
858
+ else
859
+ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
860
+ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861
+ X"$ac_file" : 'X\(//\)[^/]' \| \
862
+ X"$ac_file" : 'X\(//\)$' \| \
863
+ X"$ac_file" : 'X\(/\)' \| \
864
+ . : '\(.\)' 2>/dev/null ||
865
+ echo X"$ac_file" |
866
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868
+ /^X\(\/\/\)$/{ s//\1/; q; }
869
+ /^X\(\/\).*/{ s//\1/; q; }
870
+ s/.*/./; q'`
871
+ { if $as_mkdir_p; then
872
+ mkdir -p "$ac_dir"
873
+ else
874
+ as_dir="$ac_dir"
875
+ as_dirs=
876
+ while test ! -d "$as_dir"; do
877
+ as_dirs="$as_dir $as_dirs"
878
+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
879
+ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
880
+ X"$as_dir" : 'X\(//\)[^/]' \| \
881
+ X"$as_dir" : 'X\(//\)$' \| \
882
+ X"$as_dir" : 'X\(/\)' \| \
883
+ . : '\(.\)' 2>/dev/null ||
884
+ echo X"$as_dir" |
885
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
886
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
887
+ /^X\(\/\/\)$/{ s//\1/; q; }
888
+ /^X\(\/\).*/{ s//\1/; q; }
889
+ s/.*/./; q'`
890
+ done
891
+ test ! -n "$as_dirs" || mkdir $as_dirs
892
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
893
+ echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
894
+ { (exit 1); exit 1; }; }; }
895
+
896
+ rm -f $ac_file
897
+ mv $tmp/config.h $ac_file
898
+ fi
899
+ else
900
+ cat $tmp/config.h
901
+ rm -f $tmp/config.h
902
+ fi
903
+ # Compute $ac_file's index in $config_headers.
904
+ _am_stamp_count=1
905
+ for _am_header in $config_headers :; do
906
+ case $_am_header in
907
+ $ac_file | $ac_file:* )
908
+ break ;;
909
+ * )
910
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
911
+ esac
912
+ done
913
+ echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
914
+ $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
915
+ X$ac_file : 'X\(//\)[^/]' \| \
916
+ X$ac_file : 'X\(//\)$' \| \
917
+ X$ac_file : 'X\(/\)' \| \
918
+ . : '\(.\)' 2>/dev/null ||
919
+ echo X$ac_file |
920
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
921
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
922
+ /^X\(\/\/\)$/{ s//\1/; q; }
923
+ /^X\(\/\).*/{ s//\1/; q; }
924
+ s/.*/./; q'`/stamp-h$_am_stamp_count
925
+ done
926
+
927
+ #
928
+ # CONFIG_COMMANDS section.
929
+ #
930
+ for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
931
+ ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
932
+ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
933
+ ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
934
+ $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
935
+ X"$ac_dest" : 'X\(//\)[^/]' \| \
936
+ X"$ac_dest" : 'X\(//\)$' \| \
937
+ X"$ac_dest" : 'X\(/\)' \| \
938
+ . : '\(.\)' 2>/dev/null ||
939
+ echo X"$ac_dest" |
940
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
941
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
942
+ /^X\(\/\/\)$/{ s//\1/; q; }
943
+ /^X\(\/\).*/{ s//\1/; q; }
944
+ s/.*/./; q'`
945
+ ac_builddir=.
946
+
947
+ if test "$ac_dir" != .; then
948
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
949
+ # A "../" for each directory in $ac_dir_suffix.
950
+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
951
+ else
952
+ ac_dir_suffix= ac_top_builddir=
953
+ fi
954
+
955
+ case $srcdir in
956
+ .) # No --srcdir option. We are building in place.
957
+ ac_srcdir=.
958
+ if test -z "$ac_top_builddir"; then
959
+ ac_top_srcdir=.
960
+ else
961
+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
962
+ fi ;;
963
+ [\\/]* | ?:[\\/]* ) # Absolute path.
964
+ ac_srcdir=$srcdir$ac_dir_suffix;
965
+ ac_top_srcdir=$srcdir ;;
966
+ *) # Relative path.
967
+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
968
+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
969
+ esac
970
+ # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
971
+ # absolute.
972
+ ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
973
+ ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
974
+ ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
975
+ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
976
+
977
+
978
+ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
979
+ echo "$as_me: executing $ac_dest commands" >&6;}
980
+ case $ac_dest in
981
+ depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
982
+ # Strip MF so we end up with the name of the file.
983
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
984
+ # Check whether this is an Automake generated Makefile or not.
985
+ # We used to match only the files named `Makefile.in', but
986
+ # some people rename them; so instead we look at the file content.
987
+ # Grep'ing the first line is not enough: some people post-process
988
+ # each Makefile.in and add a new line on top of each file to say so.
989
+ # So let's grep whole file.
990
+ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
991
+ dirpart=`(dirname "$mf") 2>/dev/null ||
992
+ $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
993
+ X"$mf" : 'X\(//\)[^/]' \| \
994
+ X"$mf" : 'X\(//\)$' \| \
995
+ X"$mf" : 'X\(/\)' \| \
996
+ . : '\(.\)' 2>/dev/null ||
997
+ echo X"$mf" |
998
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
999
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1000
+ /^X\(\/\/\)$/{ s//\1/; q; }
1001
+ /^X\(\/\).*/{ s//\1/; q; }
1002
+ s/.*/./; q'`
1003
+ else
1004
+ continue
1005
+ fi
1006
+ grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
1007
+ # Extract the definition of DEP_FILES from the Makefile without
1008
+ # running `make'.
1009
+ DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
1010
+ test -z "$DEPDIR" && continue
1011
+ # When using ansi2knr, U may be empty or an underscore; expand it
1012
+ U=`sed -n -e '/^U = / s///p' < "$mf"`
1013
+ test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
1014
+ # We invoke sed twice because it is the simplest approach to
1015
+ # changing $(DEPDIR) to its actual value in the expansion.
1016
+ for file in `sed -n -e '
1017
+ /^DEP_FILES = .*\\\\$/ {
1018
+ s/^DEP_FILES = //
1019
+ :loop
1020
+ s/\\\\$//
1021
+ p
1022
+ n
1023
+ /\\\\$/ b loop
1024
+ p
1025
+ }
1026
+ /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
1027
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1028
+ # Make sure the directory exists.
1029
+ test -f "$dirpart/$file" && continue
1030
+ fdir=`(dirname "$file") 2>/dev/null ||
1031
+ $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1032
+ X"$file" : 'X\(//\)[^/]' \| \
1033
+ X"$file" : 'X\(//\)$' \| \
1034
+ X"$file" : 'X\(/\)' \| \
1035
+ . : '\(.\)' 2>/dev/null ||
1036
+ echo X"$file" |
1037
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1038
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1039
+ /^X\(\/\/\)$/{ s//\1/; q; }
1040
+ /^X\(\/\).*/{ s//\1/; q; }
1041
+ s/.*/./; q'`
1042
+ { if $as_mkdir_p; then
1043
+ mkdir -p $dirpart/$fdir
1044
+ else
1045
+ as_dir=$dirpart/$fdir
1046
+ as_dirs=
1047
+ while test ! -d "$as_dir"; do
1048
+ as_dirs="$as_dir $as_dirs"
1049
+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
1050
+ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1051
+ X"$as_dir" : 'X\(//\)[^/]' \| \
1052
+ X"$as_dir" : 'X\(//\)$' \| \
1053
+ X"$as_dir" : 'X\(/\)' \| \
1054
+ . : '\(.\)' 2>/dev/null ||
1055
+ echo X"$as_dir" |
1056
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1057
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1058
+ /^X\(\/\/\)$/{ s//\1/; q; }
1059
+ /^X\(\/\).*/{ s//\1/; q; }
1060
+ s/.*/./; q'`
1061
+ done
1062
+ test ! -n "$as_dirs" || mkdir $as_dirs
1063
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
1064
+ echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
1065
+ { (exit 1); exit 1; }; }; }
1066
+
1067
+ # echo "creating $dirpart/$file"
1068
+ echo '# dummy' > "$dirpart/$file"
1069
+ done
1070
+ done
1071
+ ;;
1072
+ esac
1073
+ done
1074
+
1075
+ { (exit 0); exit 0; }