eio 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. data/.gitignore +8 -0
  2. data/COPYING +502 -0
  3. data/LICENSE +16 -0
  4. data/README.rdoc +201 -0
  5. data/Rakefile +48 -0
  6. data/bench/eventmachine.rb +134 -0
  7. data/eio.gemspec +17 -0
  8. data/ext/eio/eio_ext.c +1447 -0
  9. data/ext/eio/extconf.rb +11 -0
  10. data/ext/libeio/CVS/Entries +13 -0
  11. data/ext/libeio/CVS/Repository +1 -0
  12. data/ext/libeio/CVS/Root +1 -0
  13. data/ext/libeio/Changes +40 -0
  14. data/ext/libeio/LICENSE +36 -0
  15. data/ext/libeio/Makefile +692 -0
  16. data/ext/libeio/Makefile.am +15 -0
  17. data/ext/libeio/Makefile.in +692 -0
  18. data/ext/libeio/aclocal.m4 +8937 -0
  19. data/ext/libeio/autogen.sh +3 -0
  20. data/ext/libeio/autom4te.cache/output.0 +13871 -0
  21. data/ext/libeio/autom4te.cache/output.1 +13867 -0
  22. data/ext/libeio/autom4te.cache/requests +275 -0
  23. data/ext/libeio/autom4te.cache/traces.0 +2384 -0
  24. data/ext/libeio/autom4te.cache/traces.1 +621 -0
  25. data/ext/libeio/config.guess +1501 -0
  26. data/ext/libeio/config.h +122 -0
  27. data/ext/libeio/config.h.in +121 -0
  28. data/ext/libeio/config.status +2035 -0
  29. data/ext/libeio/config.sub +1705 -0
  30. data/ext/libeio/configure +13867 -0
  31. data/ext/libeio/configure.ac +22 -0
  32. data/ext/libeio/demo.c +194 -0
  33. data/ext/libeio/eio.3 +3428 -0
  34. data/ext/libeio/eio.c +2075 -0
  35. data/ext/libeio/eio.h +336 -0
  36. data/ext/libeio/eio.pod +303 -0
  37. data/ext/libeio/install-sh +520 -0
  38. data/ext/libeio/libeio.m4 +156 -0
  39. data/ext/libeio/libtool +8890 -0
  40. data/ext/libeio/ltmain.sh +8406 -0
  41. data/ext/libeio/missing +376 -0
  42. data/ext/libeio/stamp-h1 +1 -0
  43. data/ext/libeio/xthread.h +168 -0
  44. data/lib/eio.rb +9 -0
  45. data/lib/eio/eventmachine.rb +24 -0
  46. data/lib/eio/middleware.rb +21 -0
  47. data/test/test_eio.rb +1161 -0
  48. data/test/test_eventmachine.rb +23 -0
  49. data/test/test_middleware.rb +20 -0
  50. metadata +148 -0
@@ -0,0 +1,122 @@
1
+ /* config.h. Generated from config.h.in by configure. */
2
+ /* config.h.in. Generated from configure.ac by autoheader. */
3
+
4
+ /* Define to 1 if you have the <dlfcn.h> header file. */
5
+ #define HAVE_DLFCN_H 1
6
+
7
+ /* fdatasync(2) is available */
8
+ #define HAVE_FDATASYNC 1
9
+
10
+ /* futimes(2) is available */
11
+ #define HAVE_FUTIMES 1
12
+
13
+ /* Define to 1 if you have the <inttypes.h> header file. */
14
+ #define HAVE_INTTYPES_H 1
15
+
16
+ /* Define to 1 if you have the <memory.h> header file. */
17
+ #define HAVE_MEMORY_H 1
18
+
19
+ /* posix_fadvise(2) is available */
20
+ /* #undef HAVE_POSIX_FADVISE */
21
+
22
+ /* posix_madvise(2) is available */
23
+ #define HAVE_POSIX_MADVISE 1
24
+
25
+ /* pread(2) and pwrite(2) are available */
26
+ #define HAVE_PREADWRITE 1
27
+
28
+ /* readahead(2) is available (linux) */
29
+ /* #undef HAVE_READAHEAD */
30
+
31
+ /* sendfile(2) is available and supported */
32
+ #define HAVE_SENDFILE 1
33
+
34
+ /* Define to 1 if you have the <stdint.h> header file. */
35
+ #define HAVE_STDINT_H 1
36
+
37
+ /* Define to 1 if you have the <stdlib.h> header file. */
38
+ #define HAVE_STDLIB_H 1
39
+
40
+ /* Define to 1 if you have the <strings.h> header file. */
41
+ #define HAVE_STRINGS_H 1
42
+
43
+ /* Define to 1 if you have the <string.h> header file. */
44
+ #define HAVE_STRING_H 1
45
+
46
+ /* sync_file_range(2) is available */
47
+ /* #undef HAVE_SYNC_FILE_RANGE */
48
+
49
+ /* Define to 1 if you have the <sys/stat.h> header file. */
50
+ #define HAVE_SYS_STAT_H 1
51
+
52
+ /* Define to 1 if you have the <sys/types.h> header file. */
53
+ #define HAVE_SYS_TYPES_H 1
54
+
55
+ /* Define to 1 if you have the <unistd.h> header file. */
56
+ #define HAVE_UNISTD_H 1
57
+
58
+ /* utimes(2) is available */
59
+ #define HAVE_UTIMES 1
60
+
61
+ /* Define to the sub-directory in which libtool stores uninstalled libraries.
62
+ */
63
+ #define LT_OBJDIR ".libs/"
64
+
65
+ /* Name of package */
66
+ #define PACKAGE "libeio"
67
+
68
+ /* Define to the address where bug reports for this package should be sent. */
69
+ #define PACKAGE_BUGREPORT ""
70
+
71
+ /* Define to the full name of this package. */
72
+ #define PACKAGE_NAME ""
73
+
74
+ /* Define to the full name and version of this package. */
75
+ #define PACKAGE_STRING ""
76
+
77
+ /* Define to the one symbol short name of this package. */
78
+ #define PACKAGE_TARNAME ""
79
+
80
+ /* Define to the home page for this package. */
81
+ #define PACKAGE_URL ""
82
+
83
+ /* Define to the version of this package. */
84
+ #define PACKAGE_VERSION ""
85
+
86
+ /* Define to 1 if you have the ANSI C header files. */
87
+ #define STDC_HEADERS 1
88
+
89
+ /* Enable extensions on AIX 3, Interix. */
90
+ #ifndef _ALL_SOURCE
91
+ # define _ALL_SOURCE 1
92
+ #endif
93
+ /* Enable GNU extensions on systems that have them. */
94
+ #ifndef _GNU_SOURCE
95
+ # define _GNU_SOURCE 1
96
+ #endif
97
+ /* Enable threading extensions on Solaris. */
98
+ #ifndef _POSIX_PTHREAD_SEMANTICS
99
+ # define _POSIX_PTHREAD_SEMANTICS 1
100
+ #endif
101
+ /* Enable extensions on HP NonStop. */
102
+ #ifndef _TANDEM_SOURCE
103
+ # define _TANDEM_SOURCE 1
104
+ #endif
105
+ /* Enable general extensions on Solaris. */
106
+ #ifndef __EXTENSIONS__
107
+ # define __EXTENSIONS__ 1
108
+ #endif
109
+
110
+
111
+ /* Version number of package */
112
+ #define VERSION "1.0"
113
+
114
+ /* Define to 1 if on MINIX. */
115
+ /* #undef _MINIX */
116
+
117
+ /* Define to 2 if the system does not provide POSIX.1 features except with
118
+ this defined. */
119
+ /* #undef _POSIX_1_SOURCE */
120
+
121
+ /* Define to 1 if you need to in order for `stat' and other things to work. */
122
+ /* #undef _POSIX_SOURCE */
@@ -0,0 +1,121 @@
1
+ /* config.h.in. Generated from configure.ac by autoheader. */
2
+
3
+ /* Define to 1 if you have the <dlfcn.h> header file. */
4
+ #undef HAVE_DLFCN_H
5
+
6
+ /* fdatasync(2) is available */
7
+ #undef HAVE_FDATASYNC
8
+
9
+ /* futimes(2) is available */
10
+ #undef HAVE_FUTIMES
11
+
12
+ /* Define to 1 if you have the <inttypes.h> header file. */
13
+ #undef HAVE_INTTYPES_H
14
+
15
+ /* Define to 1 if you have the <memory.h> header file. */
16
+ #undef HAVE_MEMORY_H
17
+
18
+ /* posix_fadvise(2) is available */
19
+ #undef HAVE_POSIX_FADVISE
20
+
21
+ /* posix_madvise(2) is available */
22
+ #undef HAVE_POSIX_MADVISE
23
+
24
+ /* pread(2) and pwrite(2) are available */
25
+ #undef HAVE_PREADWRITE
26
+
27
+ /* readahead(2) is available (linux) */
28
+ #undef HAVE_READAHEAD
29
+
30
+ /* sendfile(2) is available and supported */
31
+ #undef HAVE_SENDFILE
32
+
33
+ /* Define to 1 if you have the <stdint.h> header file. */
34
+ #undef HAVE_STDINT_H
35
+
36
+ /* Define to 1 if you have the <stdlib.h> header file. */
37
+ #undef HAVE_STDLIB_H
38
+
39
+ /* Define to 1 if you have the <strings.h> header file. */
40
+ #undef HAVE_STRINGS_H
41
+
42
+ /* Define to 1 if you have the <string.h> header file. */
43
+ #undef HAVE_STRING_H
44
+
45
+ /* sync_file_range(2) is available */
46
+ #undef HAVE_SYNC_FILE_RANGE
47
+
48
+ /* Define to 1 if you have the <sys/stat.h> header file. */
49
+ #undef HAVE_SYS_STAT_H
50
+
51
+ /* Define to 1 if you have the <sys/types.h> header file. */
52
+ #undef HAVE_SYS_TYPES_H
53
+
54
+ /* Define to 1 if you have the <unistd.h> header file. */
55
+ #undef HAVE_UNISTD_H
56
+
57
+ /* utimes(2) is available */
58
+ #undef HAVE_UTIMES
59
+
60
+ /* Define to the sub-directory in which libtool stores uninstalled libraries.
61
+ */
62
+ #undef LT_OBJDIR
63
+
64
+ /* Name of package */
65
+ #undef PACKAGE
66
+
67
+ /* Define to the address where bug reports for this package should be sent. */
68
+ #undef PACKAGE_BUGREPORT
69
+
70
+ /* Define to the full name of this package. */
71
+ #undef PACKAGE_NAME
72
+
73
+ /* Define to the full name and version of this package. */
74
+ #undef PACKAGE_STRING
75
+
76
+ /* Define to the one symbol short name of this package. */
77
+ #undef PACKAGE_TARNAME
78
+
79
+ /* Define to the home page for this package. */
80
+ #undef PACKAGE_URL
81
+
82
+ /* Define to the version of this package. */
83
+ #undef PACKAGE_VERSION
84
+
85
+ /* Define to 1 if you have the ANSI C header files. */
86
+ #undef STDC_HEADERS
87
+
88
+ /* Enable extensions on AIX 3, Interix. */
89
+ #ifndef _ALL_SOURCE
90
+ # undef _ALL_SOURCE
91
+ #endif
92
+ /* Enable GNU extensions on systems that have them. */
93
+ #ifndef _GNU_SOURCE
94
+ # undef _GNU_SOURCE
95
+ #endif
96
+ /* Enable threading extensions on Solaris. */
97
+ #ifndef _POSIX_PTHREAD_SEMANTICS
98
+ # undef _POSIX_PTHREAD_SEMANTICS
99
+ #endif
100
+ /* Enable extensions on HP NonStop. */
101
+ #ifndef _TANDEM_SOURCE
102
+ # undef _TANDEM_SOURCE
103
+ #endif
104
+ /* Enable general extensions on Solaris. */
105
+ #ifndef __EXTENSIONS__
106
+ # undef __EXTENSIONS__
107
+ #endif
108
+
109
+
110
+ /* Version number of package */
111
+ #undef VERSION
112
+
113
+ /* Define to 1 if on MINIX. */
114
+ #undef _MINIX
115
+
116
+ /* Define to 2 if the system does not provide POSIX.1 features except with
117
+ this defined. */
118
+ #undef _POSIX_1_SOURCE
119
+
120
+ /* Define to 1 if you need to in order for `stat' and other things to work. */
121
+ #undef _POSIX_SOURCE
@@ -0,0 +1,2035 @@
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
+
11
+ SHELL=${CONFIG_SHELL-/bin/sh}
12
+ export SHELL
13
+ ## -------------------- ##
14
+ ## M4sh Initialization. ##
15
+ ## -------------------- ##
16
+
17
+ # Be more Bourne compatible
18
+ DUALCASE=1; export DUALCASE # for MKS sh
19
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
+ emulate sh
21
+ NULLCMD=:
22
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
+ # is contrary to our usage. Disable this feature.
24
+ alias -g '${1+"$@"}'='"$@"'
25
+ setopt NO_GLOB_SUBST
26
+ else
27
+ case `(set -o) 2>/dev/null` in #(
28
+ *posix*) :
29
+ set -o posix ;; #(
30
+ *) :
31
+ ;;
32
+ esac
33
+ fi
34
+
35
+
36
+ as_nl='
37
+ '
38
+ export as_nl
39
+ # Printing a long string crashes Solaris 7 /usr/bin/printf.
40
+ as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
+ as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
+ as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
+ # Prefer a ksh shell builtin over an external printf program on Solaris,
44
+ # but without wasting forks for bash or zsh.
45
+ if test -z "$BASH_VERSION$ZSH_VERSION" \
46
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
+ as_echo='print -r --'
48
+ as_echo_n='print -rn --'
49
+ elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
+ as_echo='printf %s\n'
51
+ as_echo_n='printf %s'
52
+ else
53
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
+ as_echo_n='/usr/ucb/echo -n'
56
+ else
57
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
+ as_echo_n_body='eval
59
+ arg=$1;
60
+ case $arg in #(
61
+ *"$as_nl"*)
62
+ expr "X$arg" : "X\\(.*\\)$as_nl";
63
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
+ esac;
65
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
+ '
67
+ export as_echo_n_body
68
+ as_echo_n='sh -c $as_echo_n_body as_echo'
69
+ fi
70
+ export as_echo_body
71
+ as_echo='sh -c $as_echo_body as_echo'
72
+ fi
73
+
74
+ # The user is always right.
75
+ if test "${PATH_SEPARATOR+set}" != set; then
76
+ PATH_SEPARATOR=:
77
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
+ PATH_SEPARATOR=';'
80
+ }
81
+ fi
82
+
83
+
84
+ # IFS
85
+ # We need space, tab and new line, in precisely that order. Quoting is
86
+ # there to prevent editors from complaining about space-tab.
87
+ # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
+ # splitting by setting IFS to empty value.)
89
+ IFS=" "" $as_nl"
90
+
91
+ # Find who we are. Look in the path if we contain no directory separator.
92
+ case $0 in #((
93
+ *[\\/]* ) as_myself=$0 ;;
94
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95
+ for as_dir in $PATH
96
+ do
97
+ IFS=$as_save_IFS
98
+ test -z "$as_dir" && as_dir=.
99
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100
+ done
101
+ IFS=$as_save_IFS
102
+
103
+ ;;
104
+ esac
105
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
106
+ # in which case we are not to be found in the path.
107
+ if test "x$as_myself" = x; then
108
+ as_myself=$0
109
+ fi
110
+ if test ! -f "$as_myself"; then
111
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112
+ exit 1
113
+ fi
114
+
115
+ # Unset variables that we do not need and which cause bugs (e.g. in
116
+ # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
+ # suppresses any "Segmentation fault" message there. '((' could
118
+ # trigger a bug in pdksh 5.2.14.
119
+ for as_var in BASH_ENV ENV MAIL MAILPATH
120
+ do eval test x\${$as_var+set} = xset \
121
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122
+ done
123
+ PS1='$ '
124
+ PS2='> '
125
+ PS4='+ '
126
+
127
+ # NLS nuisances.
128
+ LC_ALL=C
129
+ export LC_ALL
130
+ LANGUAGE=C
131
+ export LANGUAGE
132
+
133
+ # CDPATH.
134
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
+
136
+
137
+ # as_fn_error ERROR [LINENO LOG_FD]
138
+ # ---------------------------------
139
+ # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
140
+ # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
141
+ # script with status $?, using 1 if that was 0.
142
+ as_fn_error ()
143
+ {
144
+ as_status=$?; test $as_status -eq 0 && as_status=1
145
+ if test "$3"; then
146
+ as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
147
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
148
+ fi
149
+ $as_echo "$as_me: error: $1" >&2
150
+ as_fn_exit $as_status
151
+ } # as_fn_error
152
+
153
+
154
+ # as_fn_set_status STATUS
155
+ # -----------------------
156
+ # Set $? to STATUS, without forking.
157
+ as_fn_set_status ()
158
+ {
159
+ return $1
160
+ } # as_fn_set_status
161
+
162
+ # as_fn_exit STATUS
163
+ # -----------------
164
+ # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
165
+ as_fn_exit ()
166
+ {
167
+ set +e
168
+ as_fn_set_status $1
169
+ exit $1
170
+ } # as_fn_exit
171
+
172
+ # as_fn_unset VAR
173
+ # ---------------
174
+ # Portably unset VAR.
175
+ as_fn_unset ()
176
+ {
177
+ { eval $1=; unset $1;}
178
+ }
179
+ as_unset=as_fn_unset
180
+ # as_fn_append VAR VALUE
181
+ # ----------------------
182
+ # Append the text in VALUE to the end of the definition contained in VAR. Take
183
+ # advantage of any shell optimizations that allow amortized linear growth over
184
+ # repeated appends, instead of the typical quadratic growth present in naive
185
+ # implementations.
186
+ if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
187
+ eval 'as_fn_append ()
188
+ {
189
+ eval $1+=\$2
190
+ }'
191
+ else
192
+ as_fn_append ()
193
+ {
194
+ eval $1=\$$1\$2
195
+ }
196
+ fi # as_fn_append
197
+
198
+ # as_fn_arith ARG...
199
+ # ------------------
200
+ # Perform arithmetic evaluation on the ARGs, and store the result in the
201
+ # global $as_val. Take advantage of shells that can avoid forks. The arguments
202
+ # must be portable across $(()) and expr.
203
+ if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
204
+ eval 'as_fn_arith ()
205
+ {
206
+ as_val=$(( $* ))
207
+ }'
208
+ else
209
+ as_fn_arith ()
210
+ {
211
+ as_val=`expr "$@" || test $? -eq 1`
212
+ }
213
+ fi # as_fn_arith
214
+
215
+
216
+ if expr a : '\(a\)' >/dev/null 2>&1 &&
217
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
218
+ as_expr=expr
219
+ else
220
+ as_expr=false
221
+ fi
222
+
223
+ if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
224
+ as_basename=basename
225
+ else
226
+ as_basename=false
227
+ fi
228
+
229
+ if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
230
+ as_dirname=dirname
231
+ else
232
+ as_dirname=false
233
+ fi
234
+
235
+ as_me=`$as_basename -- "$0" ||
236
+ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
237
+ X"$0" : 'X\(//\)$' \| \
238
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
239
+ $as_echo X/"$0" |
240
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
241
+ s//\1/
242
+ q
243
+ }
244
+ /^X\/\(\/\/\)$/{
245
+ s//\1/
246
+ q
247
+ }
248
+ /^X\/\(\/\).*/{
249
+ s//\1/
250
+ q
251
+ }
252
+ s/.*/./; q'`
253
+
254
+ # Avoid depending upon Character Ranges.
255
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
256
+ as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
257
+ as_cr_Letters=$as_cr_letters$as_cr_LETTERS
258
+ as_cr_digits='0123456789'
259
+ as_cr_alnum=$as_cr_Letters$as_cr_digits
260
+
261
+ ECHO_C= ECHO_N= ECHO_T=
262
+ case `echo -n x` in #(((((
263
+ -n*)
264
+ case `echo 'xy\c'` in
265
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
266
+ xy) ECHO_C='\c';;
267
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
268
+ ECHO_T=' ';;
269
+ esac;;
270
+ *)
271
+ ECHO_N='-n';;
272
+ esac
273
+
274
+ rm -f conf$$ conf$$.exe conf$$.file
275
+ if test -d conf$$.dir; then
276
+ rm -f conf$$.dir/conf$$.file
277
+ else
278
+ rm -f conf$$.dir
279
+ mkdir conf$$.dir 2>/dev/null
280
+ fi
281
+ if (echo >conf$$.file) 2>/dev/null; then
282
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
283
+ as_ln_s='ln -s'
284
+ # ... but there are two gotchas:
285
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
286
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
287
+ # In both cases, we have to default to `cp -p'.
288
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
289
+ as_ln_s='cp -p'
290
+ elif ln conf$$.file conf$$ 2>/dev/null; then
291
+ as_ln_s=ln
292
+ else
293
+ as_ln_s='cp -p'
294
+ fi
295
+ else
296
+ as_ln_s='cp -p'
297
+ fi
298
+ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
299
+ rmdir conf$$.dir 2>/dev/null
300
+
301
+
302
+ # as_fn_mkdir_p
303
+ # -------------
304
+ # Create "$as_dir" as a directory, including parents if necessary.
305
+ as_fn_mkdir_p ()
306
+ {
307
+
308
+ case $as_dir in #(
309
+ -*) as_dir=./$as_dir;;
310
+ esac
311
+ test -d "$as_dir" || eval $as_mkdir_p || {
312
+ as_dirs=
313
+ while :; do
314
+ case $as_dir in #(
315
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
316
+ *) as_qdir=$as_dir;;
317
+ esac
318
+ as_dirs="'$as_qdir' $as_dirs"
319
+ as_dir=`$as_dirname -- "$as_dir" ||
320
+ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
321
+ X"$as_dir" : 'X\(//\)[^/]' \| \
322
+ X"$as_dir" : 'X\(//\)$' \| \
323
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
324
+ $as_echo X"$as_dir" |
325
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326
+ s//\1/
327
+ q
328
+ }
329
+ /^X\(\/\/\)[^/].*/{
330
+ s//\1/
331
+ q
332
+ }
333
+ /^X\(\/\/\)$/{
334
+ s//\1/
335
+ q
336
+ }
337
+ /^X\(\/\).*/{
338
+ s//\1/
339
+ q
340
+ }
341
+ s/.*/./; q'`
342
+ test -d "$as_dir" && break
343
+ done
344
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
345
+ } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
346
+
347
+
348
+ } # as_fn_mkdir_p
349
+ if mkdir -p . 2>/dev/null; then
350
+ as_mkdir_p='mkdir -p "$as_dir"'
351
+ else
352
+ test -d ./-p && rmdir ./-p
353
+ as_mkdir_p=false
354
+ fi
355
+
356
+ if test -x / >/dev/null 2>&1; then
357
+ as_test_x='test -x'
358
+ else
359
+ if ls -dL / >/dev/null 2>&1; then
360
+ as_ls_L_option=L
361
+ else
362
+ as_ls_L_option=
363
+ fi
364
+ as_test_x='
365
+ eval sh -c '\''
366
+ if test -d "$1"; then
367
+ test -d "$1/.";
368
+ else
369
+ case $1 in #(
370
+ -*)set "./$1";;
371
+ esac;
372
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
373
+ ???[sx]*):;;*)false;;esac;fi
374
+ '\'' sh
375
+ '
376
+ fi
377
+ as_executable_p=$as_test_x
378
+
379
+ # Sed expression to map a string onto a valid CPP name.
380
+ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
381
+
382
+ # Sed expression to map a string onto a valid variable name.
383
+ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
384
+
385
+
386
+ exec 6>&1
387
+ ## ----------------------------------- ##
388
+ ## Main body of $CONFIG_STATUS script. ##
389
+ ## ----------------------------------- ##
390
+ # Save the log message, to keep $0 and so on meaningful, and to
391
+ # report actual input values of CONFIG_FILES etc. instead of their
392
+ # values after options handling.
393
+ ac_log="
394
+ This file was extended by $as_me, which was
395
+ generated by GNU Autoconf 2.65. Invocation command line was
396
+
397
+ CONFIG_FILES = $CONFIG_FILES
398
+ CONFIG_HEADERS = $CONFIG_HEADERS
399
+ CONFIG_LINKS = $CONFIG_LINKS
400
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
401
+ $ $0 $@
402
+
403
+ on `(hostname || uname -n) 2>/dev/null | sed 1q`
404
+ "
405
+
406
+ # Files that config.status was made for.
407
+ config_files=" Makefile"
408
+ config_headers=" config.h"
409
+ config_commands=" depfiles libtool"
410
+
411
+ ac_cs_usage="\
412
+ \`$as_me' instantiates files and other configuration actions
413
+ from templates according to the current configuration. Unless the files
414
+ and actions are specified as TAGs, all are instantiated by default.
415
+
416
+ Usage: $0 [OPTION]... [TAG]...
417
+
418
+ -h, --help print this help, then exit
419
+ -V, --version print version number and configuration settings, then exit
420
+ --config print configuration, then exit
421
+ -q, --quiet, --silent
422
+ do not print progress messages
423
+ -d, --debug don't remove temporary files
424
+ --recheck update $as_me by reconfiguring in the same conditions
425
+ --file=FILE[:TEMPLATE]
426
+ instantiate the configuration file FILE
427
+ --header=FILE[:TEMPLATE]
428
+ instantiate the configuration header FILE
429
+
430
+ Configuration files:
431
+ $config_files
432
+
433
+ Configuration headers:
434
+ $config_headers
435
+
436
+ Configuration commands:
437
+ $config_commands
438
+
439
+ Report bugs to the package provider."
440
+
441
+ ac_cs_config=""
442
+ ac_cs_version="\
443
+ config.status
444
+ configured by ./configure, generated by GNU Autoconf 2.65,
445
+ with options \"$ac_cs_config\"
446
+
447
+ Copyright (C) 2009 Free Software Foundation, Inc.
448
+ This config.status script is free software; the Free Software Foundation
449
+ gives unlimited permission to copy, distribute and modify it."
450
+
451
+ ac_pwd='/Users/lourens/projects/eio/ext/libeio'
452
+ srcdir='.'
453
+ INSTALL='/usr/bin/install -c'
454
+ MKDIR_P='./install-sh -c -d'
455
+ AWK='gawk'
456
+ test -n "$AWK" || AWK=awk
457
+ # The default lists apply if the user does not specify any file.
458
+ ac_need_defaults=:
459
+ while test $# != 0
460
+ do
461
+ case $1 in
462
+ --*=*)
463
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
464
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
465
+ ac_shift=:
466
+ ;;
467
+ *)
468
+ ac_option=$1
469
+ ac_optarg=$2
470
+ ac_shift=shift
471
+ ;;
472
+ esac
473
+
474
+ case $ac_option in
475
+ # Handling of the options.
476
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
477
+ ac_cs_recheck=: ;;
478
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
479
+ $as_echo "$ac_cs_version"; exit ;;
480
+ --config | --confi | --conf | --con | --co | --c )
481
+ $as_echo "$ac_cs_config"; exit ;;
482
+ --debug | --debu | --deb | --de | --d | -d )
483
+ debug=: ;;
484
+ --file | --fil | --fi | --f )
485
+ $ac_shift
486
+ case $ac_optarg in
487
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
488
+ esac
489
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
490
+ ac_need_defaults=false;;
491
+ --header | --heade | --head | --hea )
492
+ $ac_shift
493
+ case $ac_optarg in
494
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
495
+ esac
496
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
497
+ ac_need_defaults=false;;
498
+ --he | --h)
499
+ # Conflict between --help and --header
500
+ as_fn_error "ambiguous option: \`$1'
501
+ Try \`$0 --help' for more information.";;
502
+ --help | --hel | -h )
503
+ $as_echo "$ac_cs_usage"; exit ;;
504
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
505
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
506
+ ac_cs_silent=: ;;
507
+
508
+ # This is an error.
509
+ -*) as_fn_error "unrecognized option: \`$1'
510
+ Try \`$0 --help' for more information." ;;
511
+
512
+ *) as_fn_append ac_config_targets " $1"
513
+ ac_need_defaults=false ;;
514
+
515
+ esac
516
+ shift
517
+ done
518
+
519
+ ac_configure_extra_args=
520
+
521
+ if $ac_cs_silent; then
522
+ exec 6>/dev/null
523
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
524
+ fi
525
+
526
+ if $ac_cs_recheck; then
527
+ set X '/bin/sh' './configure' $ac_configure_extra_args --no-create --no-recursion
528
+ shift
529
+ $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
530
+ CONFIG_SHELL='/bin/sh'
531
+ export CONFIG_SHELL
532
+ exec "$@"
533
+ fi
534
+
535
+ exec 5>>config.log
536
+ {
537
+ echo
538
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
539
+ ## Running $as_me. ##
540
+ _ASBOX
541
+ $as_echo "$ac_log"
542
+ } >&5
543
+
544
+ #
545
+ # INIT-COMMANDS
546
+ #
547
+ AMDEP_TRUE="" ac_aux_dir="."
548
+
549
+
550
+ # The HP-UX ksh and POSIX shell print the target directory to stdout
551
+ # if CDPATH is set.
552
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
553
+
554
+ sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
555
+ double_quote_subst='s/\(["`\\]\)/\\\1/g'
556
+ delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
557
+ macro_version='2.2.6b'
558
+ macro_revision='1.3017'
559
+ enable_shared='yes'
560
+ enable_static='yes'
561
+ pic_mode='default'
562
+ enable_fast_install='needless'
563
+ host_alias=''
564
+ host='x86_64-apple-darwin10.7.0'
565
+ host_os='darwin10.7.0'
566
+ build_alias=''
567
+ build='x86_64-apple-darwin10.7.0'
568
+ build_os='darwin10.7.0'
569
+ SED='/opt/local/bin/gsed'
570
+ Xsed='/opt/local/bin/gsed -e 1s/^X//'
571
+ GREP='/usr/bin/grep'
572
+ EGREP='/usr/bin/grep -E'
573
+ FGREP='/usr/bin/grep -F'
574
+ LD='/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld'
575
+ NM='/usr/bin/nm'
576
+ LN_S='ln -s'
577
+ max_cmd_len='196608'
578
+ ac_objext='o'
579
+ exeext=''
580
+ lt_unset='unset'
581
+ lt_SP2NL='tr \040 \012'
582
+ lt_NL2SP='tr \015\012 \040\040'
583
+ reload_flag=' -r'
584
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
585
+ OBJDUMP='false'
586
+ deplibs_check_method='pass_all'
587
+ file_magic_cmd='$MAGIC_CMD'
588
+ AR='ar'
589
+ AR_FLAGS='cru'
590
+ STRIP='strip'
591
+ RANLIB='ranlib'
592
+ old_postinstall_cmds='chmod 644 $oldlib~$RANLIB $oldlib'
593
+ old_postuninstall_cmds=''
594
+ old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib'
595
+ CC='gcc'
596
+ CFLAGS='-O3 -g -O2'
597
+ compiler='gcc'
598
+ GCC='yes'
599
+ lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p'\'''
600
+ lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[BCDEGRST]* .* \(.*\)$/extern char \1;/p'\'''
601
+ lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\'''
602
+ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[BCDEGRST]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\'''
603
+ objdir='.libs'
604
+ SHELL='/bin/sh'
605
+ ECHO='/bin/echo'
606
+ MAGIC_CMD='file'
607
+ lt_prog_compiler_no_builtin_flag=' -fno-builtin'
608
+ lt_prog_compiler_wl='-Wl,'
609
+ lt_prog_compiler_pic=' -fno-common -DPIC'
610
+ lt_prog_compiler_static=''
611
+ lt_cv_prog_compiler_c_o='yes'
612
+ need_locks='no'
613
+ DSYMUTIL='dsymutil'
614
+ NMEDIT='nmedit'
615
+ LIPO='lipo'
616
+ OTOOL='otool'
617
+ OTOOL64=':'
618
+ libext='a'
619
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
620
+ extract_expsyms_cmds=''
621
+ archive_cmds_need_lc='no'
622
+ enable_shared_with_static_runtimes='no'
623
+ export_dynamic_flag_spec=''
624
+ whole_archive_flag_spec=''
625
+ compiler_needs_object='no'
626
+ old_archive_from_new_cmds=''
627
+ old_archive_from_expsyms_cmds=''
628
+ archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring $single_module~$DSYMUTIL $lib || :'
629
+ archive_expsym_cmds='sed '\''s,^,_,'\'' < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring $single_module ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym~$DSYMUTIL $lib || :'
630
+ module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs $compiler_flags~$DSYMUTIL $lib || :'
631
+ module_expsym_cmds='sed -e '\''s,^,_,'\'' < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs $compiler_flags ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym~$DSYMUTIL $lib || :'
632
+ with_gnu_ld='no'
633
+ allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
634
+ no_undefined_flag=''
635
+ hardcode_libdir_flag_spec=''
636
+ hardcode_libdir_flag_spec_ld=''
637
+ hardcode_libdir_separator=''
638
+ hardcode_direct='no'
639
+ hardcode_direct_absolute='no'
640
+ hardcode_minus_L='no'
641
+ hardcode_shlibpath_var='unsupported'
642
+ hardcode_automatic='yes'
643
+ inherit_rpath='no'
644
+ link_all_deplibs='yes'
645
+ fix_srcfile_path=''
646
+ always_export_symbols='no'
647
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
648
+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
649
+ include_expsyms=''
650
+ prelink_cmds=''
651
+ file_list_spec=''
652
+ variables_saved_for_relink='PATH DYLD_LIBRARY_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH'
653
+ need_lib_prefix='no'
654
+ need_version='no'
655
+ version_type='darwin'
656
+ runpath_var=''
657
+ shlibpath_var='DYLD_LIBRARY_PATH'
658
+ shlibpath_overrides_runpath='yes'
659
+ libname_spec='lib$name'
660
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
661
+ soname_spec='${libname}${release}${major}$shared_ext'
662
+ postinstall_cmds=''
663
+ postuninstall_cmds=''
664
+ finish_cmds=''
665
+ finish_eval=''
666
+ hardcode_into_libs='no'
667
+ sys_lib_search_path_spec='/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 /usr/lib/i686-apple-darwin10/4.2.1 /usr/lib /usr/local/lib'
668
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
669
+ hardcode_action='immediate'
670
+ enable_dlopen='unknown'
671
+ enable_dlopen_self='unknown'
672
+ enable_dlopen_self_static='unknown'
673
+ old_striplib='strip -S'
674
+ striplib='strip -x'
675
+
676
+ LTCC='gcc'
677
+ LTCFLAGS='-g -O2'
678
+ compiler='gcc'
679
+
680
+ # Quote evaled strings.
681
+ for var in SED GREP EGREP FGREP LD NM LN_S lt_SP2NL lt_NL2SP reload_flag OBJDUMP deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB CC CFLAGS compiler lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address lt_cv_sys_global_symbol_to_c_name_address_lib_prefix SHELL ECHO lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks DSYMUTIL NMEDIT LIPO OTOOL OTOOL64 shrext_cmds export_dynamic_flag_spec whole_archive_flag_spec compiler_needs_object with_gnu_ld allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms file_list_spec variables_saved_for_relink libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do
682
+ case `eval \\$ECHO "X\\$$var"` in
683
+ *[\\\`\"\$]*)
684
+ eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
685
+ ;;
686
+ *)
687
+ eval "lt_$var=\\\"\$$var\\\""
688
+ ;;
689
+ esac
690
+ done
691
+
692
+ # Double-quote double-evaled strings.
693
+ for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds prelink_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do
694
+ case `eval \\$ECHO "X\\$$var"` in
695
+ *[\\\`\"\$]*)
696
+ eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
697
+ ;;
698
+ *)
699
+ eval "lt_$var=\\\"\$$var\\\""
700
+ ;;
701
+ esac
702
+ done
703
+
704
+ # Fix-up fallback echo if it was mangled by the above quoting rules.
705
+ case $lt_ECHO in
706
+ *'\$0 --fallback-echo"') lt_ECHO=`$ECHO "X$lt_ECHO" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
707
+ ;;
708
+ esac
709
+
710
+ ac_aux_dir='.'
711
+ xsi_shell='yes'
712
+ lt_shell_append='yes'
713
+
714
+ # See if we are running on zsh, and set the options which allow our
715
+ # commands through without removal of \ escapes INIT.
716
+ if test -n "${ZSH_VERSION+set}" ; then
717
+ setopt NO_GLOB_SUBST
718
+ fi
719
+
720
+
721
+ PACKAGE='libeio'
722
+ VERSION='1.0'
723
+ TIMESTAMP=''
724
+ RM='rm -f'
725
+ ofile='libtool'
726
+
727
+
728
+
729
+
730
+
731
+ # Handling of arguments.
732
+ for ac_config_target in $ac_config_targets
733
+ do
734
+ case $ac_config_target in
735
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
736
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
737
+ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
738
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
739
+
740
+ *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
741
+ esac
742
+ done
743
+
744
+
745
+ # If the user did not use the arguments to specify the items to instantiate,
746
+ # then the envvar interface is used. Set only those that are not.
747
+ # We use the long form for the default assignment because of an extremely
748
+ # bizarre bug on SunOS 4.1.3.
749
+ if $ac_need_defaults; then
750
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
751
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
752
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
753
+ fi
754
+
755
+ # Have a temporary directory for convenience. Make it in the build tree
756
+ # simply because there is no reason against having it here, and in addition,
757
+ # creating and moving files from /tmp can sometimes cause problems.
758
+ # Hook for its removal unless debugging.
759
+ # Note that there is a small window in which the directory will not be cleaned:
760
+ # after its creation but before its name has been assigned to `$tmp'.
761
+ $debug ||
762
+ {
763
+ tmp=
764
+ trap 'exit_status=$?
765
+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
766
+ ' 0
767
+ trap 'as_fn_exit 1' 1 2 13 15
768
+ }
769
+ # Create a (secure) tmp directory for tmp files.
770
+
771
+ {
772
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
773
+ test -n "$tmp" && test -d "$tmp"
774
+ } ||
775
+ {
776
+ tmp=./conf$$-$RANDOM
777
+ (umask 077 && mkdir "$tmp")
778
+ } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
779
+
780
+ # Set up the scripts for CONFIG_FILES section.
781
+ # No need to generate them if there are no CONFIG_FILES.
782
+ # This happens for instance with `./config.status config.h'.
783
+ if test -n "$CONFIG_FILES"; then
784
+
785
+
786
+ ac_cr=`echo X | tr X '\015'`
787
+ # On cygwin, bash can eat \r inside `` if the user requested igncr.
788
+ # But we know of no other shell where ac_cr would be empty at this
789
+ # point, so we can use a bashism as a fallback.
790
+ if test "x$ac_cr" = x; then
791
+ eval ac_cr=\$\'\\r\'
792
+ fi
793
+ ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
794
+ if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
795
+ ac_cs_awk_cr='\r'
796
+ else
797
+ ac_cs_awk_cr=$ac_cr
798
+ fi
799
+
800
+ echo 'BEGIN {' >"$tmp/subs1.awk" &&
801
+ cat >>"$tmp/subs1.awk" <<\_ACAWK &&
802
+ S["am__EXEEXT_FALSE"]=""
803
+ S["am__EXEEXT_TRUE"]="#"
804
+ S["LTLIBOBJS"]=""
805
+ S["LIBOBJS"]=""
806
+ S["OTOOL64"]=":"
807
+ S["OTOOL"]="otool"
808
+ S["LIPO"]="lipo"
809
+ S["NMEDIT"]="nmedit"
810
+ S["DSYMUTIL"]="dsymutil"
811
+ S["lt_ECHO"]="/bin/echo"
812
+ S["RANLIB"]="ranlib"
813
+ S["AR"]="ar"
814
+ S["OBJDUMP"]="false"
815
+ S["LN_S"]="ln -s"
816
+ S["NM"]="/usr/bin/nm"
817
+ S["ac_ct_DUMPBIN"]=""
818
+ S["DUMPBIN"]=""
819
+ S["LD"]="/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld"
820
+ S["FGREP"]="/usr/bin/grep -F"
821
+ S["SED"]="/opt/local/bin/gsed"
822
+ S["host_os"]="darwin10.7.0"
823
+ S["host_vendor"]="apple"
824
+ S["host_cpu"]="x86_64"
825
+ S["host"]="x86_64-apple-darwin10.7.0"
826
+ S["build_os"]="darwin10.7.0"
827
+ S["build_vendor"]="apple"
828
+ S["build_cpu"]="x86_64"
829
+ S["build"]="x86_64-apple-darwin10.7.0"
830
+ S["LIBTOOL"]="$(SHELL) $(top_builddir)/libtool"
831
+ S["EGREP"]="/usr/bin/grep -E"
832
+ S["GREP"]="/usr/bin/grep"
833
+ S["CPP"]="gcc -E"
834
+ S["am__fastdepCC_FALSE"]=""
835
+ S["am__fastdepCC_TRUE"]="#"
836
+ S["CCDEPMODE"]="depmode=none"
837
+ S["AMDEPBACKSLASH"]="\\"
838
+ S["AMDEP_FALSE"]="#"
839
+ S["AMDEP_TRUE"]=""
840
+ S["am__quote"]=""
841
+ S["am__include"]="include"
842
+ S["DEPDIR"]=".deps"
843
+ S["OBJEXT"]="o"
844
+ S["EXEEXT"]=""
845
+ S["ac_ct_CC"]="gcc"
846
+ S["CPPFLAGS"]=""
847
+ S["LDFLAGS"]=""
848
+ S["CFLAGS"]="-O3 -g -O2"
849
+ S["CC"]="gcc"
850
+ S["MAINT"]="#"
851
+ S["MAINTAINER_MODE_FALSE"]=""
852
+ S["MAINTAINER_MODE_TRUE"]="#"
853
+ S["am__untar"]="${AMTAR} xf -"
854
+ S["am__tar"]="${AMTAR} chof - \"$$tardir\""
855
+ S["AMTAR"]="${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run tar"
856
+ S["am__leading_dot"]="."
857
+ S["SET_MAKE"]=""
858
+ S["AWK"]="gawk"
859
+ S["mkdir_p"]="$(top_builddir)/./install-sh -c -d"
860
+ S["MKDIR_P"]="./install-sh -c -d"
861
+ S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s"
862
+ S["STRIP"]="strip"
863
+ S["install_sh"]="${SHELL} /Users/lourens/projects/eio/ext/libeio/install-sh"
864
+ S["MAKEINFO"]="${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run makeinfo"
865
+ S["AUTOHEADER"]="${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run autoheader"
866
+ S["AUTOMAKE"]="${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run automake-1.11"
867
+ S["AUTOCONF"]="${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run autoconf"
868
+ S["ACLOCAL"]="${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run aclocal-1.11"
869
+ S["VERSION"]="1.0"
870
+ S["PACKAGE"]="libeio"
871
+ S["CYGPATH_W"]="echo"
872
+ S["am__isrc"]=""
873
+ S["INSTALL_DATA"]="${INSTALL} -m 644"
874
+ S["INSTALL_SCRIPT"]="${INSTALL}"
875
+ S["INSTALL_PROGRAM"]="${INSTALL}"
876
+ S["target_alias"]=""
877
+ S["host_alias"]=""
878
+ S["build_alias"]=""
879
+ S["LIBS"]=""
880
+ S["ECHO_T"]=""
881
+ S["ECHO_N"]=""
882
+ S["ECHO_C"]="\\c"
883
+ S["DEFS"]="-DHAVE_CONFIG_H"
884
+ S["mandir"]="${datarootdir}/man"
885
+ S["localedir"]="${datarootdir}/locale"
886
+ S["libdir"]="${exec_prefix}/lib"
887
+ S["psdir"]="${docdir}"
888
+ S["pdfdir"]="${docdir}"
889
+ S["dvidir"]="${docdir}"
890
+ S["htmldir"]="${docdir}"
891
+ S["infodir"]="${datarootdir}/info"
892
+ S["docdir"]="${datarootdir}/doc/${PACKAGE}"
893
+ S["oldincludedir"]="/usr/include"
894
+ S["includedir"]="${prefix}/include"
895
+ S["localstatedir"]="${prefix}/var"
896
+ S["sharedstatedir"]="${prefix}/com"
897
+ S["sysconfdir"]="${prefix}/etc"
898
+ S["datadir"]="${datarootdir}"
899
+ S["datarootdir"]="${prefix}/share"
900
+ S["libexecdir"]="${exec_prefix}/libexec"
901
+ S["sbindir"]="${exec_prefix}/sbin"
902
+ S["bindir"]="${exec_prefix}/bin"
903
+ S["program_transform_name"]="s,x,x,"
904
+ S["prefix"]="/usr/local"
905
+ S["exec_prefix"]="${prefix}"
906
+ S["PACKAGE_URL"]=""
907
+ S["PACKAGE_BUGREPORT"]=""
908
+ S["PACKAGE_STRING"]=""
909
+ S["PACKAGE_VERSION"]=""
910
+ S["PACKAGE_TARNAME"]=""
911
+ S["PACKAGE_NAME"]=""
912
+ S["PATH_SEPARATOR"]=":"
913
+ S["SHELL"]="/bin/sh"
914
+ _ACAWK
915
+ cat >>"$tmp/subs1.awk" <<_ACAWK &&
916
+ for (key in S) S_is_set[key] = 1
917
+ FS = ""
918
+
919
+ }
920
+ {
921
+ line = $ 0
922
+ nfields = split(line, field, "@")
923
+ substed = 0
924
+ len = length(field[1])
925
+ for (i = 2; i < nfields; i++) {
926
+ key = field[i]
927
+ keylen = length(key)
928
+ if (S_is_set[key]) {
929
+ value = S[key]
930
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
931
+ len += length(value) + length(field[++i])
932
+ substed = 1
933
+ } else
934
+ len += 1 + keylen
935
+ }
936
+
937
+ print line
938
+ }
939
+
940
+ _ACAWK
941
+ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
942
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
943
+ else
944
+ cat
945
+ fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
946
+ || as_fn_error "could not setup config files machinery" "$LINENO" 5
947
+ fi # test -n "$CONFIG_FILES"
948
+
949
+ # Set up the scripts for CONFIG_HEADERS section.
950
+ # No need to generate them if there are no CONFIG_HEADERS.
951
+ # This happens for instance with `./config.status Makefile'.
952
+ if test -n "$CONFIG_HEADERS"; then
953
+ cat >"$tmp/defines.awk" <<\_ACAWK ||
954
+ BEGIN {
955
+ D["PACKAGE_NAME"]=" \"\""
956
+ D["PACKAGE_TARNAME"]=" \"\""
957
+ D["PACKAGE_VERSION"]=" \"\""
958
+ D["PACKAGE_STRING"]=" \"\""
959
+ D["PACKAGE_BUGREPORT"]=" \"\""
960
+ D["PACKAGE_URL"]=" \"\""
961
+ D["PACKAGE"]=" \"libeio\""
962
+ D["VERSION"]=" \"1.0\""
963
+ D["STDC_HEADERS"]=" 1"
964
+ D["HAVE_SYS_TYPES_H"]=" 1"
965
+ D["HAVE_SYS_STAT_H"]=" 1"
966
+ D["HAVE_STDLIB_H"]=" 1"
967
+ D["HAVE_STRING_H"]=" 1"
968
+ D["HAVE_MEMORY_H"]=" 1"
969
+ D["HAVE_STRINGS_H"]=" 1"
970
+ D["HAVE_INTTYPES_H"]=" 1"
971
+ D["HAVE_STDINT_H"]=" 1"
972
+ D["HAVE_UNISTD_H"]=" 1"
973
+ D["__EXTENSIONS__"]=" 1"
974
+ D["_ALL_SOURCE"]=" 1"
975
+ D["_GNU_SOURCE"]=" 1"
976
+ D["_POSIX_PTHREAD_SEMANTICS"]=" 1"
977
+ D["_TANDEM_SOURCE"]=" 1"
978
+ D["HAVE_DLFCN_H"]=" 1"
979
+ D["LT_OBJDIR"]=" \".libs/\""
980
+ D["HAVE_UTIMES"]=" 1"
981
+ D["HAVE_FUTIMES"]=" 1"
982
+ D["HAVE_FDATASYNC"]=" 1"
983
+ D["HAVE_PREADWRITE"]=" 1"
984
+ D["HAVE_SENDFILE"]=" 1"
985
+ D["HAVE_POSIX_MADVISE"]=" 1"
986
+ for (key in D) D_is_set[key] = 1
987
+ FS = ""
988
+ }
989
+ /^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
990
+ line = $ 0
991
+ split(line, arg, " ")
992
+ if (arg[1] == "#") {
993
+ defundef = arg[2]
994
+ mac1 = arg[3]
995
+ } else {
996
+ defundef = substr(arg[1], 2)
997
+ mac1 = arg[2]
998
+ }
999
+ split(mac1, mac2, "(") #)
1000
+ macro = mac2[1]
1001
+ prefix = substr(line, 1, index(line, defundef) - 1)
1002
+ if (D_is_set[macro]) {
1003
+ # Preserve the white space surrounding the "#".
1004
+ print prefix "define", macro P[macro] D[macro]
1005
+ next
1006
+ } else {
1007
+ # Replace #undef with comments. This is necessary, for example,
1008
+ # in the case of _POSIX_SOURCE, which is predefined and required
1009
+ # on some systems where configure will not decide to define it.
1010
+ if (defundef == "undef") {
1011
+ print "/*", prefix defundef, macro, "*/"
1012
+ next
1013
+ }
1014
+ }
1015
+ }
1016
+ { print }
1017
+ _ACAWK
1018
+ as_fn_error "could not setup config headers machinery" "$LINENO" 5
1019
+ fi # test -n "$CONFIG_HEADERS"
1020
+
1021
+
1022
+ eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
1023
+ shift
1024
+ for ac_tag
1025
+ do
1026
+ case $ac_tag in
1027
+ :[FHLC]) ac_mode=$ac_tag; continue;;
1028
+ esac
1029
+ case $ac_mode$ac_tag in
1030
+ :[FHL]*:*);;
1031
+ :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1032
+ :[FH]-) ac_tag=-:-;;
1033
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1034
+ esac
1035
+ ac_save_IFS=$IFS
1036
+ IFS=:
1037
+ set x $ac_tag
1038
+ IFS=$ac_save_IFS
1039
+ shift
1040
+ ac_file=$1
1041
+ shift
1042
+
1043
+ case $ac_mode in
1044
+ :L) ac_source=$1;;
1045
+ :[FH])
1046
+ ac_file_inputs=
1047
+ for ac_f
1048
+ do
1049
+ case $ac_f in
1050
+ -) ac_f="$tmp/stdin";;
1051
+ *) # Look for the file first in the build tree, then in the source tree
1052
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
1053
+ # because $ac_f cannot contain `:'.
1054
+ test -f "$ac_f" ||
1055
+ case $ac_f in
1056
+ [\\/$]*) false;;
1057
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1058
+ esac ||
1059
+ as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1060
+ esac
1061
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1062
+ as_fn_append ac_file_inputs " '$ac_f'"
1063
+ done
1064
+
1065
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
1066
+ # use $as_me), people would be surprised to read:
1067
+ # /* config.h. Generated by config.status. */
1068
+ configure_input='Generated from '`
1069
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1070
+ `' by configure.'
1071
+ if test x"$ac_file" != x-; then
1072
+ configure_input="$ac_file. $configure_input"
1073
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1074
+ $as_echo "$as_me: creating $ac_file" >&6;}
1075
+ fi
1076
+ # Neutralize special characters interpreted by sed in replacement strings.
1077
+ case $configure_input in #(
1078
+ *\&* | *\|* | *\\* )
1079
+ ac_sed_conf_input=`$as_echo "$configure_input" |
1080
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
1081
+ *) ac_sed_conf_input=$configure_input;;
1082
+ esac
1083
+
1084
+ case $ac_tag in
1085
+ *:-:* | *:-) cat >"$tmp/stdin" \
1086
+ || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1087
+ esac
1088
+ ;;
1089
+ esac
1090
+
1091
+ ac_dir=`$as_dirname -- "$ac_file" ||
1092
+ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1093
+ X"$ac_file" : 'X\(//\)[^/]' \| \
1094
+ X"$ac_file" : 'X\(//\)$' \| \
1095
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1096
+ $as_echo X"$ac_file" |
1097
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1098
+ s//\1/
1099
+ q
1100
+ }
1101
+ /^X\(\/\/\)[^/].*/{
1102
+ s//\1/
1103
+ q
1104
+ }
1105
+ /^X\(\/\/\)$/{
1106
+ s//\1/
1107
+ q
1108
+ }
1109
+ /^X\(\/\).*/{
1110
+ s//\1/
1111
+ q
1112
+ }
1113
+ s/.*/./; q'`
1114
+ as_dir="$ac_dir"; as_fn_mkdir_p
1115
+ ac_builddir=.
1116
+
1117
+ case "$ac_dir" in
1118
+ .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1119
+ *)
1120
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1121
+ # A ".." for each directory in $ac_dir_suffix.
1122
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1123
+ case $ac_top_builddir_sub in
1124
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1125
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1126
+ esac ;;
1127
+ esac
1128
+ ac_abs_top_builddir=$ac_pwd
1129
+ ac_abs_builddir=$ac_pwd$ac_dir_suffix
1130
+ # for backward compatibility:
1131
+ ac_top_builddir=$ac_top_build_prefix
1132
+
1133
+ case $srcdir in
1134
+ .) # We are building in place.
1135
+ ac_srcdir=.
1136
+ ac_top_srcdir=$ac_top_builddir_sub
1137
+ ac_abs_top_srcdir=$ac_pwd ;;
1138
+ [\\/]* | ?:[\\/]* ) # Absolute name.
1139
+ ac_srcdir=$srcdir$ac_dir_suffix;
1140
+ ac_top_srcdir=$srcdir
1141
+ ac_abs_top_srcdir=$srcdir ;;
1142
+ *) # Relative name.
1143
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1144
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
1145
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1146
+ esac
1147
+ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1148
+
1149
+
1150
+ case $ac_mode in
1151
+ :F)
1152
+ #
1153
+ # CONFIG_FILE
1154
+ #
1155
+
1156
+ case $INSTALL in
1157
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1158
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1159
+ esac
1160
+ ac_MKDIR_P=$MKDIR_P
1161
+ case $MKDIR_P in
1162
+ [\\/$]* | ?:[\\/]* ) ;;
1163
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1164
+ esac
1165
+ # If the template does not know about datarootdir, expand it.
1166
+ # FIXME: This hack should be removed a few years after 2.60.
1167
+ ac_datarootdir_hack=; ac_datarootdir_seen=
1168
+ ac_sed_dataroot='
1169
+ /datarootdir/ {
1170
+ p
1171
+ q
1172
+ }
1173
+ /@datadir@/p
1174
+ /@docdir@/p
1175
+ /@infodir@/p
1176
+ /@localedir@/p
1177
+ /@mandir@/p'
1178
+ case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1179
+ *datarootdir*) ac_datarootdir_seen=yes;;
1180
+ *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1181
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1182
+ $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1183
+ ac_datarootdir_hack='
1184
+ s&@datadir@&${datarootdir}&g
1185
+ s&@docdir@&${datarootdir}/doc/${PACKAGE}&g
1186
+ s&@infodir@&${datarootdir}/info&g
1187
+ s&@localedir@&${datarootdir}/locale&g
1188
+ s&@mandir@&${datarootdir}/man&g
1189
+ s&\${datarootdir}&${prefix}/share&g' ;;
1190
+ esac
1191
+ ac_sed_extra="/^[ ]*VPATH[ ]*=/{
1192
+ s/:*\$(srcdir):*/:/
1193
+ s/:*\${srcdir}:*/:/
1194
+ s/:*@srcdir@:*/:/
1195
+ s/^\([^=]*=[ ]*\):*/\1/
1196
+ s/:*$//
1197
+ s/^[^=]*=[ ]*$//
1198
+ }
1199
+
1200
+ :t
1201
+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1202
+ s|@configure_input@|$ac_sed_conf_input|;t t
1203
+ s&@top_builddir@&$ac_top_builddir_sub&;t t
1204
+ s&@top_build_prefix@&$ac_top_build_prefix&;t t
1205
+ s&@srcdir@&$ac_srcdir&;t t
1206
+ s&@abs_srcdir@&$ac_abs_srcdir&;t t
1207
+ s&@top_srcdir@&$ac_top_srcdir&;t t
1208
+ s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1209
+ s&@builddir@&$ac_builddir&;t t
1210
+ s&@abs_builddir@&$ac_abs_builddir&;t t
1211
+ s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1212
+ s&@INSTALL@&$ac_INSTALL&;t t
1213
+ s&@MKDIR_P@&$ac_MKDIR_P&;t t
1214
+ $ac_datarootdir_hack
1215
+ "
1216
+ eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
1217
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
1218
+
1219
+ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1220
+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
1221
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1222
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1223
+ which seems to be undefined. Please make sure it is defined." >&5
1224
+ $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1225
+ which seems to be undefined. Please make sure it is defined." >&2;}
1226
+
1227
+ rm -f "$tmp/stdin"
1228
+ case $ac_file in
1229
+ -) cat "$tmp/out" && rm -f "$tmp/out";;
1230
+ *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1231
+ esac \
1232
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
1233
+ ;;
1234
+ :H)
1235
+ #
1236
+ # CONFIG_HEADER
1237
+ #
1238
+ if test x"$ac_file" != x-; then
1239
+ {
1240
+ $as_echo "/* $configure_input */" \
1241
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
1242
+ } >"$tmp/config.h" \
1243
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
1244
+ if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
1245
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1246
+ $as_echo "$as_me: $ac_file is unchanged" >&6;}
1247
+ else
1248
+ rm -f "$ac_file"
1249
+ mv "$tmp/config.h" "$ac_file" \
1250
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
1251
+ fi
1252
+ else
1253
+ $as_echo "/* $configure_input */" \
1254
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1255
+ || as_fn_error "could not create -" "$LINENO" 5
1256
+ fi
1257
+ # Compute "$ac_file"'s index in $config_headers.
1258
+ _am_arg="$ac_file"
1259
+ _am_stamp_count=1
1260
+ for _am_header in $config_headers :; do
1261
+ case $_am_header in
1262
+ $_am_arg | $_am_arg:* )
1263
+ break ;;
1264
+ * )
1265
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1266
+ esac
1267
+ done
1268
+ echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
1269
+ $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
1271
+ X"$_am_arg" : 'X\(//\)$' \| \
1272
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1273
+ $as_echo X"$_am_arg" |
1274
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275
+ s//\1/
1276
+ q
1277
+ }
1278
+ /^X\(\/\/\)[^/].*/{
1279
+ s//\1/
1280
+ q
1281
+ }
1282
+ /^X\(\/\/\)$/{
1283
+ s//\1/
1284
+ q
1285
+ }
1286
+ /^X\(\/\).*/{
1287
+ s//\1/
1288
+ q
1289
+ }
1290
+ s/.*/./; q'`/stamp-h$_am_stamp_count
1291
+ ;;
1292
+
1293
+ :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1294
+ $as_echo "$as_me: executing $ac_file commands" >&6;}
1295
+ ;;
1296
+ esac
1297
+
1298
+
1299
+ case $ac_file$ac_mode in
1300
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1301
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
1302
+ # are listed without --file. Let's play safe and only enable the eval
1303
+ # if we detect the quoting.
1304
+ case $CONFIG_FILES in
1305
+ *\'*) eval set x "$CONFIG_FILES" ;;
1306
+ *) set x $CONFIG_FILES ;;
1307
+ esac
1308
+ shift
1309
+ for mf
1310
+ do
1311
+ # Strip MF so we end up with the name of the file.
1312
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
1313
+ # Check whether this is an Automake generated Makefile or not.
1314
+ # We used to match only the files named `Makefile.in', but
1315
+ # some people rename them; so instead we look at the file content.
1316
+ # Grep'ing the first line is not enough: some people post-process
1317
+ # each Makefile.in and add a new line on top of each file to say so.
1318
+ # Grep'ing the whole file is not good either: AIX grep has a line
1319
+ # limit of 2048, but all sed's we know have understand at least 4000.
1320
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1321
+ dirpart=`$as_dirname -- "$mf" ||
1322
+ $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323
+ X"$mf" : 'X\(//\)[^/]' \| \
1324
+ X"$mf" : 'X\(//\)$' \| \
1325
+ X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1326
+ $as_echo X"$mf" |
1327
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328
+ s//\1/
1329
+ q
1330
+ }
1331
+ /^X\(\/\/\)[^/].*/{
1332
+ s//\1/
1333
+ q
1334
+ }
1335
+ /^X\(\/\/\)$/{
1336
+ s//\1/
1337
+ q
1338
+ }
1339
+ /^X\(\/\).*/{
1340
+ s//\1/
1341
+ q
1342
+ }
1343
+ s/.*/./; q'`
1344
+ else
1345
+ continue
1346
+ fi
1347
+ # Extract the definition of DEPDIR, am__include, and am__quote
1348
+ # from the Makefile without running `make'.
1349
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1350
+ test -z "$DEPDIR" && continue
1351
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
1352
+ test -z "am__include" && continue
1353
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1354
+ # When using ansi2knr, U may be empty or an underscore; expand it
1355
+ U=`sed -n 's/^U = //p' < "$mf"`
1356
+ # Find all dependency output files, they are included files with
1357
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
1358
+ # simplest approach to changing $(DEPDIR) to its actual value in the
1359
+ # expansion.
1360
+ for file in `sed -n "
1361
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1362
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1363
+ # Make sure the directory exists.
1364
+ test -f "$dirpart/$file" && continue
1365
+ fdir=`$as_dirname -- "$file" ||
1366
+ $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367
+ X"$file" : 'X\(//\)[^/]' \| \
1368
+ X"$file" : 'X\(//\)$' \| \
1369
+ X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1370
+ $as_echo X"$file" |
1371
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372
+ s//\1/
1373
+ q
1374
+ }
1375
+ /^X\(\/\/\)[^/].*/{
1376
+ s//\1/
1377
+ q
1378
+ }
1379
+ /^X\(\/\/\)$/{
1380
+ s//\1/
1381
+ q
1382
+ }
1383
+ /^X\(\/\).*/{
1384
+ s//\1/
1385
+ q
1386
+ }
1387
+ s/.*/./; q'`
1388
+ as_dir=$dirpart/$fdir; as_fn_mkdir_p
1389
+ # echo "creating $dirpart/$file"
1390
+ echo '# dummy' > "$dirpart/$file"
1391
+ done
1392
+ done
1393
+ }
1394
+ ;;
1395
+ "libtool":C)
1396
+
1397
+ # See if we are running on zsh, and set the options which allow our
1398
+ # commands through without removal of \ escapes.
1399
+ if test -n "${ZSH_VERSION+set}" ; then
1400
+ setopt NO_GLOB_SUBST
1401
+ fi
1402
+
1403
+ cfgfile="${ofile}T"
1404
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1405
+ $RM "$cfgfile"
1406
+
1407
+ cat <<_LT_EOF >> "$cfgfile"
1408
+ #! $SHELL
1409
+
1410
+ # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1411
+ # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1412
+ # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1413
+ # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1414
+ #
1415
+ # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1416
+ # 2006, 2007, 2008 Free Software Foundation, Inc.
1417
+ # Written by Gordon Matzigkeit, 1996
1418
+ #
1419
+ # This file is part of GNU Libtool.
1420
+ #
1421
+ # GNU Libtool is free software; you can redistribute it and/or
1422
+ # modify it under the terms of the GNU General Public License as
1423
+ # published by the Free Software Foundation; either version 2 of
1424
+ # the License, or (at your option) any later version.
1425
+ #
1426
+ # As a special exception to the GNU General Public License,
1427
+ # if you distribute this file as part of a program or library that
1428
+ # is built using GNU Libtool, you may include this file under the
1429
+ # same distribution terms that you use for the rest of that program.
1430
+ #
1431
+ # GNU Libtool is distributed in the hope that it will be useful,
1432
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
1433
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1434
+ # GNU General Public License for more details.
1435
+ #
1436
+ # You should have received a copy of the GNU General Public License
1437
+ # along with GNU Libtool; see the file COPYING. If not, a copy
1438
+ # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1439
+ # obtained by writing to the Free Software Foundation, Inc.,
1440
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1441
+
1442
+
1443
+ # The names of the tagged configurations supported by this script.
1444
+ available_tags=""
1445
+
1446
+ # ### BEGIN LIBTOOL CONFIG
1447
+
1448
+ # Which release of libtool.m4 was used?
1449
+ macro_version=$macro_version
1450
+ macro_revision=$macro_revision
1451
+
1452
+ # Whether or not to build shared libraries.
1453
+ build_libtool_libs=$enable_shared
1454
+
1455
+ # Whether or not to build static libraries.
1456
+ build_old_libs=$enable_static
1457
+
1458
+ # What type of objects to build.
1459
+ pic_mode=$pic_mode
1460
+
1461
+ # Whether or not to optimize for fast installation.
1462
+ fast_install=$enable_fast_install
1463
+
1464
+ # The host system.
1465
+ host_alias=$host_alias
1466
+ host=$host
1467
+ host_os=$host_os
1468
+
1469
+ # The build system.
1470
+ build_alias=$build_alias
1471
+ build=$build
1472
+ build_os=$build_os
1473
+
1474
+ # A sed program that does not truncate output.
1475
+ SED=$lt_SED
1476
+
1477
+ # Sed that helps us avoid accidentally triggering echo(1) options like -n.
1478
+ Xsed="\$SED -e 1s/^X//"
1479
+
1480
+ # A grep program that handles long lines.
1481
+ GREP=$lt_GREP
1482
+
1483
+ # An ERE matcher.
1484
+ EGREP=$lt_EGREP
1485
+
1486
+ # A literal string matcher.
1487
+ FGREP=$lt_FGREP
1488
+
1489
+ # A BSD- or MS-compatible name lister.
1490
+ NM=$lt_NM
1491
+
1492
+ # Whether we need soft or hard links.
1493
+ LN_S=$lt_LN_S
1494
+
1495
+ # What is the maximum length of a command?
1496
+ max_cmd_len=$max_cmd_len
1497
+
1498
+ # Object file suffix (normally "o").
1499
+ objext=$ac_objext
1500
+
1501
+ # Executable file suffix (normally "").
1502
+ exeext=$exeext
1503
+
1504
+ # whether the shell understands "unset".
1505
+ lt_unset=$lt_unset
1506
+
1507
+ # turn spaces into newlines.
1508
+ SP2NL=$lt_lt_SP2NL
1509
+
1510
+ # turn newlines into spaces.
1511
+ NL2SP=$lt_lt_NL2SP
1512
+
1513
+ # How to create reloadable object files.
1514
+ reload_flag=$lt_reload_flag
1515
+ reload_cmds=$lt_reload_cmds
1516
+
1517
+ # An object symbol dumper.
1518
+ OBJDUMP=$lt_OBJDUMP
1519
+
1520
+ # Method to check whether dependent libraries are shared objects.
1521
+ deplibs_check_method=$lt_deplibs_check_method
1522
+
1523
+ # Command to use when deplibs_check_method == "file_magic".
1524
+ file_magic_cmd=$lt_file_magic_cmd
1525
+
1526
+ # The archiver.
1527
+ AR=$lt_AR
1528
+ AR_FLAGS=$lt_AR_FLAGS
1529
+
1530
+ # A symbol stripping program.
1531
+ STRIP=$lt_STRIP
1532
+
1533
+ # Commands used to install an old-style archive.
1534
+ RANLIB=$lt_RANLIB
1535
+ old_postinstall_cmds=$lt_old_postinstall_cmds
1536
+ old_postuninstall_cmds=$lt_old_postuninstall_cmds
1537
+
1538
+ # A C compiler.
1539
+ LTCC=$lt_CC
1540
+
1541
+ # LTCC compiler flags.
1542
+ LTCFLAGS=$lt_CFLAGS
1543
+
1544
+ # Take the output of nm and produce a listing of raw symbols and C names.
1545
+ global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1546
+
1547
+ # Transform the output of nm in a proper C declaration.
1548
+ global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1549
+
1550
+ # Transform the output of nm in a C name address pair.
1551
+ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1552
+
1553
+ # Transform the output of nm in a C name address pair when lib prefix is needed.
1554
+ global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1555
+
1556
+ # The name of the directory that contains temporary libtool files.
1557
+ objdir=$objdir
1558
+
1559
+ # Shell to use when invoking shell scripts.
1560
+ SHELL=$lt_SHELL
1561
+
1562
+ # An echo program that does not interpret backslashes.
1563
+ ECHO=$lt_ECHO
1564
+
1565
+ # Used to examine libraries when file_magic_cmd begins with "file".
1566
+ MAGIC_CMD=$MAGIC_CMD
1567
+
1568
+ # Must we lock files when doing compilation?
1569
+ need_locks=$lt_need_locks
1570
+
1571
+ # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1572
+ DSYMUTIL=$lt_DSYMUTIL
1573
+
1574
+ # Tool to change global to local symbols on Mac OS X.
1575
+ NMEDIT=$lt_NMEDIT
1576
+
1577
+ # Tool to manipulate fat objects and archives on Mac OS X.
1578
+ LIPO=$lt_LIPO
1579
+
1580
+ # ldd/readelf like tool for Mach-O binaries on Mac OS X.
1581
+ OTOOL=$lt_OTOOL
1582
+
1583
+ # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
1584
+ OTOOL64=$lt_OTOOL64
1585
+
1586
+ # Old archive suffix (normally "a").
1587
+ libext=$libext
1588
+
1589
+ # Shared library suffix (normally ".so").
1590
+ shrext_cmds=$lt_shrext_cmds
1591
+
1592
+ # The commands to extract the exported symbol list from a shared archive.
1593
+ extract_expsyms_cmds=$lt_extract_expsyms_cmds
1594
+
1595
+ # Variables whose values should be saved in libtool wrapper scripts and
1596
+ # restored at link time.
1597
+ variables_saved_for_relink=$lt_variables_saved_for_relink
1598
+
1599
+ # Do we need the "lib" prefix for modules?
1600
+ need_lib_prefix=$need_lib_prefix
1601
+
1602
+ # Do we need a version for libraries?
1603
+ need_version=$need_version
1604
+
1605
+ # Library versioning type.
1606
+ version_type=$version_type
1607
+
1608
+ # Shared library runtime path variable.
1609
+ runpath_var=$runpath_var
1610
+
1611
+ # Shared library path variable.
1612
+ shlibpath_var=$shlibpath_var
1613
+
1614
+ # Is shlibpath searched before the hard-coded library search path?
1615
+ shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1616
+
1617
+ # Format of library name prefix.
1618
+ libname_spec=$lt_libname_spec
1619
+
1620
+ # List of archive names. First name is the real one, the rest are links.
1621
+ # The last name is the one that the linker finds with -lNAME
1622
+ library_names_spec=$lt_library_names_spec
1623
+
1624
+ # The coded name of the library, if different from the real name.
1625
+ soname_spec=$lt_soname_spec
1626
+
1627
+ # Command to use after installation of a shared archive.
1628
+ postinstall_cmds=$lt_postinstall_cmds
1629
+
1630
+ # Command to use after uninstallation of a shared archive.
1631
+ postuninstall_cmds=$lt_postuninstall_cmds
1632
+
1633
+ # Commands used to finish a libtool library installation in a directory.
1634
+ finish_cmds=$lt_finish_cmds
1635
+
1636
+ # As "finish_cmds", except a single script fragment to be evaled but
1637
+ # not shown.
1638
+ finish_eval=$lt_finish_eval
1639
+
1640
+ # Whether we should hardcode library paths into libraries.
1641
+ hardcode_into_libs=$hardcode_into_libs
1642
+
1643
+ # Compile-time system search path for libraries.
1644
+ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1645
+
1646
+ # Run-time system search path for libraries.
1647
+ sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1648
+
1649
+ # Whether dlopen is supported.
1650
+ dlopen_support=$enable_dlopen
1651
+
1652
+ # Whether dlopen of programs is supported.
1653
+ dlopen_self=$enable_dlopen_self
1654
+
1655
+ # Whether dlopen of statically linked programs is supported.
1656
+ dlopen_self_static=$enable_dlopen_self_static
1657
+
1658
+ # Commands to strip libraries.
1659
+ old_striplib=$lt_old_striplib
1660
+ striplib=$lt_striplib
1661
+
1662
+
1663
+ # The linker used to build libraries.
1664
+ LD=$lt_LD
1665
+
1666
+ # Commands used to build an old-style archive.
1667
+ old_archive_cmds=$lt_old_archive_cmds
1668
+
1669
+ # A language specific compiler.
1670
+ CC=$lt_compiler
1671
+
1672
+ # Is the compiler the GNU compiler?
1673
+ with_gcc=$GCC
1674
+
1675
+ # Compiler flag to turn off builtin functions.
1676
+ no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1677
+
1678
+ # How to pass a linker flag through the compiler.
1679
+ wl=$lt_lt_prog_compiler_wl
1680
+
1681
+ # Additional compiler flags for building library objects.
1682
+ pic_flag=$lt_lt_prog_compiler_pic
1683
+
1684
+ # Compiler flag to prevent dynamic linking.
1685
+ link_static_flag=$lt_lt_prog_compiler_static
1686
+
1687
+ # Does compiler simultaneously support -c and -o options?
1688
+ compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1689
+
1690
+ # Whether or not to add -lc for building shared libraries.
1691
+ build_libtool_need_lc=$archive_cmds_need_lc
1692
+
1693
+ # Whether or not to disallow shared libs when runtime libs are static.
1694
+ allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1695
+
1696
+ # Compiler flag to allow reflexive dlopens.
1697
+ export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1698
+
1699
+ # Compiler flag to generate shared objects directly from archives.
1700
+ whole_archive_flag_spec=$lt_whole_archive_flag_spec
1701
+
1702
+ # Whether the compiler copes with passing no objects directly.
1703
+ compiler_needs_object=$lt_compiler_needs_object
1704
+
1705
+ # Create an old-style archive from a shared archive.
1706
+ old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1707
+
1708
+ # Create a temporary old-style archive to link instead of a shared archive.
1709
+ old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1710
+
1711
+ # Commands used to build a shared archive.
1712
+ archive_cmds=$lt_archive_cmds
1713
+ archive_expsym_cmds=$lt_archive_expsym_cmds
1714
+
1715
+ # Commands used to build a loadable module if different from building
1716
+ # a shared archive.
1717
+ module_cmds=$lt_module_cmds
1718
+ module_expsym_cmds=$lt_module_expsym_cmds
1719
+
1720
+ # Whether we are building with GNU ld or not.
1721
+ with_gnu_ld=$lt_with_gnu_ld
1722
+
1723
+ # Flag that allows shared libraries with undefined symbols to be built.
1724
+ allow_undefined_flag=$lt_allow_undefined_flag
1725
+
1726
+ # Flag that enforces no undefined symbols.
1727
+ no_undefined_flag=$lt_no_undefined_flag
1728
+
1729
+ # Flag to hardcode \$libdir into a binary during linking.
1730
+ # This must work even if \$libdir does not exist
1731
+ hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1732
+
1733
+ # If ld is used when linking, flag to hardcode \$libdir into a binary
1734
+ # during linking. This must work even if \$libdir does not exist.
1735
+ hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1736
+
1737
+ # Whether we need a single "-rpath" flag with a separated argument.
1738
+ hardcode_libdir_separator=$lt_hardcode_libdir_separator
1739
+
1740
+ # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1741
+ # DIR into the resulting binary.
1742
+ hardcode_direct=$hardcode_direct
1743
+
1744
+ # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1745
+ # DIR into the resulting binary and the resulting library dependency is
1746
+ # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
1747
+ # library is relocated.
1748
+ hardcode_direct_absolute=$hardcode_direct_absolute
1749
+
1750
+ # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
1751
+ # into the resulting binary.
1752
+ hardcode_minus_L=$hardcode_minus_L
1753
+
1754
+ # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
1755
+ # into the resulting binary.
1756
+ hardcode_shlibpath_var=$hardcode_shlibpath_var
1757
+
1758
+ # Set to "yes" if building a shared library automatically hardcodes DIR
1759
+ # into the library and all subsequent libraries and executables linked
1760
+ # against it.
1761
+ hardcode_automatic=$hardcode_automatic
1762
+
1763
+ # Set to yes if linker adds runtime paths of dependent libraries
1764
+ # to runtime path list.
1765
+ inherit_rpath=$inherit_rpath
1766
+
1767
+ # Whether libtool must link a program against all its dependency libraries.
1768
+ link_all_deplibs=$link_all_deplibs
1769
+
1770
+ # Fix the shell variable \$srcfile for the compiler.
1771
+ fix_srcfile_path=$lt_fix_srcfile_path
1772
+
1773
+ # Set to "yes" if exported symbols are required.
1774
+ always_export_symbols=$always_export_symbols
1775
+
1776
+ # The commands to list exported symbols.
1777
+ export_symbols_cmds=$lt_export_symbols_cmds
1778
+
1779
+ # Symbols that should not be listed in the preloaded symbols.
1780
+ exclude_expsyms=$lt_exclude_expsyms
1781
+
1782
+ # Symbols that must always be exported.
1783
+ include_expsyms=$lt_include_expsyms
1784
+
1785
+ # Commands necessary for linking programs (against libraries) with templates.
1786
+ prelink_cmds=$lt_prelink_cmds
1787
+
1788
+ # Specify filename containing input files.
1789
+ file_list_spec=$lt_file_list_spec
1790
+
1791
+ # How to hardcode a shared library path into an executable.
1792
+ hardcode_action=$hardcode_action
1793
+
1794
+ # ### END LIBTOOL CONFIG
1795
+
1796
+ _LT_EOF
1797
+
1798
+ case $host_os in
1799
+ aix3*)
1800
+ cat <<\_LT_EOF >> "$cfgfile"
1801
+ # AIX sometimes has problems with the GCC collect2 program. For some
1802
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
1803
+ # vanish in a puff of smoke.
1804
+ if test "X${COLLECT_NAMES+set}" != Xset; then
1805
+ COLLECT_NAMES=
1806
+ export COLLECT_NAMES
1807
+ fi
1808
+ _LT_EOF
1809
+ ;;
1810
+ esac
1811
+
1812
+
1813
+ ltmain="$ac_aux_dir/ltmain.sh"
1814
+
1815
+
1816
+ # We use sed instead of cat because bash on DJGPP gets confused if
1817
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
1818
+ # text mode, it properly converts lines to CR/LF. This bash problem
1819
+ # is reportedly fixed, but why not run on old versions too?
1820
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1821
+ || (rm -f "$cfgfile"; exit 1)
1822
+
1823
+ case $xsi_shell in
1824
+ yes)
1825
+ cat << \_LT_EOF >> "$cfgfile"
1826
+
1827
+ # func_dirname file append nondir_replacement
1828
+ # Compute the dirname of FILE. If nonempty, add APPEND to the result,
1829
+ # otherwise set result to NONDIR_REPLACEMENT.
1830
+ func_dirname ()
1831
+ {
1832
+ case ${1} in
1833
+ */*) func_dirname_result="${1%/*}${2}" ;;
1834
+ * ) func_dirname_result="${3}" ;;
1835
+ esac
1836
+ }
1837
+
1838
+ # func_basename file
1839
+ func_basename ()
1840
+ {
1841
+ func_basename_result="${1##*/}"
1842
+ }
1843
+
1844
+ # func_dirname_and_basename file append nondir_replacement
1845
+ # perform func_basename and func_dirname in a single function
1846
+ # call:
1847
+ # dirname: Compute the dirname of FILE. If nonempty,
1848
+ # add APPEND to the result, otherwise set result
1849
+ # to NONDIR_REPLACEMENT.
1850
+ # value returned in "$func_dirname_result"
1851
+ # basename: Compute filename of FILE.
1852
+ # value retuned in "$func_basename_result"
1853
+ # Implementation must be kept synchronized with func_dirname
1854
+ # and func_basename. For efficiency, we do not delegate to
1855
+ # those functions but instead duplicate the functionality here.
1856
+ func_dirname_and_basename ()
1857
+ {
1858
+ case ${1} in
1859
+ */*) func_dirname_result="${1%/*}${2}" ;;
1860
+ * ) func_dirname_result="${3}" ;;
1861
+ esac
1862
+ func_basename_result="${1##*/}"
1863
+ }
1864
+
1865
+ # func_stripname prefix suffix name
1866
+ # strip PREFIX and SUFFIX off of NAME.
1867
+ # PREFIX and SUFFIX must not contain globbing or regex special
1868
+ # characters, hashes, percent signs, but SUFFIX may contain a leading
1869
+ # dot (in which case that matches only a dot).
1870
+ func_stripname ()
1871
+ {
1872
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1873
+ # positional parameters, so assign one to ordinary parameter first.
1874
+ func_stripname_result=${3}
1875
+ func_stripname_result=${func_stripname_result#"${1}"}
1876
+ func_stripname_result=${func_stripname_result%"${2}"}
1877
+ }
1878
+
1879
+ # func_opt_split
1880
+ func_opt_split ()
1881
+ {
1882
+ func_opt_split_opt=${1%%=*}
1883
+ func_opt_split_arg=${1#*=}
1884
+ }
1885
+
1886
+ # func_lo2o object
1887
+ func_lo2o ()
1888
+ {
1889
+ case ${1} in
1890
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
1891
+ *) func_lo2o_result=${1} ;;
1892
+ esac
1893
+ }
1894
+
1895
+ # func_xform libobj-or-source
1896
+ func_xform ()
1897
+ {
1898
+ func_xform_result=${1%.*}.lo
1899
+ }
1900
+
1901
+ # func_arith arithmetic-term...
1902
+ func_arith ()
1903
+ {
1904
+ func_arith_result=$(( $* ))
1905
+ }
1906
+
1907
+ # func_len string
1908
+ # STRING may not start with a hyphen.
1909
+ func_len ()
1910
+ {
1911
+ func_len_result=${#1}
1912
+ }
1913
+
1914
+ _LT_EOF
1915
+ ;;
1916
+ *) # Bourne compatible functions.
1917
+ cat << \_LT_EOF >> "$cfgfile"
1918
+
1919
+ # func_dirname file append nondir_replacement
1920
+ # Compute the dirname of FILE. If nonempty, add APPEND to the result,
1921
+ # otherwise set result to NONDIR_REPLACEMENT.
1922
+ func_dirname ()
1923
+ {
1924
+ # Extract subdirectory from the argument.
1925
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
1926
+ if test "X$func_dirname_result" = "X${1}"; then
1927
+ func_dirname_result="${3}"
1928
+ else
1929
+ func_dirname_result="$func_dirname_result${2}"
1930
+ fi
1931
+ }
1932
+
1933
+ # func_basename file
1934
+ func_basename ()
1935
+ {
1936
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
1937
+ }
1938
+
1939
+
1940
+ # func_stripname prefix suffix name
1941
+ # strip PREFIX and SUFFIX off of NAME.
1942
+ # PREFIX and SUFFIX must not contain globbing or regex special
1943
+ # characters, hashes, percent signs, but SUFFIX may contain a leading
1944
+ # dot (in which case that matches only a dot).
1945
+ # func_strip_suffix prefix name
1946
+ func_stripname ()
1947
+ {
1948
+ case ${2} in
1949
+ .*) func_stripname_result=`$ECHO "X${3}" \
1950
+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
1951
+ *) func_stripname_result=`$ECHO "X${3}" \
1952
+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
1953
+ esac
1954
+ }
1955
+
1956
+ # sed scripts:
1957
+ my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
1958
+ my_sed_long_arg='1s/^-[^=]*=//'
1959
+
1960
+ # func_opt_split
1961
+ func_opt_split ()
1962
+ {
1963
+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
1964
+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
1965
+ }
1966
+
1967
+ # func_lo2o object
1968
+ func_lo2o ()
1969
+ {
1970
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
1971
+ }
1972
+
1973
+ # func_xform libobj-or-source
1974
+ func_xform ()
1975
+ {
1976
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
1977
+ }
1978
+
1979
+ # func_arith arithmetic-term...
1980
+ func_arith ()
1981
+ {
1982
+ func_arith_result=`expr "$@"`
1983
+ }
1984
+
1985
+ # func_len string
1986
+ # STRING may not start with a hyphen.
1987
+ func_len ()
1988
+ {
1989
+ func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
1990
+ }
1991
+
1992
+ _LT_EOF
1993
+ esac
1994
+
1995
+ case $lt_shell_append in
1996
+ yes)
1997
+ cat << \_LT_EOF >> "$cfgfile"
1998
+
1999
+ # func_append var value
2000
+ # Append VALUE to the end of shell variable VAR.
2001
+ func_append ()
2002
+ {
2003
+ eval "$1+=\$2"
2004
+ }
2005
+ _LT_EOF
2006
+ ;;
2007
+ *)
2008
+ cat << \_LT_EOF >> "$cfgfile"
2009
+
2010
+ # func_append var value
2011
+ # Append VALUE to the end of shell variable VAR.
2012
+ func_append ()
2013
+ {
2014
+ eval "$1=\$$1\$2"
2015
+ }
2016
+
2017
+ _LT_EOF
2018
+ ;;
2019
+ esac
2020
+
2021
+
2022
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
2023
+ || (rm -f "$cfgfile"; exit 1)
2024
+
2025
+ mv -f "$cfgfile" "$ofile" ||
2026
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2027
+ chmod +x "$ofile"
2028
+
2029
+ ;;
2030
+
2031
+ esac
2032
+ done # for ac_tag
2033
+
2034
+
2035
+ as_fn_exit 0