• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:include +full:- +full:cat

3 cc=${CC:-gcc}
4 cxx=${CXX:-g++}
9 --help|-h) show_help=yes
11 --prefix=*) prefix="$optarg"
13 --includedir=*) includedir="$optarg"
15 --libdir=*) libdir="$optarg"
17 --libdevdir=*) libdevdir="$optarg"
19 --mandir=*) mandir="$optarg"
21 --datadir=*) datadir="$optarg"
23 --cc=*) cc="$optarg"
25 --cxx=*) cxx="$optarg"
29 echo "Try '$0 --help' for more information"
35 if test -z "$prefix"; then
38 if test -z "$includedir"; then
39 includedir="$prefix/include"
41 if test -z "$libdir"; then
44 if test -z "$libdevdir"; then
47 if test -z "$mandir"; then
50 if test -z "$datadir"; then
61 cat <<EOF
65 --help print this message
66 --prefix=PATH install in PATH [$prefix]
67 --includedir=PATH install headers in PATH [$includedir]
68 --libdir=PATH install runtime libraries in PATH [$libdir]
69 --libdevdir=PATH install development libraries in PATH [$libdevdir]
70 --mandir=PATH install man pages in PATH [$mandir]
71 --datadir=PATH install shared data in PATH [$datadir]
76 TMPC="$(mktemp --tmpdir fio-conf-XXXXXXXXXX.c)"
77 TMPC2="$(mktemp --tmpdir fio-conf-XXXXXXXXXX-2.c)"
78 TMPO="$(mktemp --tmpdir fio-conf-XXXXXXXXXX.o)"
79 TMPE="$(mktemp --tmpdir fio-conf-XXXXXXXXXX.exe)"
82 # see <1285349658-3122-1-git-send-email-loic.minier@linaro.org>
83 trap "rm -f $TMPC $TMPC2 $TMPO $TMPE" EXIT INT QUIT TERM
85 rm -rf config.log
87 config_host_mak="config-host.mak"
88 config_host_h="config-host.h"
90 rm -rf $config_host_mak
91 rm -rf $config_host_h
96 rm -rf $config_host_mak
97 rm -rf $config_host_h
103 printf "%-30s%s\n" "$1" "$2"
107 CFLAGS="-D_GNU_SOURCE -include config-host.h"
112 echo " * Automatically generated by configure - do not modify" >> $config_host_h
118 echo "# Automatically generated by configure - do not modify" > $config_host_mak
134 # Test passed. If this is an --enable-werror build, rerun
135 # the test with -Werror and bail out if it fails. This
136 # makes warning-generating-errors in configure test code
141 # Don't bother rerunning the compile if we were already using -Werror
143 *-Werror*)
147 echo $cc -Werror "$@" >> config.log
148 $cc -Werror "$@" >> config.log 2>&1 && return $?
149 echo "ERROR: configure test passed without -Werror but failed with -Werror."
152 fatal "You can run configure with --disable-werror to bypass this check."
159 do_cc $CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
166 do_cxx $CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
197 cat > $TMPC << EOF
198 #include <linux/fs.h>
214 cat > $TMPC << EOF
215 #include <linux/time.h>
216 #include <linux/time_types.h>
233 cat > $TMPC << EOF
234 #include <sys/types.h>
235 #include <sys/stat.h>
236 #include <fcntl.h>
237 #include <string.h>
255 cat > $TMPC << EOF
256 #include <sys/types.h>
257 #include <sys/stat.h>
258 #include <unistd.h>
259 #include <fcntl.h>
260 #include <string.h>
261 #include <linux/stat.h>
277 cat > $TMPC << EOF
278 #include <iostream>
293 cat > $TMPC << EOF
294 #include <ucontext.h>
335 compat_h="src/include/liburing/compat.h"
336 cat > $compat_h << EOF
337 /* SPDX-License-Identifier: MIT */
344 cat >> $compat_h << EOF
350 cat >> $compat_h << EOF
351 #include <stdint.h>
360 cat >> $compat_h << EOF
361 #include <linux/time_types.h>
366 cat >> $compat_h << EOF
367 #include <inttypes.h>
378 cat >> $compat_h << EOF