1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xorg-server/parse-config
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if atstage cross; then
14 if [ -f $root/var/adm/packages/libx11 -a -e config.cache ]; then
15 local xincdir=`pkgprefix includedir libx11`
16 local xlibdir=`pkgprefix libdir libx11`
17 cat >> config.cache <<-EOT
18 ac_cv_have_x=\${ac_cv_have_x='have_x=yes ac_x_includes=$xincdir ac_x_libraries=$xlibdir'}
22 hook_add preconf 8 'xorg_cache'
25 # slash-hammer for now ... - generic fixing because our time is precious ,-) We
26 # can relax waiting for upstream to fix and remove those in, let's say one year
27 if pkgprefix -t libx11 2>/dev/null; then
28 var_append CPP_WRAPPER_APPEND ' ' '*/X11R6/include?-I'"`pkgprefix includedir libx11`"
29 var_append GCC_WRAPPER_APPEND ' ' '*/X11R6/include?-I'"`pkgprefix includedir libx11`"
30 var_append GCC_WRAPPER_APPEND ' ' '*/X11R6/lib?-L'"`pkgprefix libdir libx11`"
31 var_append GCC_WRAPPER_APPEND ' ' '*/X11R6/lib64?-L'"`pkgprefix libdir libx11`"