android-raptor – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #!/bin/sh
2 # Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
3 #
4 # This file is free software; as a special exception the author gives
5 # unlimited permission to copy and/or distribute it, with or without
6 # modifications, as long as this notice is preserved.
7 #
8 # This file is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  
12 # Configure libgpg-error.
13 gpg_error_cflags="-I/home/build/buildroot-2017.08-base/output/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include"
14 gpg_error_libs="-L/home/build/buildroot-2017.08-base/output/host/aarch64-buildroot-linux-uclibc/sysroot/usr/lib -lgpg-error"
15  
16 PGM=libassuan-config
17 lib="-lassuan"
18 extralibs=" $gpg_error_libs"
19 cflags=" $gpg_error_cflags"
20 api_version="2"
21 my_host="aarch64-buildroot-linux-uclibc"
22 prefix=/usr
23 exec_prefix=/usr
24 includes=""
25 libdirs=""
26 exec_prefix_set=no
27 echo_libs=no
28 echo_cflags=no
29 echo_prefix=no
30 echo_exec_prefix=no
31 echo_host=no
32  
33  
34 usage()
35 {
36 cat <<EOF
37 Usage: $PGM [OPTIONS]
38 Options:
39 [--prefix[=DIR]]
40 [--exec-prefix[=DIR]]
41 [--version]
42 [--libs]
43 [--cflags]
44 [--host]
45 EOF
46 exit $1
47 }
48  
49 if test $# -eq 0; then
50 usage 1 1>&2
51 fi
52  
53 while test $# -gt 0; do
54 case "$1" in
55 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
56 *) optarg= ;;
57 esac
58  
59 case $1 in
60 --prefix=*)
61 # Dummy
62 ;;
63 --prefix)
64 echo_prefix=yes
65 ;;
66 --exec-prefix=*)
67 # Dummy
68 ;;
69 --exec-prefix)
70 echo_exec_prefix=yes
71 ;;
72 --version)
73 echo "2.4.3"
74 exit 0
75 ;;
76 --api-version)
77 echo_api_version=yes
78 ;;
79 --cflags)
80 echo_cflags=yes
81 ;;
82 --libs)
83 echo_libs=yes
84 ;;
85 --host)
86 echo_host=yes
87 ;;
88 *)
89 usage 1 1>&2
90 ;;
91 esac
92 shift
93 done
94  
95 if test "$echo_prefix" = "yes"; then
96 echo $prefix
97 fi
98  
99 if test "$echo_exec_prefix" = "yes"; then
100 echo $exec_prefix
101 fi
102  
103 if test "$echo_api_version" = "yes"; then
104 echo $api_version
105 fi
106  
107 if test "$echo_host" = "yes"; then
108 echo "$my_host"
109 fi
110  
111 if test "$echo_cflags" = "yes"; then
112 if test "${prefix}/include" != "/usr/include" ; then
113 includes="-I${prefix}/include"
114 for i in $cflags ; do
115 if test "$i" = "-I${prefix}/include" ; then
116 includes=""
117 fi
118 done
119 fi
120 echo $includes $cflags
121 fi
122  
123 if test "$echo_libs" = "yes"; then
124 if test "${exec_prefix}/lib" != "/usr/lib" ; then
125 libdirs="-L${exec_prefix}/lib"
126 for i in $lib $extralibs ; do
127 if test "$i" = "-L${exec_prefix}/lib" ; then
128 libdirs=""
129 fi
130 done
131 fi
132 echo $libdirs $lib $extralibs
133 fi